Local linting reports a spurious error
In a patch I'm working on, I tried to give hadrian/lint
a spin. After much waiting (6.5 minutes), I finally see
# hlint (for lint:compiler)
Warning: unknown directive #20746.
in compiler/GHC/Types/Demand.hs at line 1719 col 1
compiler/GHC/Parser/HaddockLex.x:3:1-43: Warning: Unused LANGUAGE pragma
Found:
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
Perhaps you should remove it.
1 hint
Development.Shake.cmd, system command failed
Command line: hlint --colour=never -j1 --cpp-define=x86_64_HOST_ARCH --cpp-include=_build/stage1/rts/build/include --cpp-include=compiler --cpp-include=_build/stage1/rts/build/include/ghcplatform.h --cpp-include=_build/stage1/compiler/build -hcompiler/.hlint.yaml compiler
Exit code: 1
Stderr:
Warning: unknown directive #20746.
in compiler/GHC/Types/Demand.hs at line 1719 col 1
Build failed.
I certainly did not edit HaddockLex.x.