purescript-0.6.4.1: PureScript Programming Language Compiler
Language.PureScript.CodeGen.JS.Optimizer.Common
Description
Common functions used by the various optimizer phases
applyAll :: [a -> a] -> a -> a Source
replaceIdent :: String -> JS -> JS -> JS Source
replaceIdents :: [(String, JS)] -> JS -> JS Source
isReassigned :: String -> JS -> Bool Source
isRebound :: JS -> JS -> Bool Source
isUsed :: String -> JS -> Bool Source
targetVariable :: JS -> String Source
isUpdated :: String -> JS -> Bool Source
removeFromBlock :: ([JS] -> [JS]) -> JS -> JS Source