We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecc21cd commit aebba52Copy full SHA for aebba52
src/Telegram/Bot/Simple/Eff.hs
@@ -38,8 +38,11 @@ runEff = runWriter . _runEff
38
eff :: BotM a -> Eff a ()
39
eff e = Eff (tell [e])
40
41
+withEffect :: BotM action -> model -> Eff action model
42
+withEffect effect model = eff effect >> pure model
43
+
44
(<#) :: model -> BotM action -> Eff action model
-m <# a = eff a >> pure m
45
+(<#) = flip withEffect
46
47
-- | Set a specific 'Telegram.Update' in a 'BotM' context.
48
setBotMUpdate :: Maybe Telegram.Update -> BotM a -> BotM a
0 commit comments