Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.PureScript.CodeGen.JS
Description
This module generates code in the core imperative representation from elaborated PureScript code.
Synopsis
- everywhere :: (AST -> AST) -> AST -> AST
- data AST
- data InitializerEffects
- everywhereTopDownM :: Monad m => (AST -> m AST) -> AST -> m AST
- withSourceSpan :: SourceSpan -> AST -> AST
- module Language.PureScript.CodeGen.JS.Common
- moduleToJs :: (MonadReader Options m, MonadSupply m, MonadError MultipleErrors m) => Module Ann -> Maybe PSString -> m Module
Documentation
Data type for simplified JavaScript expressions
data InitializerEffects #
Indicates whether the initializer of a variable is known not to have side effects, and thus can be inlined if needed or removed if unneeded.
Constructors
NoEffects | |
UnknownEffects |
Instances
Show InitializerEffects # | |
Defined in Language.PureScript.CoreImp.AST Methods showsPrec :: Int -> InitializerEffects -> ShowS # show :: InitializerEffects -> String # showList :: [InitializerEffects] -> ShowS # | |
Eq InitializerEffects # | |
Defined in Language.PureScript.CoreImp.AST Methods (==) :: InitializerEffects -> InitializerEffects -> Bool # (/=) :: InitializerEffects -> InitializerEffects -> Bool # |
withSourceSpan :: SourceSpan -> AST -> AST #
moduleToJs :: (MonadReader Options m, MonadSupply m, MonadError MultipleErrors m) => Module Ann -> Maybe PSString -> m Module #
Generate code in the simplified JavaScript intermediate representation for all declarations in a module.