Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class ToByteString a where
- class FromByteString a where
- parser :: Parser a
- newtype Hex a = Hex {
- fromHex :: a
- newtype List a = List {
- fromList :: [a]
- toByteString :: ToByteString a => a -> ByteString
- toByteString' :: ToByteString a => a -> ByteString
- runBuilder :: Builder -> ByteString
- 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 ToByteString a where Source #
Instances
class FromByteString a where Source #
Parse ByteString
s.
Instances
Newtype wrapper to parse and produce integral numbers in hexadecimal format
Instances
Newtype wrapper to parse and produce a comma separated list of values.
Instances
Applicative List Source # | |
Functor List Source # | |
Monad List Source # | |
Show a => Show (List a) Source # | |
FromByteString a => FromByteString (List a) Source # | A (flat) comma-separated list of values without spaces. |
Defined in Data.ByteString.Conversion.From | |
ToByteString a => ToByteString (List a) Source # | |
Eq a => Eq (List a) Source # | |
toByteString :: ToByteString a => a -> ByteString Source #
toByteString' :: ToByteString a => a -> ByteString Source #
Please note that this needs to convert from a lazy ByteString
to
a strict one which involves copying the whole string.
runBuilder :: Builder -> ByteString Source #
fromByteString :: FromByteString a => ByteString -> Maybe a Source #
fromByteString' :: FromByteString a => ByteString -> Maybe a Source #
runParser' :: Parser a -> ByteString -> Either String a Source #