#5529: Newtypes with hidden constructors cannot be passed as FFI arguments
-----------------------------------+----------------------------------------
Reporter: mikhail.vorozhtsov | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
-----------------------------------+----------------------------------------
Comment(by igloo@…):
commit fb83cd0239e6d50b0ef0ad5cd9b641f0b4df032c
{{{
Author: Ian Lynagh <[email protected]>
Date: Fri Oct 21 00:47:15 2011 +0100
Finish fixing #5529: Require that constructors are imported from all
types
We used to have a hack for Foreign.C.Types and System.Posix.Types,
but I've removed that now. We also mark any constructors that we look
through as "used", so that we don't get warnings about unused imports.
compiler/typecheck/TcForeign.lhs | 28 ++++++++++++++++++++++------
compiler/utils/Outputable.lhs | 5 +++++
2 files changed, 27 insertions(+), 6 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5529#comment:14>
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