module Hydra.Ext.Yaml.Model where
import qualified Hydra.Core as Core
import Data.List
import Data.Map
import Data.Set
data Node =
NodeMapping (Map Node Node) |
NodeScalar Scalar |
NodeSequence [Node]
deriving (Node -> Node -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Node -> Node -> Bool
$c/= :: Node -> Node -> Bool
== :: Node -> Node -> Bool
$c== :: Node -> Node -> Bool
Eq, Eq Node
Node -> Node -> Bool
Node -> Node -> Ordering
Node -> Node -> Node
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: Node -> Node -> Node
$cmin :: Node -> Node -> Node
max :: Node -> Node -> Node
$cmax :: Node -> Node -> Node
>= :: Node -> Node -> Bool
$c>= :: Node -> Node -> Bool
> :: Node -> Node -> Bool
$c> :: Node -> Node -> Bool
<= :: Node -> Node -> Bool
$c<= :: Node -> Node -> Bool
< :: Node -> Node -> Bool
$c< :: Node -> Node -> Bool
compare :: Node -> Node -> Ordering
$ccompare :: Node -> Node -> Ordering
Ord, ReadPrec [Node]
ReadPrec Node
Int -> ReadS Node
ReadS [Node]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Node]
$creadListPrec :: ReadPrec [Node]
readPrec :: ReadPrec Node
$creadPrec :: ReadPrec Node
readList :: ReadS [Node]
$creadList :: ReadS [Node]
readsPrec :: Int -> ReadS Node
$creadsPrec :: Int -> ReadS Node
Read, Int -> Node -> ShowS
[Node] -> ShowS
Node -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Node] -> ShowS
$cshowList :: [Node] -> ShowS
show :: Node -> String
$cshow :: Node -> String
showsPrec :: Int -> Node -> ShowS
$cshowsPrec :: Int -> Node -> ShowS
Show)
_Node :: Name
_Node = (String -> Name
Core.Name String
"hydra/ext/yaml/model.Node")
_Node_mapping :: FieldName
_Node_mapping = (String -> FieldName
Core.FieldName String
"mapping")
_Node_scalar :: FieldName
_Node_scalar = (String -> FieldName
Core.FieldName String
"scalar")
_Node_sequence :: FieldName
_Node_sequence = (String -> FieldName
Core.FieldName String
"sequence")
data Scalar =
ScalarBool Bool |
ScalarFloat Double |
ScalarInt Integer |
ScalarNull |
ScalarStr String
deriving (Scalar -> Scalar -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Scalar -> Scalar -> Bool
$c/= :: Scalar -> Scalar -> Bool
== :: Scalar -> Scalar -> Bool
$c== :: Scalar -> Scalar -> Bool
Eq, Eq Scalar
Scalar -> Scalar -> Bool
Scalar -> Scalar -> Ordering
Scalar -> Scalar -> Scalar
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: Scalar -> Scalar -> Scalar
$cmin :: Scalar -> Scalar -> Scalar
max :: Scalar -> Scalar -> Scalar
$cmax :: Scalar -> Scalar -> Scalar
>= :: Scalar -> Scalar -> Bool
$c>= :: Scalar -> Scalar -> Bool
> :: Scalar -> Scalar -> Bool
$c> :: Scalar -> Scalar -> Bool
<= :: Scalar -> Scalar -> Bool
$c<= :: Scalar -> Scalar -> Bool
< :: Scalar -> Scalar -> Bool
$c< :: Scalar -> Scalar -> Bool
compare :: Scalar -> Scalar -> Ordering
$ccompare :: Scalar -> Scalar -> Ordering
Ord, ReadPrec [Scalar]
ReadPrec Scalar
Int -> ReadS Scalar
ReadS [Scalar]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Scalar]
$creadListPrec :: ReadPrec [Scalar]
readPrec :: ReadPrec Scalar
$creadPrec :: ReadPrec Scalar
readList :: ReadS [Scalar]
$creadList :: ReadS [Scalar]
readsPrec :: Int -> ReadS Scalar
$creadsPrec :: Int -> ReadS Scalar
Read, Int -> Scalar -> ShowS
[Scalar] -> ShowS
Scalar -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Scalar] -> ShowS
$cshowList :: [Scalar] -> ShowS
show :: Scalar -> String
$cshow :: Scalar -> String
showsPrec :: Int -> Scalar -> ShowS
$cshowsPrec :: Int -> Scalar -> ShowS
Show)
_Scalar :: Name
_Scalar = (String -> Name
Core.Name String
"hydra/ext/yaml/model.Scalar")
_Scalar_bool :: FieldName
_Scalar_bool = (String -> FieldName
Core.FieldName String
"bool")
_Scalar_float :: FieldName
_Scalar_float = (String -> FieldName
Core.FieldName String
"float")
_Scalar_int :: FieldName
_Scalar_int = (String -> FieldName
Core.FieldName String
"int")
_Scalar_null :: FieldName
_Scalar_null = (String -> FieldName
Core.FieldName String
"null")
_Scalar_str :: FieldName
_Scalar_str = (String -> FieldName
Core.FieldName String
"str")