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
-- UNFINISHED DEFINITION --------------------------------------------- Main.gren
I got stuck while parsing the `n` definition:
2| let n =
^
I was expecting to see an expression next. What is it equal to?
Here is a valid definition (with a type annotation) for reference:
greet : String -> String
greet name =
"Hello " ++ name ++ "!"
which is not helpful because it suggests the same idiom of newline + 2 spaces indent after the equal sign, which happens to be valid in a function definition but not in a let expression where you need 5 or more spaces.
The text was updated successfully, but these errors were encountered:
will give the error:
which is not helpful because it suggests the same idiom of newline + 2 spaces indent after the equal sign, which happens to be valid in a function definition but not in a let expression where you need 5 or more spaces.
The text was updated successfully, but these errors were encountered: