#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):
The point is, if you FFI import a C function that takes a `time_t`, then
you can't pass it a `MyType` unless you know that `MyType` is represented
by `CTime` (e.g. `newtype MyType = MyType CTime`). If `MyType` is abstract
then you don't know that.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5529#comment:7>
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