Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- jsBackend :: Backend
- jsBackend' :: Backend' JSOptions JSOptions JSModuleEnv () (Maybe Export)
- data JSOptions = JSOptions {
- optJSCompile :: Bool
- defaultJSOptions :: JSOptions
- jsCommandLineFlags :: [OptDescr (Flag JSOptions)]
- jsPreCompile :: JSOptions -> TCM JSOptions
- jsPostCompile :: JSOptions -> IsMain -> a -> TCM ()
- type JSModuleEnv = Maybe CoinductionKit
- jsPreModule :: JSOptions -> IsMain -> ModuleName -> FilePath -> TCM (Recompile JSModuleEnv ())
- jsPostModule :: JSOptions -> JSModuleEnv -> IsMain -> ModuleName -> [Maybe Export] -> TCM ()
- jsCompileDef :: JSOptions -> JSModuleEnv -> IsMain -> Definition -> TCM (Maybe Export)
- prefix :: [Char]
- jsMod :: ModuleName -> GlobalId
- jsFileName :: GlobalId -> String
- jsMember :: Name -> MemberId
- global' :: QName -> TCM (Exp, [MemberId])
- global :: QName -> TCM (Exp, [MemberId])
- reorder :: [Export] -> [Export]
- reorder' :: Set [MemberId] -> [Export] -> [Export]
- isTopLevelValue :: Export -> Bool
- isEmptyObject :: Export -> Bool
- insertAfter :: Set [MemberId] -> Export -> [Export] -> [Export]
- curModule :: IsMain -> TCM Module
- definition :: Maybe CoinductionKit -> (QName, Definition) -> TCM (Maybe Export)
- checkCompilerPragmas :: QName -> TCM ()
- defJSDef :: Definition -> Maybe String
- definition' :: Maybe CoinductionKit -> QName -> Definition -> Type -> [MemberId] -> TCM (Maybe Export)
- compileTerm :: TTerm -> TCM Exp
- compileTerm' :: Maybe CoinductionKit -> TTerm -> TCM Exp
- compilePrim :: TPrim -> Exp
- compileAlt :: TAlt -> TCM (MemberId, Exp)
- visitorName :: QName -> TCM MemberId
- flatName :: MemberId
- local :: Nat -> Exp
- qname :: QName -> TCM Exp
- literal :: Literal -> Exp
- litqname :: QName -> Exp
- writeModule :: Module -> TCM ()
- outFile :: GlobalId -> TCM FilePath
- outFile_ :: TCM FilePath
- copyRTEModules :: TCM ()
- primitives :: Set String
Documentation
type JSModuleEnv = Maybe CoinductionKit Source #
jsPreModule :: JSOptions -> IsMain -> ModuleName -> FilePath -> TCM (Recompile JSModuleEnv ()) Source #
jsPostModule :: JSOptions -> JSModuleEnv -> IsMain -> ModuleName -> [Maybe Export] -> TCM () Source #
jsCompileDef :: JSOptions -> JSModuleEnv -> IsMain -> Definition -> TCM (Maybe Export) Source #
jsMod :: ModuleName -> GlobalId Source #
jsFileName :: GlobalId -> String Source #
isTopLevelValue :: Export -> Bool Source #
isEmptyObject :: Export -> Bool Source #
definition :: Maybe CoinductionKit -> (QName, Definition) -> TCM (Maybe Export) Source #
checkCompilerPragmas :: QName -> TCM () Source #
Ensure that there is at most one pragma for a name.
definition' :: Maybe CoinductionKit -> QName -> Definition -> Type -> [MemberId] -> TCM (Maybe Export) Source #
compileTerm' :: Maybe CoinductionKit -> TTerm -> TCM Exp Source #
compilePrim :: TPrim -> Exp Source #
writeModule :: Module -> TCM () Source #
copyRTEModules :: TCM () Source #
primitives :: Set String Source #
Primitives implemented in the JS Agda RTS.