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

Safe Haskell | Safe-Inferred
Language | Haskell2010

Agda.Compiler.MAlonzo.Primitives

Synopsis

- newtype MainFunctionDef = MainFunctionDef Definition
- data CheckedMainFunctionDef = CheckedMainFunctionDef {
  - checkedMainDef :: MainFunctionDef
  - checkedMainDecl :: Decl
  }
- asMainFunctionDef :: Definition -> Maybe MainFunctionDef
- mainFunctionDefs :: Interface -> [MainFunctionDef]
- checkTypeOfMain :: Definition -> HsCompileM (Maybe CheckedMainFunctionDef)
- checkTypeOfMain' :: MainFunctionDef -> TCM CheckedMainFunctionDef
- treelessPrimName :: TPrim -> String
- importsForPrim :: BuiltinThings PrimFun -> [Definition] -> [ModuleName]
- xForPrim :: Map String a -> BuiltinThings PrimFun -> [Definition] -> [a]
- primBody :: MonadTCError m => String -> m Exp
- noCheckCover :: (HasBuiltins m, MonadReduce m) => QName -> m Bool
- bltQual' :: String -> String -> HsCompileM String

# Documentation

newtype MainFunctionDef Source #

Constructors

MainFunctionDef Definition |

data CheckedMainFunctionDef Source #

Constructors

CheckedMainFunctionDef |

Fields

- checkedMainDef :: MainFunctionDef
- checkedMainDecl :: Decl

asMainFunctionDef :: Definition -> Maybe MainFunctionDef Source #

mainFunctionDefs :: Interface -> [MainFunctionDef] Source #

checkTypeOfMain :: Definition -> HsCompileM (Maybe CheckedMainFunctionDef) Source #

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

checkTypeOfMain' :: MainFunctionDef -> TCM CheckedMainFunctionDef Source #

treelessPrimName :: TPrim -> String Source #

importsForPrim :: BuiltinThings PrimFun -> [Definition] -> [ModuleName] Source #

Haskell modules to be imported for BUILT-INs

xForPrim :: Map String a -> BuiltinThings PrimFun -> [Definition] -> [a] Source #

primBody :: MonadTCError m => String -> m Exp Source #

Definition bodies for primitive functions

noCheckCover :: (HasBuiltins m, MonadReduce m) => QName -> m Bool Source #

bltQual' :: String -> String -> HsCompileM String Source #