[GHC] #16362: Deriving a class via an instance that has a TypeError constraint using standalone deriving fails during compilation.

GHC ghc-devs at haskell.org
Sun Feb 24 23:57:14 UTC 2019


#16362: Deriving a class via an instance that has a TypeError constraint using
standalone deriving fails during compilation.
-------------------------------------+-------------------------------------
        Reporter:  j9794             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.6.3
      Resolution:                    |             Keywords:  TypeErrors
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by j9794):

 Thanks for the prompt response and for the explanation!.

 So, is it expected behavior or an unintended consequence of how TypeError
 is treated?

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


More information about the ghc-tickets mailing list