Extending Cabal with Plugins, Preprocessors and Multi-target Compilers
Haskell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Cabal
TestProject
Tools
.gitignore
Cabal.hs
Debug.hs
Main.hs
README.md
ToolCabalGithub.sublime-project
ToolCabalGithub.sublime-workspace
Tools.cabal
pkg.toolpkg

README.md

ToolCabal

Extending Cabal with Plugins, Preprocessors and Multi-target Compilers

This a rewrite form scratch of the build system of cabal

This is a beta version and documentation is not yet complete.

The following is supported:

  • Multiple targets and flavours to be build simultaneously (only GHC)
    • Use --compiler-target=TARGET and --compiler-flavour=FLAVOUR flags
  • use preprocessors directly in the package description
    • use-tool PREPROCESSOR (INPUTFILE, OUTPUTFILE, FLAGS)
      • FLAGS are always written as -f -f=OPTION --f --f=OPTION syntax
  • plugins for preprocessors
    • see for an example the istTool.hs file inside TestProject
  • For the new package description format
    • see example inside the TestProject

To test:

  • build the tools library and toolCabal executable (using cabal)
  • run toolCabal in the TestProject folder