[GHC] #10087: DefaultSignatures: error message mentions internal name

GHC ghc-devs at haskell.org
Wed Apr 20 16:08:12 UTC 2016


#10087: DefaultSignatures: error message mentions internal name
-------------------------------------+-------------------------------------
        Reporter:  andreas.abel      |                Owner:
            Type:  feature request   |               Status:  infoneeded
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  7.8.4
  checker)                           |
      Resolution:                    |             Keywords:  Generics
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Clarifications.  `GenDefMeth` an `NoDefMeth` are gone.  Now we just have
 (in `Class.hs`):
 {{{
 type DefMethInfo = Maybe (Name, DefMethSpec Type)
    -- Nothing                    No default method
    -- Just ($dm, VanillaDM)      A polymorphic default method, name $dm
    -- Just ($gm, GenericDM ty)   A generic default method, name $gm, type
 ty
    --                              The generic dm type is *not* quantified
    --                              over the class variables; ie has the
    --                              class vaiables free
 }}}
 So there are still three cases, just as stated in comment:4.  But the
 representation has changed.

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


More information about the ghc-tickets mailing list