Compiler plugin for constant math elimination

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed by Conrad Parker, John Lato
Maintained by Conrad Parker

This plugin evaluates constant math expressions at compile-time.

For details and full usage information, see;

To use it to compile foo.hs:

$ cabal install const-math-ghc-plugin
$ ghc -fplugin ConstMath.Plugin foo.hs

To use it to build a cabal package packagename:

$ cabal install --ghc-options="-package const-math-ghc-plugin -fplugin ConstMath.Plugin" packagename

Math should run faster.

Depends on 3 packages:
Used by 1 package:
comments powered byDisqus