1
1
mirror of https://github.com/github/semantic.git synced 2025-01-04 13:34:31 +03:00

📝 Effectful.

This commit is contained in:
Rob Rix 2018-03-12 11:37:06 -04:00
parent 0171811da4
commit 5c415fee15

View File

@ -66,6 +66,9 @@ instance Ord a => RunEffect NonDetEff a where
MPlus -> mappend <$> k True <*> k False)
-- | Types wrapping 'Eff' actions.
--
-- Most instances of 'Effectful' will be derived using @-XGeneralizedNewtypeDeriving@, with these ultimately bottoming out on the instance for 'Eff' (for which 'raise' and 'lower' are simply the identity).
class Effectful m where
raise :: Eff effects a -> m effects a
lower :: m effects a -> Eff effects a