Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype MainFunctionDef = MainFunctionDef Definition
- data CheckedMainFunctionDef = CheckedMainFunctionDef {}
- 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
mainFunctionDefs :: Interface -> [MainFunctionDef] Source #
checkTypeOfMain :: Definition -> HsCompileM (Maybe CheckedMainFunctionDef) Source #
Check that the main function has type IO a, for some a.
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 #
noCheckCover :: (HasBuiltins m, MonadReduce m) => QName -> m Bool Source #