purescript-0.6.1: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.CodeGen.JS

Description

This module generates code in the simplified Javascript intermediate representation from Purescript code

Synopsis

Documentation

declToJs :: (Functor m, Applicative m, Monad m) => Options mode -> ModuleName -> Declaration -> Environment -> SupplyT m (Maybe [JS]) Source

Generate code in the simplified Javascript intermediate representation for a declaration

moduleToJs :: (Functor m, Applicative m, Monad m) => Options mode -> Module -> Environment -> SupplyT m [JS] Source

Generate code in the simplified Javascript intermediate representation for all declarations in a module.

identNeedsEscaping :: String -> Bool Source

Test if a string is a valid JS identifier without escaping.