[GHC] #16319: unexpected difference between newtype and data

GHC ghc-devs at haskell.org
Thu Feb 14 14:28:49 UTC 2019


#16319: unexpected difference between newtype and data
---------------------------------+----------------------------------------
        Reporter:  pjljvdlaar    |                Owner:  (none)
            Type:  bug           |               Status:  new
        Priority:  normal        |            Milestone:
       Component:  Compiler      |              Version:  8.2.2
      Resolution:                |             Keywords:
Operating System:  Windows       |         Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+----------------------------------------

Comment (by goldfire):

 Hm. It looks like the `newtype` deriving strategy (which is what would be
 used for `Eq` and `Ord` but not for others) ignores datatype contexts.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16319#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list