Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- withJustM :: Monad m => m (Maybe a) -> (a -> m ()) -> m Bool
- untilNothing :: Monad m => m (Maybe a) -> (a -> m ()) -> m Bool
- textBase64 :: ByteString -> Text
Documentation
withJustM :: Monad m => m (Maybe a) -> (a -> m ()) -> m Bool Source
If the monad retuns a Just, runs the function on its contents. Returns True if the action was executed.
untilNothing :: Monad m => m (Maybe a) -> (a -> m ()) -> m Bool Source
Runs the monadic action as long as the producer returns Justs. Returns True if the action was ever executed.
textBase64 :: ByteString -> Text Source
Base64-encodes a ByteString as Text.
This cannot fail since Base64 is ASCII.