Language.PureScript.CoreImp.Optimizer.Common

purescript-0.15.15: PureScript Programming Language Compiler

Safe Haskell | None
Language | Haskell2010

Language.PureScript.CoreImp.Optimizer.Common

Description

Common functions used by the various optimizer phases

# Documentation

applyAll :: [a -> a] -> a -> a #

replaceIdent :: Text -> AST -> AST -> AST #

replaceIdents :: [(Text, AST)] -> AST -> AST #

isReassigned :: Text -> AST -> Bool #

isRebound :: AST -> AST -> Bool #

targetVariable :: AST -> Text #

isUpdated :: Text -> AST -> Bool #

removeFromBlock :: ([AST] -> [AST]) -> AST -> AST #

pattern Ref :: (ModuleName, PSString) -> AST #

refPatternHelper :: AST -> Maybe (ModuleName, PSString) #