Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Value = Value [Scalar] (Maybe Mapping) (Maybe Sequence)
- data Scalar
- = StringScalar String
- | NullScalar
- | BoolScalar
- | ScientificScalar
- | DoubleScalar
- | RationalScalar MaxInputSize
- | BoundedIntegerScalar Signed NumeralSystem
- | UnboundedIntegerScalar MaxInputSize Signed NumeralSystem
- | Iso8601TimestampScalar
- | Iso8601DayScalar
- | Iso8601TimeScalar
- | UuidScalar
- | Base64BinaryScalar
- data Mapping
- data Sequence
- data String
- data ByKey key
- = AnyByKey
- | NoByKey
- | EitherByKey (ByKey key) (ByKey key)
- | BothByKey (ByKey key) (ByKey key)
- | LookupByKey [key] Value
- data ByOrder
- newtype MaxInputSize = MaxInputSize Int
- newtype Signed = Signed Bool
- data NumeralSystem
- newtype CaseSensitive = CaseSensitive Bool
Documentation
AnyString | Any string as it is. |
OneOfString CaseSensitive [Text] | One of options. Suitable for enumerations. |
FormattedString Text | Must conform to a textually described format. |
AnyByKey | |
NoByKey | |
EitherByKey (ByKey key) (ByKey key) | |
BothByKey (ByKey key) (ByKey key) | |
LookupByKey | |
|
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.
newtype CaseSensitive Source #