atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

suppress linter suggestions #216

Closed nineonine closed 6 years ago

nineonine commented 6 years ago

Sometimes linter makes suggestions that I am not interested in and want to keep my code as is. Would it be possible to somehow suppress particular suggestions but still keep linter enabled?

lierdakil commented 6 years ago

See hlint manual on the topic.

I should note that particularities depend heavily on hlint version, and IIRC there were some bugs in ghc-mod that interfered with the ignore mechanism (DanielG/ghc-mod#800, DanielG/ghc-mod#826), so be aware of that.

nineonine commented 6 years ago

alright, hlint ignore annotations worked pretty well for me. Thanks!