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

Safe HaskellSafe
LanguageHaskell98

DDC.Core.Collect.FreeX

Contents

Description

Collecting sets of variables and constructors.

Synopsis

Documentation

freeX :: (BindStruct c n, Ord n) => Env n -> c -> Set (Bound n) Source #

Collect the free Data and Witness variables in a thing (level-0).

bindDefX :: BindStruct c n => BindWay -> [Bind n] -> [c] -> BindTree n Source #

Helper for constructing the BindTree for an expression or witness binder.

Orphan instances

BindStruct (Witness a n) n Source # 

Methods

slurpBindTree :: Witness a n -> [BindTree n] Source #

BindStruct (Cast a n) n Source # 

Methods

slurpBindTree :: Cast a n -> [BindTree n] Source #

BindStruct (Alt a n) n Source # 

Methods

slurpBindTree :: Alt a n -> [BindTree n] Source #

BindStruct (Exp a n) n Source # 

Methods

slurpBindTree :: Exp a n -> [BindTree n] Source #

BindStruct (Module a n) n Source # 

Methods

slurpBindTree :: Module a n -> [BindTree n] Source #