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

Agda.Compiler.HaskellTypes

Description

Translating Agda types to Haskell types. Used to ensure that imported Haskell functions have the right type.

Synopsis

Documentation

haskellType :: MonadTCM tcm => Type -> tcm HaskellTypeSource

Note that Inf a b, where Inf is the INFINITY builtin, is translated to translation of b (assuming that all coinductive builtins are defined).

Note that if haskellType supported universe polymorphism then the special treatment of INFINITY might not be needed.