I use HLint on my Haskell code, but not all the warnings/errors are very useful. In particular, the arrow hints because I never use arrows.
How do I get HLint to ignore all the arrow hints?
For example, if you had the code:
map (\a -> (head a, length a)) someList
HLint would print out:
Warning: Use &&&
Found:
\a -> (head a, length a)
Why not:
head Control.Arrow.&&& length
Then you could ignore this by adding:
{-# ANN module "HLint: ignore Use &&&" #-}
At the top of your file. Alternative, you could create a file ana.hlint
containing:
ignore "Use &&&"
Then use hlint
as:
> hlint --hint=ana.hlint source_code.hs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With