[GHC] #10971: ExtendedDefaultRules defaults to [] for Foldable/Traversable

GHC ghc-devs at haskell.org
Fri Oct 16 13:50:42 UTC 2015


#10971: ExtendedDefaultRules defaults to [] for Foldable/Traversable
-------------------------------------+-------------------------------------
        Reporter:  kanetw            |                Owner:  kanetw
            Type:  feature request   |               Status:  patch
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #10963            |  Differential Rev(s):  phab:D1329
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 I find it a little counterintuitive to have one defaulting list have types
 of several different kinds in it. For example, `default (), []` is
 accepted, and has the exact same meaning as `default [], ()`. I'd much
 prefer separating these out. But I won't make a big deal of it.

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


More information about the ghc-tickets mailing list