b9-0.5.17: A tool and library for building 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.