Open cbjeukendrup opened 5 months ago
Unfortunately this is a known limitation - see https://github.com/ndmitchell/hlint#bugs-and-limitations - RebindableSyntax and HLint don't play great together. It might be possible to detect a file is in rebindable mode and disable some hints. Let's use this issue for that work.
In the following minimal example:
HLint suggests replacing the definition of
myNumber
with the following:That does not compile though: guards (sadly?) only work with real bools, while
if … then … else
works with whatever type for whichifThenElse
is available.Perhaps the "Use guards" suggestion should not be given when the
if … then … else
syntax is rebound.