[GHC] #13115: missing data instances for IntPtr and WordPtr in base
GHC
ghc-devs at haskell.org
Sun Sep 10 07:39:59 UTC 2017
#13115: missing data instances for IntPtr and WordPtr in base
-------------------------------------+-------------------------------------
Reporter: carter | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by sighingnow):
Replying to [comment:3 RyanGlScott]:
> Ah, OK. Thanks for clarifying!
>
> I don't think this would be too hard to accomplish, if someone wants to
volunteer a patch.
Hi, I am a newcomer to ghc-devs mailing list and I volunteer to fix this
issue.
Since base-4.10.0.0, the `IntPtr` and `WordPtr` are defined using
`newtype` rather than `data` (as in base-4.9.1.0), is it enough for this
issue that putting the following instance declarations to `Data.Data`
module (with `GeneralizedNewtypeDeriving` enabled) ?
{{{#!haskell
deriving instance Data IntPtr
deriving instance Data WordPtr
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13115#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list