Safe Haskell | Safe-Inferred |
---|
UntilFail
list.
Synopsis
- data UntilFail err a
- fromListFail :: [a] -> err -> UntilFail err a
- fromList :: [a] -> UntilFail err a
- singleton :: a -> UntilFail err a
- toList :: UntilFail err a -> ([a], Maybe err)
- map :: (a -> Either err b) -> UntilFail err a -> UntilFail err b
- concatMap :: (a -> UntilFail err b) -> UntilFail err a -> UntilFail err b
- process :: (a -> [a] -> (UntilFail err b, [a])) -> [a] -> UntilFail err b
- processM :: Monad m => (a -> [a] -> m (UntilFail err b, [a])) -> [a] -> m (UntilFail err b)
Documentation
This is a list, optionally terminated with an error.
fromListFail :: [a] -> err -> UntilFail err a Source #