[GHC] #16212: API Annotations: Parens not attached correctly for ClassDecl

GHC ghc-devs at haskell.org
Mon Jan 21 20:52:11 UTC 2019


#16212: API Annotations: Parens not attached correctly for ClassDecl
-------------------------------------+-------------------------------------
           Reporter:  alanz          |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.8.1
          Component:  Compiler       |           Version:  8.6.3
  (Parser)                           |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Incorrect API
  Unknown/Multiple                   |  annotation
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 For the file

 {{{#!hs
 module ClassParens where

 class LiftingMonad  (trans :: MTrans) where
   proof :: Monad m :- Monad (trans m)

 class LiftingMonad2  ((trans :: MTrans)) where
   proof :: Monad m :- Monad (trans m)
 }}}

 The parens around the kinded tyvars should be attached to the class
 declaration as a whole, they are attached to the tyvar instead, outside
 the span.

 An annotation must always be within the span it is contained in.

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


More information about the ghc-tickets mailing list