Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A model which provides a common syntax tree for Hydra serializers
Synopsis
- data Associativity
- _Associativity :: Name
- _Associativity_none :: FieldName
- _Associativity_left :: FieldName
- _Associativity_right :: FieldName
- _Associativity_both :: FieldName
- data BlockStyle = BlockStyle {}
- _BlockStyle :: Name
- _BlockStyle_indent :: FieldName
- _BlockStyle_newlineBeforeContent :: FieldName
- _BlockStyle_newlineAfterContent :: FieldName
- data BracketExpr = BracketExpr {}
- _BracketExpr :: Name
- _BracketExpr_brackets :: FieldName
- _BracketExpr_enclosed :: FieldName
- _BracketExpr_style :: FieldName
- data Brackets = Brackets {}
- _Brackets :: Name
- _Brackets_open :: FieldName
- _Brackets_close :: FieldName
- data Expr
- _Expr :: Name
- _Expr_const :: FieldName
- _Expr_op :: FieldName
- _Expr_brackets :: FieldName
- data Op = Op {}
- _Op :: Name
- _Op_symbol :: FieldName
- _Op_padding :: FieldName
- _Op_precedence :: FieldName
- _Op_associativity :: FieldName
- data OpExpr = OpExpr {}
- _OpExpr :: Name
- _OpExpr_op :: FieldName
- _OpExpr_lhs :: FieldName
- _OpExpr_rhs :: FieldName
- data Padding = Padding {
- paddingLeft :: Ws
- paddingRight :: Ws
- _Padding :: Name
- _Padding_left :: FieldName
- _Padding_right :: FieldName
- newtype Precedence = Precedence {
- unPrecedence :: Int
- _Precedence :: Name
- newtype Symbol = Symbol {}
- _Symbol :: Name
- data Ws
- _Ws :: Name
- _Ws_none :: FieldName
- _Ws_space :: FieldName
- _Ws_break :: FieldName
- _Ws_breakAndIndent :: FieldName
- _Ws_doubleBreak :: FieldName
Documentation
data Associativity Source #
Operator associativity
Instances
Read Associativity Source # | |
Defined in Hydra.Util.Codetree.Ast readsPrec :: Int -> ReadS Associativity # readList :: ReadS [Associativity] # | |
Show Associativity Source # | |
Defined in Hydra.Util.Codetree.Ast showsPrec :: Int -> Associativity -> ShowS # show :: Associativity -> String # showList :: [Associativity] -> ShowS # | |
Eq Associativity Source # | |
Defined in Hydra.Util.Codetree.Ast (==) :: Associativity -> Associativity -> Bool # (/=) :: Associativity -> Associativity -> Bool # | |
Ord Associativity Source # | |
Defined in Hydra.Util.Codetree.Ast compare :: Associativity -> Associativity -> Ordering # (<) :: Associativity -> Associativity -> Bool # (<=) :: Associativity -> Associativity -> Bool # (>) :: Associativity -> Associativity -> Bool # (>=) :: Associativity -> Associativity -> Bool # max :: Associativity -> Associativity -> Associativity # min :: Associativity -> Associativity -> Associativity # |
data BlockStyle Source #
Formatting option for code blocks
Instances
Read BlockStyle Source # | |
Defined in Hydra.Util.Codetree.Ast readsPrec :: Int -> ReadS BlockStyle # readList :: ReadS [BlockStyle] # readPrec :: ReadPrec BlockStyle # readListPrec :: ReadPrec [BlockStyle] # | |
Show BlockStyle Source # | |
Defined in Hydra.Util.Codetree.Ast showsPrec :: Int -> BlockStyle -> ShowS # show :: BlockStyle -> String # showList :: [BlockStyle] -> ShowS # | |
Eq BlockStyle Source # | |
Defined in Hydra.Util.Codetree.Ast (==) :: BlockStyle -> BlockStyle -> Bool # (/=) :: BlockStyle -> BlockStyle -> Bool # | |
Ord BlockStyle Source # | |
Defined in Hydra.Util.Codetree.Ast compare :: BlockStyle -> BlockStyle -> Ordering # (<) :: BlockStyle -> BlockStyle -> Bool # (<=) :: BlockStyle -> BlockStyle -> Bool # (>) :: BlockStyle -> BlockStyle -> Bool # (>=) :: BlockStyle -> BlockStyle -> Bool # max :: BlockStyle -> BlockStyle -> BlockStyle # min :: BlockStyle -> BlockStyle -> BlockStyle # |
_BlockStyle :: Name Source #
data BracketExpr Source #
An expression enclosed by brackets
Instances
Read BracketExpr Source # | |
Defined in Hydra.Util.Codetree.Ast readsPrec :: Int -> ReadS BracketExpr # readList :: ReadS [BracketExpr] # readPrec :: ReadPrec BracketExpr # readListPrec :: ReadPrec [BracketExpr] # | |
Show BracketExpr Source # | |
Defined in Hydra.Util.Codetree.Ast showsPrec :: Int -> BracketExpr -> ShowS # show :: BracketExpr -> String # showList :: [BracketExpr] -> ShowS # | |
Eq BracketExpr Source # | |
Defined in Hydra.Util.Codetree.Ast (==) :: BracketExpr -> BracketExpr -> Bool # (/=) :: BracketExpr -> BracketExpr -> Bool # | |
Ord BracketExpr Source # | |
Defined in Hydra.Util.Codetree.Ast compare :: BracketExpr -> BracketExpr -> Ordering # (<) :: BracketExpr -> BracketExpr -> Bool # (<=) :: BracketExpr -> BracketExpr -> Bool # (>) :: BracketExpr -> BracketExpr -> Bool # (>=) :: BracketExpr -> BracketExpr -> Bool # max :: BracketExpr -> BracketExpr -> BracketExpr # min :: BracketExpr -> BracketExpr -> BracketExpr # |
_BracketExpr :: Name Source #
Matching open and close bracket symbols
An abstract expression
An operator expression
Left and right padding for an operator
Padding | |
|
newtype Precedence Source #
Operator precedence
Precedence | |
|
Instances
Read Precedence Source # | |
Defined in Hydra.Util.Codetree.Ast readsPrec :: Int -> ReadS Precedence # readList :: ReadS [Precedence] # readPrec :: ReadPrec Precedence # readListPrec :: ReadPrec [Precedence] # | |
Show Precedence Source # | |
Defined in Hydra.Util.Codetree.Ast showsPrec :: Int -> Precedence -> ShowS # show :: Precedence -> String # showList :: [Precedence] -> ShowS # | |
Eq Precedence Source # | |
Defined in Hydra.Util.Codetree.Ast (==) :: Precedence -> Precedence -> Bool # (/=) :: Precedence -> Precedence -> Bool # | |
Ord Precedence Source # | |
Defined in Hydra.Util.Codetree.Ast compare :: Precedence -> Precedence -> Ordering # (<) :: Precedence -> Precedence -> Bool # (<=) :: Precedence -> Precedence -> Bool # (>) :: Precedence -> Precedence -> Bool # (>=) :: Precedence -> Precedence -> Bool # max :: Precedence -> Precedence -> Precedence # min :: Precedence -> Precedence -> Precedence # |
_Precedence :: Name Source #
Any symbol