ddc-core-0.4.3.1: Disciplined Disciple Compiler core language and type checker.

Safe HaskellSafe
LanguageHaskell98

DDC.Core.Exp.Annot.AnTEC

Synopsis

Documentation

data AnTEC a n Source #

The type checker adds this annotation to every node in the AST, giving its type, effect and closure.

Constructors

AnTEC 

Instances

(Show a, Show n) => Show (AnTEC a n) Source # 

Methods

showsPrec :: Int -> AnTEC a n -> ShowS #

show :: AnTEC a n -> String #

showList :: [AnTEC a n] -> ShowS #

(NFData a, NFData n) => NFData (AnTEC a n) Source # 

Methods

rnf :: AnTEC a n -> () #

Pretty (AnTEC a n) Source # 

Associated Types

data PrettyMode (AnTEC a n) :: * Source #

Methods

pprDefaultMode :: PrettyMode (AnTEC a n) Source #

ppr :: AnTEC a n -> Doc Source #

pprPrec :: Int -> AnTEC a n -> Doc Source #

pprModePrec :: PrettyMode (AnTEC a n) -> Int -> AnTEC a n -> Doc Source #

fromAnT :: AnT a n -> AnTEC a n Source #

Promote an AnT to an AnTEC by filling in the effect and closure portions with bottoms.