template-haskell-natural-1.0.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.Natural.Syntax.Datatype.Con.GADT

Description

Builder for GADT constructor

Synopsis

Type

newGADTCon Source #

Arguments

:: String

The name of the constructor

-> Type

The return type of the constructor

-> GADTConBuilder () 
-> Q GadtC 

Builds a GADT constructor

Functions

addField :: Type -> GADTConBuilder () Source #

Add a field to the constructor

addField' :: (Bang, Type) -> GADTConBuilder () Source #

Same as addField, but allow setting the field's Kind