purescript-0.4.18: PureScript Programming Language Compiler

Safe HaskellNone

Language.PureScript.Optimizer.Common

Description

Common functions used by the various optimizer phases

Documentation

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

replaceIdent :: Data d => String -> JS -> d -> dSource

replaceIdents :: Data d => [(String, JS)] -> d -> dSource

isRebound :: Data d => JS -> d -> BoolSource

isUsed :: Data d => String -> d -> BoolSource

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