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

Hydra.Util.Codetree.Ast

Description

A model which provides a common syntax tree for Hydra serializers

Synopsis

Documentation

data Brackets Source #

Matching open and close bracket symbols

Constructors

Brackets 

data Expr Source #

An abstract expression

Instances

Instances details
Read Expr Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Show Expr Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

Eq Expr Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

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

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

Ord Expr Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

compare :: Expr -> Expr -> Ordering #

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

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

(>) :: Expr -> Expr -> Bool #

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

max :: Expr -> Expr -> Expr #

min :: Expr -> Expr -> Expr #

data Op Source #

An operator symbol

Instances

Instances details
Read Op Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Show Op Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

showsPrec :: Int -> Op -> ShowS #

show :: Op -> String #

showList :: [Op] -> ShowS #

Eq Op Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

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

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

Ord Op Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

compare :: Op -> Op -> Ordering #

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

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

(>) :: Op -> Op -> Bool #

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

max :: Op -> Op -> Op #

min :: Op -> Op -> Op #

data OpExpr Source #

An operator expression

Constructors

OpExpr 

Fields

Instances

Instances details
Read OpExpr Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Show OpExpr Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Eq OpExpr Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

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

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

Ord OpExpr Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

data Padding Source #

Left and right padding for an operator

Constructors

Padding 

Fields

Instances

Instances details
Read Padding Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Show Padding Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Eq Padding Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

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

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

Ord Padding Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

newtype Symbol Source #

Any symbol

Constructors

Symbol 

Fields

Instances

Instances details
Read Symbol Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Show Symbol Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Eq Symbol Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

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

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

Ord Symbol Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

data Ws Source #

One of several classes of whitespace

Instances

Instances details
Read Ws Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Show Ws Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

showsPrec :: Int -> Ws -> ShowS #

show :: Ws -> String #

showList :: [Ws] -> ShowS #

Eq Ws Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

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

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

Ord Ws Source # 
Instance details

Defined in Hydra.Util.Codetree.Ast

Methods

compare :: Ws -> Ws -> Ordering #

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

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

(>) :: Ws -> Ws -> Bool #

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

max :: Ws -> Ws -> Ws #

min :: Ws -> Ws -> Ws #