b9-0.2.3: A build tool and library for virtual machine images.

Safe HaskellNone
LanguageHaskell2010

B9.Content.ErlTerms

Description

Erlang term parser and pretty printer.

Synopsis

Documentation

parseErlTerm :: String -> ByteString -> Either String SimpleErlangTerm Source

Parse a subset of valid Erlang terms. It parses no maps and binaries are restricted to either empty binaries or binaries with a string. The input encoding must be restricted to ascii compatible 8-bit characters (e.g. latin-1 or UTF8).

renderErlTerm :: SimpleErlangTerm -> ByteString Source

Convert an abstract Erlang term to a pretty byte string preserving the encoding.