hedn-0.1.8.2: EDN parsing and encoding

Safe HaskellNone
LanguageHaskell98

Data.EDN.Parser

Contents

Description

Parse an UTF-8 encoded EDN string into a haskell representation of EDN objects. Use decode to get actual types.

Synopsis

Data parsers

parseMaybe :: ByteString -> Maybe TaggedValue Source #

Parse a lazy ByteString into a TaggedValue. If fails due to incomplete or invalid input, Nothing is returned.

parseEither :: ByteString -> Either String TaggedValue Source #

Parse a lazy ByteString into a TaggedValue. If fails due to incomplete or invalid input, Left is returned with the error message.

parseBS :: ByteString -> Result TaggedValue Source #

Parse a strict ByteString, but without continutations.

parseT :: Text -> Result TaggedValue Source #

Parse a strict Text.

parseS :: String -> Result TaggedValue Source #

Parse a string AKA '[Char]'. Not really useful other than for debugging purposes.

Attoparsec implementation

parseValue :: Parser Value Source #

Parse a "raw" EDN value into a Value.

parseTagged :: Parser TaggedValue Source #

Parse a probably tagged EDN value into a TaggedValue.