Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Fail m a = Fail String
- runFail :: Sem (Fail ': r) a -> Sem r (Either String a)
- failToError :: Member (Error e) r => (String -> e) -> Sem (Fail ': r) a -> Sem r a
- failToNonDet :: Member NonDet r => Sem (Fail ': r) a -> Sem r a
- failToEmbed :: forall m r a. (Member (Embed m) r, MonadFail m) => Sem (Fail ': r) a -> Sem r a