[GHC] #11439: Request for comments: Allow duplicate type signatures

GHC ghc-devs at haskell.org
Sat Jan 16 16:12:57 UTC 2016


#11439: Request for comments: Allow duplicate type signatures
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 I like that, GHCi could display associated types:

 {{{#!hs
 >>> :type sum
 sum :: SBool single -> IsSingleton single -> Natural
 >>>
 >>> :types sum
 sum :: SBool single -> IsSingleton single -> Natural

 sum STrue  :: Natural -> Natural
 sum SFalse :: [Natural] -> Natural
 }}}

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


More information about the ghc-tickets mailing list