HLint fails in master
Closed this issue · 2 comments
phadej commented
HLint fails in master
RyanGlScott commented
For reference, here is the failure:
src/Control/Lens/Internal/FieldTH.hs:6:1-32: Warning: Unused LANGUAGE pragma
Found:
{-# LANGUAGE TemplateHaskell #-}
Perhaps you should remove it.
Note: may require `{-# LANGUAGE TemplateHaskellQuotes #-}` adding to the top of the file
1 hint
Error: Process completed with exit code 1.
Which is warning about this code:
lens/src/Control/Lens/Internal/FieldTH.hs
Lines 3 to 7 in 25b8df2
But this confuses me: the {-# LANGUAGE TemplateHaskell #-}
line should only be reachable if using a very old version of GHC. Does hlint
not take CPP into account?
RyanGlScott commented
It's possible that this is an occurrence of ndmitchell/hlint#1522. This has been fixed in hlint-3.6
, and indeed, I cannot reproduce the issue locally with that version of hlint
. (I do encounter other hlint
warnings, but those appear fixable.)