Skip to content

Commit f9d514f

Browse files
authored
Merge pull request #313 from alexfmpe/no-hlint-exceptions
Remove hlint filepath exceptions
2 parents 6c98ad8 + 5950545 commit f9d514f

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/Data/AppendMap.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Data.AppendMap
2020
, module Data.Map.Monoidal
2121
) where
2222

23-
import Prelude hiding (map, null)
23+
import Prelude hiding (null)
2424

2525
import Data.Coerce
2626
import Data.Default

test/hlint.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,9 @@ main = do
3030
]
3131
matchFile = and <$> sequence
3232
[ extension ==? ".hs"
33-
, let notElem' = liftOp notElem
34-
in filePath `notElem'` filePathExceptions pwd
3533
]
3634
files <- find recurseInto matchFile (pwd </> "src") --TODO: Someday fix all hints in tests, etc.
3735
ideas <- fmap concat $ forM files $ \f -> do
3836
putStr $ "linting file " ++ drop (length pwd + 1) f ++ "... "
3937
runHlint f
4038
if null ideas then exitSuccess else exitFailure
41-
42-
filePathExceptions :: FilePath -> [FilePath]
43-
filePathExceptions pwd = map (pwd </>) $
44-
[ "src/Data/AppendMap.hs" -- parse error when hlint runs
45-
]

0 commit comments

Comments
 (0)