darcs patch: Be cleverer about guessing hc-pkg name a... (and 1 more)

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Fri Aug 25 17:27:37 EDT 2006

I got annoied with specifying:

./setup configure --with-compiler=ghc-6.5.20060724 --with-hc-pkg=ghc-pkg-6.5.20060724

So the first patch makes it guess better about so that this works:

./setup configure --with-compiler=ghc-6.5.20060724

The second patch is just a trivial simplification. That bit
should probably use pipes rather than outputting to a file
and then reading the file.

I didn't want to just push these changes, so can someone else
give them a quick look over and commit. Cheers.


Wed Aug 23 11:54:12 BST 2006  Duncan Coutts <duncan.coutts at worc.ox.ac.uk>
  * Be cleverer about guessing hc-pkg name and location.
  So it now works if you say:
  ./setup configure --with-compiler=ghc-6.5
  ie specifying a path-relative name rather than an absolute path.
  We then look for hc-pkg in the same dir as where we found the compiler.
  If the compiler appears to have a version suffix then we additionally
  and preferentially look for hc-pkg with that same version suffix.
  (I'm not sure that bit works if you've got a .exe suffix, perhaps a
  windows person could try it / take a look)

Wed Aug 23 11:59:56 BST 2006  Duncan Coutts <duncan.coutts at worc.ox.ac.uk>
  * Use slightly simpler way of getting GHC version.
  ghc has supported --numeric-version for ages.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 23019 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org//pipermail/cabal-devel/attachments/20060825/26e11a81/attachment-0001.bin

More information about the cabal-devel mailing list