1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00

Define a typeclass for lifting effects into some wrapping context.

This commit is contained in:
Rob Rix 2018-03-07 11:04:53 -05:00
parent 86fb1a8706
commit 0087c5a1d1

View File

@ -63,3 +63,7 @@ instance Ord a => RunEffect NonDetEff a where
runEffect = relay (pure . point) (\ m k -> case m of
MZero -> pure mempty
MPlus -> mappend <$> k True <*> k False)
class LiftEffect f where
lift :: Eff effects a -> f effects a