ddc-core-simpl-0.4.3.1: Disciplined Disciple Compiler code transformations.

Safe HaskellSafe
LanguageHaskell98

DDC.Type.Transform.Alpha

Documentation

class Alpha c where Source #

Minimal complete definition

alpha

Methods

alpha :: forall n1 n2. Ord n2 => (n1 -> n2) -> c n1 -> c n2 Source #

Apply a function to all the names in a thing.

Instances

Alpha Bind Source # 

Methods

alpha :: Ord n2 => (n1 -> n2) -> Bind n1 -> Bind n2 Source #

Alpha Bound Source # 

Methods

alpha :: Ord n2 => (n1 -> n2) -> Bound n1 -> Bound n2 Source #

Alpha Type Source # 

Methods

alpha :: Ord n2 => (n1 -> n2) -> Type n1 -> Type n2 Source #

Alpha TypeSum Source # 

Methods

alpha :: Ord n2 => (n1 -> n2) -> TypeSum n1 -> TypeSum n2 Source #

Alpha TyCon Source # 

Methods

alpha :: Ord n2 => (n1 -> n2) -> TyCon n1 -> TyCon n2 Source #