name: const-math-ghc-plugin version: 0.3.0.0 synopsis: Compiler plugin for constant math elimination description: 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. . license: BSD3 license-file: LICENSE author: Conrad Parker, John Lato maintainer: Conrad Parker -- copyright: category: Compiler Plugin homepage: https://github.com/kfish/const-math-ghc-plugin build-type: Simple cabal-version: >=1.8 -- tests/*.hs shouldn't have to go here, but the source files -- for the test-suite stanzas don't get picked up by 'cabal sdist'. Extra-source-files: tests/*.hs tests/Makefile library exposed-modules: ConstMath.Plugin other-modules: ConstMath.Pass ConstMath.PrimRules ConstMath.Types -- get the appropriate PrimRules list for this ghc version if impl(ghc == 7.4.*) other-modules: ConstMath.PrimRules.V704 if impl(ghc == 7.6.*) other-modules: ConstMath.PrimRules.V706 build-depends: base < 5, containers, ghc >= 7.4 Test-suite tests type: exitcode-stdio-1.0 hs-source-dirs: tests main-is: Make.hs build-depends: base < 5, directory, process ------------------------------------------------------------------------ -- Git repo -- source-repository head type: git location: git://github.com/kfish/const-math-ghc-plugin.git