You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That does not compile though: guards (sadly?) only work with real bools, while if … then … else works with whatever type for which ifThenElse is available.
Perhaps the "Use guards" suggestion should not be given when the if … then … else syntax is rebound.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: