hs2cpp
Define preprocessor macro libraries in Haskell.
Try out
- Install HaskellToMacro as a ghc plugin. (cabal install)
- Go to the Test directory
- compile a testfile using the plugin:
ghc -fplugin HaskellToMacro.Plugin
Testing:
with Test/Tester.hs:
test: test with all testfilesrunTest "ModuleName": test ModuleName.hspreprocess "ModuleName": run preprocessor on ModuleName.cshowCore "ModuleName": show core representation of ModuleName.hs