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