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
{{ message }}
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.
foo::Int->Int
foo x = x + y where
y = z where
z =2main::IO()
main =doprint$ foo 2return()
ghc-mod check reports no errors, but ghc-mod lint produces the cryptic:
%ghc-mod lint minerror.hs
minerror.hs:6:1: Parse errorError message: Parse error: ;Code: z = 2 > main :: IO () main = do print $ foo 2
Removing the second where from foo eliminates the parse error. I would expect the above code to either produce no error from lint, or to complain about the second where rather than showing a parse error in an unrelated location.
The text was updated successfully, but these errors were encountered:
The following code compiles in ghc 7.2.1.
ghc-mod check
reports no errors, butghc-mod lint
produces the cryptic:Removing the second
where
fromfoo
eliminates the parse error. I would expect the above code to either produce no error from lint, or to complain about the secondwhere
rather than showing a parse error in an unrelated location.The text was updated successfully, but these errors were encountered: