Copyright | © Clément Delafargue 2021 |
---|---|
License | MIT |
Maintainer | clement@delafargue.name |
Safe Haskell | Safe-Inferred |
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
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 #