5af42986

By: Tom Sydney Kerckhove <syd@cs-syd.eu>

Name an annotation pragma after what it annotates

GHC parses {-# ANN foo ... #-} as a declaration, so it is the next declaration
a comment above it attaches to. That fact carried the name "declaration", so
such a comment landed in a scope holding nothing: a suppression written there
matched no finding, a tag or a ref there connected nothing, and no rule could
say what the comment documents.

Found by running hopinion over a repository of a thousand modules, where every
Haddock above an ANN pragma was reported by a rule that asks what the comment
is about.

Total

12s

Created Started Finished

Time to Start Worker time Duration Time to finish Idle
Config 0s 0s 0s 0s 0s
Eval 0s 11s 11s 12s 0s
Build 7s 0s 4s 12s 0s
Suite 0s 12s 12s 12s 0s

Timeline

Config Eval Build
0s10s