Skip to content

ApiAnnotations : parens around a context with wildcard loses annotations

In the following code, the extra set of parens around the context end up with detached annotations.

{-# LANGUAGE PartialTypeSignatures #-}
module ParensAroundContext where

f :: ((Eq a, _)) => a -> a -> Bool
f x y = x == y
Trac metadata
Trac field Value
Version 7.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC mpickering
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information