ddc-source-tetra-0.4.3.1: Disciplined Disciple Compiler source language.

Safe HaskellNone
LanguageHaskell98

DDC.Source.Tetra.DataDef

Contents

Description

Source Tetra data type definitions.

Synopsis

Data Type Definition.

data DataDef l Source #

Data type definitions.

Constructors

DataDef 

Fields

Instances

(ShowLanguage l, Show (DataCtor l)) => Show (DataDef l) Source # 

Methods

showsPrec :: Int -> DataDef l -> ShowS #

show :: DataDef l -> String #

showList :: [DataDef l] -> ShowS #

NFData (DataDef n) Source # 

Methods

rnf :: DataDef n -> () #

envOfDataDef :: DataDef Source -> Env Source #

Take the types of data constructors from a data type definition.

Data Constructor Definition.

data DataCtor l Source #

A data type constructor definition.

Constructors

DataCtor 

Fields

Instances

ShowLanguage l => Show (DataCtor l) Source # 

Methods

showsPrec :: Int -> DataCtor l -> ShowS #

show :: DataCtor l -> String #

showList :: [DataCtor l] -> ShowS #

NFData (DataCtor n) Source # 

Methods

rnf :: DataCtor n -> () #

typeOfDataCtor :: DataDef l -> DataCtor l -> GType l Source #

Get the type of a data constructor.