Cabal Release Candidate

Brian Smith brianlsmith at gmail.com
Tue Jul 19 00:06:27 EDT 2005


On 7/14/05, Isaac Jones <ijones at syntaxpolice.org> wrote:
> I'd appreciate it if early adopter types try out 1.1.1.  In
> particular, check out the README wrt installing alongside-of or
> instead-of 1.0 with ghc 6.4.

(1) The {-# LANGUAGE ... #-} pragma doesn't seem to work (Tested on
GHC 6.4, GHC 6.4.1).  If it was never implemented then it should be
removed from the documentation. Also, I think that this is a very
useful feature, but it should be implemented in the Haskell
implementations (Hugs, GHC, etc.), not in Cabal. In particular, I want
to be able to use {-# LANGUAGE ... #-} in a file loaded directly into
GHC(i) and Hugs.

(2) When Main-Is is malformed, the error message has a typo:
Setup.hs: Main doesn't exists

("exists" should be "exist".)

This error message is not very helpful,  because in fact module Main
does exist. What _doesn't_ exist is a file named "Main". The error
message should say:
Setup.hs:6: file "Main" does not exist.

(Notice I added the line number)

See the attached testcases.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MainIsTest.cabal
Type: application/octet-stream
Size: 144 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/libraries/attachments/20050718/3ce9ff3b/MainIsTest.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LanguagePragmaTest.cabal
Type: application/octet-stream
Size: 160 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/libraries/attachments/20050718/3ce9ff3b/LanguagePragmaTest.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.hs
Type: text/x-haskell
Size: 107 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/libraries/attachments/20050718/3ce9ff3b/Main.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Setup.hs
Type: text/x-haskell
Size: 47 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/libraries/attachments/20050718/3ce9ff3b/Setup.bin


More information about the Libraries mailing list