mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
📝 RunEffects.
This commit is contained in:
parent
9c481b6567
commit
af5a9355dc
@ -14,6 +14,7 @@ import Data.Set
|
||||
run :: RunEffects fs a => Eff fs a -> Final fs a
|
||||
run = Effect.run . runEffects
|
||||
|
||||
-- | A typeclass to run a computation to completion, interpreting each effect with some sensible defaults.
|
||||
class RunEffects fs a where
|
||||
type Final fs a
|
||||
runEffects :: Eff fs a -> Eff '[] (Final fs a)
|
||||
|
Loading…
Reference in New Issue
Block a user