Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Data.Bencodex.Reader
Synopsis
- data Result r
- = Fail ByteString [String] String
- | Done ByteString r
- bValue :: Parser BValue
- byteString :: Parser ByteString
- decodeLazy :: ByteString -> Result BValue
- decodeStrict :: ByteString -> Either String BValue
- false :: Parser Bool
- integer :: Parser Integer
- list :: Parser [BValue]
- map' :: Parser (HashMap BKey BValue)
- null' :: Parser ()
- text :: Parser Text
- true :: Parser Bool
Documentation
The result of a parse.
Constructors
Fail ByteString [String] String | The parse failed. The |
Done ByteString r | The parse succeeded. The |
decodeLazy :: ByteString -> Result BValue Source #
decodeStrict :: ByteString -> Either String BValue Source #