hydra-0.1.0: Type-aware transformations for data and functional programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hydra.Ext.Yaml.Model

Description

A basic YAML representation model. Based on: | https://yaml.org/spec/1.2/spec.html | The Serialization and Presentation properties of YAML, | including directives, comments, anchors, style, formatting, and aliases, are not supported by this model. | In addition, tags are omitted from this model, and non-standard scalars are unsupported.

Synopsis

Documentation

data Node Source #

A YAML node (value)

Instances

Instances details
Read Node Source # 
Instance details

Defined in Hydra.Ext.Yaml.Model

Show Node Source # 
Instance details

Defined in Hydra.Ext.Yaml.Model

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

Eq Node Source # 
Instance details

Defined in Hydra.Ext.Yaml.Model

Methods

(==) :: Node -> Node -> Bool #

(/=) :: Node -> Node -> Bool #

Ord Node Source # 
Instance details

Defined in Hydra.Ext.Yaml.Model

Methods

compare :: Node -> Node -> Ordering #

(<) :: Node -> Node -> Bool #

(<=) :: Node -> Node -> Bool #

(>) :: Node -> Node -> Bool #

(>=) :: Node -> Node -> Bool #

max :: Node -> Node -> Node #

min :: Node -> Node -> Node #

data Scalar Source #

A union of scalars supported in the YAML failsafe and JSON schemas. Other scalars are not supported here

Constructors

ScalarBool Bool

Represents a true/false value

ScalarFloat Double

Represents an approximation to real numbers

ScalarInt Integer

Represents arbitrary sized finite mathematical integers

ScalarNull

Represents the lack of a value

ScalarStr String

A string value

Instances

Instances details
Read Scalar Source # 
Instance details

Defined in Hydra.Ext.Yaml.Model

Show Scalar Source # 
Instance details

Defined in Hydra.Ext.Yaml.Model

Eq Scalar Source # 
Instance details

Defined in Hydra.Ext.Yaml.Model

Methods

(==) :: Scalar -> Scalar -> Bool #

(/=) :: Scalar -> Scalar -> Bool #

Ord Scalar Source # 
Instance details

Defined in Hydra.Ext.Yaml.Model