[GHC] #8567: Poor error message when GeneralizedNewtypeDeriving fails

GHC ghc-devs at haskell.org
Mon Dec 2 11:11:57 UTC 2013


#8567: Poor error message when GeneralizedNewtypeDeriving fails
-------------------------------------+------------------------------------
        Reporter:  goldfire          |            Owner:  nomeata
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.7
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by Joachim Breitner <mail@…>):

 In [changeset:"1791ea0abf446bc7221f713d715f4bf87dc6af47/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="1791ea0abf446bc7221f713d715f4bf87dc6af47"
 Print nicer error message for Coercible errors

 It now reads

    Could not coerce from ‛S a’ to ‛S (NT a)’

 and does not mention Coercible any more (as discussed in #8567).
 }}}

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


More information about the ghc-tickets mailing list