[GHC] #10794: Extension request: "where" clauses in type signatures

GHC ghc-devs at haskell.org
Wed Aug 26 07:38:31 UTC 2015


#10794: Extension request: "where" clauses in type signatures
-------------------------------------+-------------------------------------
        Reporter:  danso             |                   Owner:
            Type:  feature request   |                  Status:  new
        Priority:  lowest            |               Milestone:
       Component:  Compiler (Type    |                 Version:  7.10.2
  checker)                           |
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by simonpj):

 You can today say
 {{{
 fold :: (f ~ a -> a -> a)
      => f -> [a] -> [a]
 }}}
 which does the job reasonably.  I doubt it's worth doing more.

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


More information about the ghc-tickets mailing list