~gdanix/telegram-bot-simple

bf59cec8a6a4f317539b38d27614ab68eb3bd560 — Andrey Prokopenko 2 years ago 11b6c5e + da3e0b3
Merge pull request #40 from cheopslab/backcompat

Support backwards compatibility with older ghc.
1 files changed, 3 insertions(+), 0 deletions(-)

M src/Telegram/Bot/Simple/UpdateParser.hs
M src/Telegram/Bot/Simple/UpdateParser.hs => src/Telegram/Bot/Simple/UpdateParser.hs +3 -0
@@ 27,6 27,9 @@ instance Alternative UpdateParser where
instance Monad UpdateParser where
  return = pure
  UpdateParser x >>= f = UpdateParser (\u -> x u >>= flip runUpdateParser u . f)
#if !MIN_VERSION_base(4,13,0)
  fail _ = empty
#endif

#if MIN_VERSION_base(4,13,0)
instance MonadFail UpdateParser where