b9-2.0.0: A tool and library for building virtual machine images.

Safe HaskellNone
LanguageHaskell2010

B9.Artifact.Content.ErlTerms

Description

Erlang term parser and pretty printer.

Synopsis

Documentation

parseErlTerm :: String -> Text -> 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 -> Text Source #

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

data SimpleErlangTerm Source #

Simplified Erlang term representation.

Instances
Eq SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

Data SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SimpleErlangTerm -> c SimpleErlangTerm #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SimpleErlangTerm #

toConstr :: SimpleErlangTerm -> Constr #

dataTypeOf :: SimpleErlangTerm -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SimpleErlangTerm) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SimpleErlangTerm) #

gmapT :: (forall b. Data b => b -> b) -> SimpleErlangTerm -> SimpleErlangTerm #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SimpleErlangTerm -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SimpleErlangTerm -> r #

gmapQ :: (forall d. Data d => d -> u) -> SimpleErlangTerm -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SimpleErlangTerm -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SimpleErlangTerm -> m SimpleErlangTerm #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SimpleErlangTerm -> m SimpleErlangTerm #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SimpleErlangTerm -> m SimpleErlangTerm #

Ord SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

Read SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

Show SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

Generic SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

Associated Types

type Rep SimpleErlangTerm :: Type -> Type #

Arbitrary SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

Hashable SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

Binary SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

NFData SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms

Methods

rnf :: SimpleErlangTerm -> () #

type Rep SimpleErlangTerm Source # 
Instance details

Defined in B9.Artifact.Content.ErlTerms