zephyr-0.1.4: Zephyr tree shaking for PureScript Language

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.DCE.Foreign

Description

Simple dead call elimination in foreign modules.

Synopsis

Documentation

dceForeignModule :: [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).