mirror of
https://github.com/lexi-lambda/freer-simple.git
synced 2024-12-25 23:22:37 +03:00
Match coding style of runNat
with the rest of the codebase
This is really minor but the next commit adds a `runNatS` function that would require a 5-var forall and that's starting to be really confusing, making people think why it's there.
This commit is contained in:
parent
8060429c52
commit
84022b9103
@ -36,7 +36,6 @@ import Control.Applicative (pure)
|
||||
import Control.Monad.Freer.Internal
|
||||
|
||||
runNat
|
||||
:: forall m r e w.
|
||||
(Member m r)
|
||||
:: Member m r
|
||||
=> (forall a. e a -> m a) -> Eff (e ': r) w -> Eff r w
|
||||
runNat f = handleRelay pure (\v -> (send (f v) >>=))
|
||||
|
Loading…
Reference in New Issue
Block a user