Agda-2.5.2: A dependently typed functional programming language and proof assistant

Safe HaskellNone
LanguageHaskell2010

Agda.Compiler.MAlonzo.Compiler

Synopsis

Documentation

definition :: Maybe CoinductionKit -> Definition -> TCM [Decl] #

Note that the INFINITY, SHARP and FLAT builtins are translated as follows (if a CoinductionKit is given):

  type Infinity a b = b

  sharp :: a -> a
  sharp x = x

  flat :: a -> a
  flat x = x

data CCEnv #

Environment for naming of local variables. Invariant: reverse ccCxt ++ ccNameSupply

Constructors

CCEnv 

Fields

type NameSupply = [Name] #

type CCContext = [Name] #

initCCEnv :: CCEnv #

Initial environment for expression generation.

lookupIndex :: Int -> CCContext -> Name #

Term variables are de Bruijn indices.

freshNames :: Int -> ([Name] -> CC a) -> CC a #

intros :: Int -> ([Name] -> CC a) -> CC a #

Introduce n variables into the context.

term :: TTerm -> CC Exp #

Extract Agda term to Haskell expression. Erased arguments are extracted as (). Types are extracted as ().

alt :: Int -> TAlt -> CC Alt #

tvaldecl #

Arguments

:: QName 
-> Induction

Is the type inductive or coinductive?

-> Nat 
-> Nat 
-> [ConDecl] 
-> Maybe Clause 
-> [Decl] 

infodecl :: QName -> [Decl] -> [Decl] #

hsCast :: Exp -> Exp #