Skip to content

Commit

Permalink
add runUpdateParser for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lispandfound committed Mar 11, 2024
1 parent 9c26855 commit 3ee4dbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions telegram-bot-simple/src/Telegram/Bot/Simple/UpdateParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ mkParser f = ask >>= lift . f
parseUpdate :: UpdateParser a -> Update -> Maybe a
parseUpdate = runReaderT

runUpdateParser :: UpdateParser a -> Update -> Maybe a
runUpdateParser = runReaderT

text :: UpdateParser Text
text = mkParser (extractUpdateMessage >=> messageText)

Expand Down

0 comments on commit 3ee4dbd

Please sign in to comment.