yaml-unscrambler-0.1.0.5: Flexible declarative YAML parsing toolkit
Safe HaskellNone
LanguageHaskell2010

YamlUnscrambler.Expectations

Contents

Synopsis

Documentation

data Value Source #

Constructors

Value [Scalar] (Maybe Mapping) (Maybe Sequence) 

Instances

Instances details
Semigroup Value Source # 
Instance details

Defined in YamlUnscrambler.Expectations

Methods

(<>) :: Value -> Value -> Value #

sconcat :: NonEmpty Value -> Value #

stimes :: Integral b => b -> Value -> Value #

Monoid Value Source # 
Instance details

Defined in YamlUnscrambler.Expectations

Methods

mempty :: Value #

mappend :: Value -> Value -> Value #

mconcat :: [Value] -> Value #

data String Source #

Constructors

AnyString

Any string as it is.

OneOfString CaseSensitive [Text]

One of options. Suitable for enumerations.

FormattedString Text

Must conform to a textually described format.

data ByKey key Source #

Constructors

AnyByKey 
NoByKey 
EitherByKey (ByKey key) (ByKey key) 
BothByKey (ByKey key) (ByKey key) 
LookupByKey 

Fields

  • [key]

    Keys to lookup.

  • Value
     

newtype MaxInputSize Source #

Specification of the maximum allowed length for the input. A safety measure to ensure that the parser doesn't exhaust memory when parsing to unlimited datatypes.

Constructors

MaxInputSize Int 

newtype Signed Source #

Constructors

Signed Bool 

newtype CaseSensitive Source #

Constructors

CaseSensitive Bool