| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.RubyGems.Marshal
Description
Bounded Ruby Marshal 4.8 data. Class names remain inert strings.
Synopsis
- data MarshalValue
- = MNil
- | MBool Bool
- | MInteger Integer
- | MFloat Double
- | MString ByteString
- | MSymbol ByteString
- | MArray [MarshalValue]
- | MHash [(MarshalValue, MarshalValue)]
- | MObject ByteString [(ByteString, MarshalValue)]
- | MUserDefined ByteString ByteString
- | MUserMarshal ByteString MarshalValue
- | MInstance MarshalValue [(ByteString, MarshalValue)]
- decodeMarshal :: Limits -> ByteString -> Either ParseError MarshalValue
- marshalText :: MarshalValue -> Either ParseError Text
- stripInstanceVariables :: MarshalValue -> MarshalValue
- inertNodeBudget :: Limits -> Int
Documentation
data MarshalValue Source #
A data tree with resolved, acyclic references and no executable hooks.
Constructors
Instances
| Show MarshalValue Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Marshal Methods showsPrec :: Int -> MarshalValue -> ShowS # show :: MarshalValue -> String # showList :: [MarshalValue] -> ShowS # | |
| Eq MarshalValue Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Marshal | |
decodeMarshal :: Limits -> ByteString -> Either ParseError MarshalValue Source #
Decode exactly one object, refusing unsupported tags, cycles and invalid references.
marshalText :: MarshalValue -> Either ParseError Text Source #
Require a valid UTF-8 native string, preserving its spelling.
stripInstanceVariables :: MarshalValue -> MarshalValue Source #
Remove inert encoding and instance-variable wrappers when reading scalar fields.
inertNodeBudget :: Limits -> Int Source #
The node and alias work one inert Marshal or YAML decode may do.