template-haskell-natural-1.0.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.Natural.Syntax.Expr.Internal

Description

Internals for building simple expressions. Do not use unless you know what you are doing

Synopsis

Binding (Let, do bind)

data Binding Source #

Constructors

MkBind 

Fields

Instances

Instances details
Show Binding Source # 
Instance details

Defined in Language.Haskell.TH.Natural.Syntax.Expr.Internal

Eq Binding Source # 
Instance details

Defined in Language.Haskell.TH.Natural.Syntax.Expr.Internal

Methods

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

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

Deconstruction

data Deconstruct Source #

Constructors

MkDec 

Fields

mergeDeconstructs :: MonadFail m => [Deconstruct] -> m [Deconstruct] Source #

Merge Deconstructs that have the same src

mergeDeconstruct :: MonadFail m => Deconstruct -> Deconstruct -> m Deconstruct Source #

Merge two Deconstructs. Will fail if the constructor does not match or if the totalFeildCount are not equal