Compiler plugin for constant math elimination https://github.com/kfish/const-math-ghc-plugin
|Latest on Hackage:||220.127.116.11|
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.
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.