zephyr-0.3.2: Zephyr, tree-shaking for the PureScript language

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.DCE.Foreign

Description

Simple dead call elimination in foreign modules.

Synopsis

Documentation

runForeignModuleDeadCodeElimination :: [Ident] -> [JSStatement] -> [JSStatement] Source #

Filter export statements in a foreign module. This is not 100% safe. It might remove declarations that are used somewhere in the foreign module (for example by using eval).