Open
Description
$ hlint --version
HLint v2.1.1, (C) Neil Mitchell 2006-2018
This seems to affect custom hints that don't use anything from Prelude (such as the wibble example in the defaults) as well.
Test1.hs
module Test where
import Prelude ()
f = concat $ map (+1) [1]
$ hlint Test.hs
No hints
But it's fine if NoImplicitPrelude
is used instead
Test2.hs
{-# LANGUAGE NoImplicitPrelude #-}
module Test where
f = concat $ map (+1) [1]
$ hlint Test2.hs
Test2.hs:4:5: Warning: Use concatMap
Found:
concat $ map (+ 1) [1]
Why not:
concatMap (+ 1) [1]
1 hint