Copyright | © Clément Delafargue 2021 |
---|---|
License | MIT |
Maintainer | clement@delafargue.name |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- maybeToRight :: b -> Maybe a -> Either b a
- rightToMaybe :: Either b a -> Maybe a
- encodeHex :: ByteString -> Text
- encodeHex' :: ByteString -> ByteString
- decodeHex :: ByteString -> Either Text ByteString
- anyM :: (Foldable t, Monad m) => (a -> m Bool) -> t a -> m Bool
- allM :: (Foldable t, Monad m) => (a -> m Bool) -> t a -> m Bool
- setFilterM :: (Ord a, Monad m) => (a -> m Bool) -> Set a -> m (Set a)
- foldMapM :: (Monoid b, Monad m, Foldable f) => (a -> m b) -> f a -> m b
- mapMaybeM :: Monad m => (a -> m (Maybe b)) -> [a] -> m [b]
Documentation
maybeToRight :: b -> Maybe a -> Either b a Source #
Exactly like maybeToRight
from the either
package,
but without the dependency footprint
rightToMaybe :: Either b a -> Maybe a Source #
Exactly like rightToMaybe
from the either
package,
but without the dependency footprint
encodeHex :: ByteString -> Text Source #
encodeHex' :: ByteString -> ByteString Source #
decodeHex :: ByteString -> Either Text ByteString Source #