Agda-2.6.1.3: A dependently typed functional programming language and proof assistant
Safe HaskellNone
LanguageHaskell2010

Agda.Compiler.MAlonzo.Primitives

Synopsis

Documentation

hasMainFunction Source #

Arguments

:: IsMain

Are we looking at the main module?

-> Interface

The module.

-> IsMain

Did we find a "main" function?

Check for "main" function, but only in the main module.

checkTypeOfMain :: IsMain -> QName -> Definition -> TCM [Decl] -> TCM [Decl] Source #

Check that the main function has type IO a, for some a.

importsForPrim :: TCM [ModuleName] Source #

Haskell modules to be imported for BUILT-INs

xForPrim :: [(String, TCM [a])] -> TCM [a] Source #

primBody :: String -> TCM Exp Source #

Definition bodies for primitive functions