[GHC] #10715: Possible regression in Coercible a (X a) between 7.8 and 7.10
GHC
ghc-devs at haskell.org
Fri Jul 31 15:37:58 UTC 2015
#10715: Possible regression in Coercible a (X a) between 7.8 and 7.10
-------------------------------------+-------------------------------------
Reporter: inaki | Owner: goldfire
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by inaki):
In response to [comment:6 simonpj]:
> I'm all for !ForeignPtrs having distinct types. I just don't understand
why it has to be a recursive type. What's wrong with this?
> {{{
> newtype FY = FY (ForeignPtr Y)
> data Y
> }}}
> (except that it isn't what c2hs does today)
Certainly nothing! In code I write by hand can easily do this.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10715#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list