Do HLint ignore parsing error due to multithreading if?

I am using the MultiWayIf language MultiWayIf . Although I like HLint (I use version v1.8.61), unfortunately, it seems that HLint is not aware of this extension, and it reports parsing errors in multi-user situations: Warning: Parse error: |

The HLint manual ( http://community.haskell.org/~ndm/darcs/hlint/hlint.htm ) describes how you can use pragmas to indicate that offers are ignored; however, this does not seem to work for warnings due to parsing errors.

Is there a way to tell HLint to ignore parsing error warnings? Thanks!

+8
haskell hlint
source share
1 answer

You can run:

 hlint "--ignore=Parse error" MyFile.hs 

There is verification that this call works in the HLint test suite .

Please note that as soon as a parsing error occurs, you will not receive any other hints from the file, since HLint cannot work with the file until it is parsed.

However, if you upgrade to haskell-src-exts-1.15 or higher, reinstall HLint, it should parse the multi-user mode - if that is good. If not, report a bug .

+5
source share

All Articles