mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
📝 Result.
This commit is contained in:
parent
6bd0550804
commit
54dbd0785b
@ -32,6 +32,7 @@ instance RunEffect f a => RunEffects '[f] a where
|
||||
|
||||
-- | A typeclass to interpret a single effect with some sensible defaults (defined per-effect).
|
||||
class RunEffect f a where
|
||||
-- | The incremental result of an effect w.r.t. the parameter value, factoring in the interpretation of the effect.
|
||||
type Result f a
|
||||
type instance Result f a = a
|
||||
runEffect :: Eff (f ': fs) a -> Eff fs (Result f a)
|
||||
|
Loading…
Reference in New Issue
Block a user