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

Hydra.Ext.Haskell.Serde

Description

Haskell operator precendence and associativity are drawn from: https://self-learning-java-tutorial.blogspot.com/2016/04/haskell-operator-precedence.html Other operators were investigated using GHCi, e.g. ":info (->)" Operator names are drawn (loosely) from: https://stackoverflow.com/questions/7746894/are-there-pronounceable-names-for-common-haskell-operators

Documentation

class ToTree a where Source #

Methods

toTree :: a -> Expr Source #

Instances

Instances details
ToTree Alternative Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree CaseRhs Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

Methods

toTree :: CaseRhs -> Expr Source #

ToTree Constructor Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree ConstructorWithComments Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree DataDeclaration_Keyword Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Declaration Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree DeclarationHead Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree DeclarationWithComments Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Expression Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Expression_Application Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Expression_Case Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Expression_ConstructRecord Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Expression_If Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Expression_Lambda Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Field Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

Methods

toTree :: Field -> Expr Source #

ToTree FieldWithComments Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Import Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

Methods

toTree :: Import -> Expr Source #

ToTree Literal Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

Methods

toTree :: Literal -> Expr Source #

ToTree Module Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

Methods

toTree :: Module -> Expr Source #

ToTree ModuleHead Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Name Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

Methods

toTree :: Name -> Expr Source #

ToTree Pattern Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

Methods

toTree :: Pattern -> Expr Source #

ToTree Pattern_Application Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree RightHandSide Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Statement Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Type Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

Methods

toTree :: Type -> Expr Source #

ToTree ValueBinding Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

ToTree Variable Source # 
Instance details

Defined in Hydra.Ext.Haskell.Serde

Methods

toTree :: Variable -> Expr Source #