@hackage const-math-ghc-plugin1.0.0.0
Compiler plugin for constant math elimination
Categories
License
BSD-3-Clause
Maintainer
Conrad Parker <conrad@metadecks.org>
Links
Versions
Installation
Dependencies (3)
- base <5
- containers
- ghc >=7.4 Show all…
Dependents (1)
@hackage/acme-everything
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.