purescript-0.5.7.1: PureScript Programming Language Compiler

Safe HaskellSafe-Inferred

Language.PureScript.Optimizer.Common

Description

Common functions used by the various optimizer phases

Documentation

applyAll :: [a -> a] -> a -> aSource

replaceIdent :: String -> JS -> JS -> JSSource

replaceIdents :: [(String, JS)] -> JS -> JSSource

isReassigned :: String -> JS -> BoolSource

isRebound :: JS -> JS -> BoolSource

isUsed :: String -> JS -> BoolSource

isUpdated :: String -> JS -> BoolSource

removeFromBlock :: ([JS] -> [JS]) -> JS -> JSSource