mirror of
https://github.com/github/semantic.git
synced 2024-12-30 02:14:20 +03:00
Correct the type of handleState.
This commit is contained in:
parent
aa4f630961
commit
f35f9bbbc0
@ -59,5 +59,5 @@ handleReader :: Effectful m => info -> m (Reader info ': effects) a -> m effects
|
||||
handleReader = raiseHandler . flip runReader
|
||||
|
||||
-- | Run a 'State' effect in an 'Effectful' context.
|
||||
handleState :: Effectful m => info -> m (State info ': effects) a -> m effects a
|
||||
handleState :: Effectful m => state -> m (State state ': effects) a -> m effects (a, state)
|
||||
handleState = raiseHandler . flip runState
|
||||
|
Loading…
Reference in New Issue
Block a user