[GHC] #10354: ApiAnnotations : parens around a context with wildcard loses annotations

GHC ghc-devs at haskell.org
Sat Apr 25 10:31:35 UTC 2015


#10354: ApiAnnotations : parens around a context with wildcard loses annotations
-------------------------------------+-------------------------------------
              Reporter:  alanz       |             Owner:  alanz
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:  Compiler    |           Version:  7.10.1
              Keywords:              |  Operating System:  Unknown/Multiple
  ApiAnnotations                     |   Type of failure:  None/Unknown
          Architecture:              |        Blocked By:
  Unknown/Multiple                   |   Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 In the following code, the extra set of parens around the context end up
 with detached annotations.

 {{{#!hs
 {-# LANGUAGE PartialTypeSignatures #-}
 module ParensAroundContext where

 f :: ((Eq a, _)) => a -> a -> Bool
 f x y = x == y
 }}}

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


More information about the ghc-tickets mailing list