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

Safe HaskellSafe
LanguageHaskell98

DDC.Source.Tetra.Transform.BoundX

Description

Lifting and lowering level-0 deBruijn indices in source expressions.

Level-0 indices are used for both value and witness variables.

Synopsis

Documentation

liftX :: (MapBoundX c l, GBound l ~ Bound n) => Int -> c l -> c l Source

Wrapper for liftAtDepthX that starts at depth 0.

liftAtDepthX Source

Arguments

:: (MapBoundX c l, GBound l ~ Bound n) 
=> l 
-> Int

Number of levels to lift.

-> Int

Current binding depth.

-> c l

Lift expression indices in this thing.

-> c l 

Lift debruijn indices less than or equal to the given depth.

class HasAnonBind l where Source

Methods

isAnon :: l -> GBind l -> Bool Source

Instances