#5610: zlib fails to build due to Safe Haskell on GHC master
----------------------------------+-----------------------------------------
Reporter: bgamari | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.4.1
Component: libraries (other) | Version: 7.3
Keywords: zlib | Testcase:
Blockedby: | Difficulty:
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: None/Unknown
----------------------------------+-----------------------------------------
Changes (by igloo):
* priority: normal => high
* milestone: => 7.4.1
Comment:
Yes, the failure isn't a GHC bug, but the error message could be better.
We shouldn't be saying
{{{
Safe Haskell is on, all FFI imports must be in the IO monad
}}}
as that's not the problem, and it would be better if we also said
{{{
Unacceptable argument type in foreign declaration: CInt
(it is a newtype, but its constructor is not in scope)
}}}
Unfortunately, it looks like being able to give better errors will mean a
little refactoring.
But if we're going to do it then we should do it before 7.4.1, as that's
when people will run into it the most (as existing code will start giving
these errors).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5610#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs