| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Agda.Compiler.JS.Pretty
Synopsis
- br :: Int -> String
 - unescape :: Char -> String
 - unescapes :: String -> String
 - class Pretty a where
 - class Pretties a where
 - block :: Nat -> Int -> Exp -> String
 - block' :: Nat -> Int -> Exp -> String
 - modname :: GlobalId -> String
 - exports :: Nat -> Int -> Set [MemberId] -> [Export] -> String
 - variableName :: String -> String
 - isValidJSIdent :: String -> Bool
 
Documentation
variableName :: String -> String Source #
isValidJSIdent :: String -> Bool Source #
Check if a string is a valid JS identifier. The check ignores keywords as we prepend z_ to our identifiers. The check is conservative and may not admit all valid JS identifiers.