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:
parent
86fb1a8706
commit
0087c5a1d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user