Safe Haskell | None |
---|---|
Language | Haskell98 |
This module generates code in the simplified Javascript intermediate representation from Purescript code
- declToJs :: (Functor m, Applicative m, Monad m) => Options mode -> ModuleName -> Declaration -> Environment -> SupplyT m (Maybe [JS])
- moduleToJs :: (Functor m, Applicative m, Monad m) => Options mode -> Module -> Environment -> SupplyT m [JS]
- identNeedsEscaping :: String -> Bool
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.