Skip to content

ApiAnnotations : Empty context loses annotations

A type signature of the form

bar :: (   ) => a-> Bool

generates annotations for the ( ) => but the SrcSpan they are attached to is discarded so the annotations are not attached to the AST.

The discarding process happens in

mkHsForAllTy exp tvs (L _ []) ty = mk_forall_ty exp tvs ty

where the empty located context is discarded.

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