cabal-helper: Simple interface to some of Cabal's configuration state used by ghc-mod

[ apache, distribution, library ] [ Propose Tags ]

cabal-helper provides a library which wraps the internal use of anexecutable to lift the restrictions imposed by linking against versions of GHC before 7.10. This has the pleasant side effect of isolating the user from having to deal with Cabal version changes manually as cabal-helper can simply recompile it's helper program automatically as needed.

cabal-helper uses a wrapper executable to compile the actual cabal-helper executable at runtime while linking against an arbitrary version of Cabal. This runtime-compiled helper executable is then used to extract various bits and peices from Cabal's on disk state (dist/setup-config) written by it's configure command.

In addition to this the wrapper executable also supports installing any version of Cabal from hackage in case it cannot be found in any available package database. The wrapper installs these instances of the Cabal library into a private package database so as to not interfere with the user's packages.

Furthermore the wrapper supports one special case namely reading a state file for Cabal itself. This is needed as Cabal compiles it's Setup.hs using itself and not using any version of Cabal installed in any package database.

cabal-helper can compile with Cabal >= 1.14 but requires Cabal >= 1.16 at runtime.




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, (info)
Dependencies base (>=4.5 && <5), bytestring (>= && <0.11), Cabal (>=1.14 && <1.23), directory (>= && <1.5), filepath (>= && <1.5), ghc-prim, mtl (>=2.2 && <2.3), process (>= && <1.3), template-haskell (>= && <2.11), temporary (>=1.2 && <1.3), transformers (>= && <0.6), utf8-string [details]
License AGPL-3.0-only
Author Daniel Gröber <>
Revised Revision 1 made by DanielG at 2016-07-06T19:08:06Z
Category Distribution
Source repo head: git clone
Uploaded by DanielG at 2016-01-10T21:46:27Z
Reverse Dependencies 3 direct, 3 indirect [details]
Executables cabal-helper-wrapper
Downloads 46267 total (94 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-01-10 [all 1 reports]