[Haskell] Cabal problems

Peter Simons simons at cryp.to
Fri Apr 29 11:07:07 EDT 2005


I've run into a problem when trying to build a package with
Cabal using a different GHC version than the one found in
the $PATH. It looks like this:

  $ runghc Setup.lhs configure --with-compiler=/opt/ghc/bin/ghc-6.2.2
  Warning: No license-file field.
  Configuring hsemail-0.0-2005-02-14...
  configure: looking for package tool: ghc-pkg near compiler in /opt/ghc/bin/ghc-6.2.2
  Cannot find package tool: /opt/ghc/bin/ghc-pkg.2

Apparently there's some problem in the path manipulation

I also wonder why Cabal complains about a missing License
field, because the file contains:

  License: GPL

Last but not least, Cabal fails when the package description
file contains comments after the value. The entry

  Extensions: CPP          -- some comment

for example, will cause this error:

  *** Exception: Line 13: Parse of field 'extensions' failed

I am using the Cabal version that's shipped with GHC's


More information about the Haskell mailing list