const-math-ghc-plugin

Compiler plugin for constant math elimination

https://github.com/kfish/const-math-ghc-plugin

Latest on Hackage:1.0.0.0

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 stackage.org to host generated Haddocks.

BSD-3-Clause 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;

https://github.com/kfish/const-math-ghc-plugin

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.