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

Safe HaskellSafe
LanguageHaskell98

DDC.Core.Transform.SpreadX

Documentation

class SpreadX c where Source

Methods

spreadX :: forall n. Ord n => Env n -> Env n -> c n -> c n Source

Spread type annotations from binders and the environment into bound occurrences of variables and constructors.

Also convert Bounds to UPrim form if the environment says that they are primitive.