Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class FromByteString a where
- fromByteString :: FromByteString a => ByteString -> Maybe a
- fromByteString' :: FromByteString a => ByteString -> Maybe a
- runParser :: Parser a -> ByteString -> Either String a
- runParser' :: Parser a -> ByteString -> Either String a
Documentation
class FromByteString a where Source
Parse ByteString
s.
FromByteString Bool | |
FromByteString Char | UTF-8 is assumed as encoding format. |
FromByteString Double | |
FromByteString Int | |
FromByteString Int8 | |
FromByteString Int16 | |
FromByteString Int32 | |
FromByteString Int64 | |
FromByteString Integer | |
FromByteString Word | |
FromByteString Word8 | |
FromByteString Word16 | |
FromByteString Word32 | |
FromByteString Word64 | |
FromByteString ByteString | |
FromByteString ByteString | |
FromByteString Text | UTF-8 is assumed as encoding format. |
FromByteString [Char] | UTF-8 is assumed as encoding format. |
FromByteString a => FromByteString (List a) | A (flat) comma-separated list of values without spaces. |
(Integral a, Bits a) => FromByteString (Hex a) |
fromByteString :: FromByteString a => ByteString -> Maybe a Source
fromByteString' :: FromByteString a => ByteString -> Maybe a Source
runParser' :: Parser a -> ByteString -> Either String a Source