purescript-0.10.4: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.CodeGen.JS.Optimizer.Common

Description

Common functions used by the various optimizer phases

Documentation

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

replaceIdents :: [(Text, JS)] -> JS -> JS Source #

removeFromBlock :: ([JS] -> [JS]) -> JS -> JS Source #

isFn :: (Text, Text) -> JS -> Bool Source #

isDict :: (Text, Text) -> JS -> Bool Source #

isDict' :: [(Text, Text)] -> JS -> Bool Source #