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
I am using psc version 0.8.5.0. It seems that whenever I make a syntax error inside of a type class or instance declaration, the error message is always the same:
Unable to parse module:
unexpected "where"
expecting no indentation or end of input
and the location of the where keyword is given, not the location of my syntax error, which may be several lines below.
Here is a minimal example:
module Main where
class Foo a where
foo :: a -> !!!
Compiling with psc produces:
C:\Users\Ben\purescript\hello-world>psc src\Main.purs
Error found:
at C:\Users\Ben\purescript\hello-world\src\Main.purs line 3, column 13 - line 3, column 13
Unable to parse module:
unexpected "where"
expecting no indentation or end of input
This is not helpful for finding the real syntax error, which was on line 4.
The text was updated successfully, but these errors were encountered:
I am using
psc
version 0.8.5.0. It seems that whenever I make a syntax error inside of a type class or instance declaration, the error message is always the same:and the location of the
where
keyword is given, not the location of my syntax error, which may be several lines below.Here is a minimal example:
Compiling with
psc
produces:This is not helpful for finding the real syntax error, which was on line 4.
The text was updated successfully, but these errors were encountered: