Skip to content

Misleading parser error when `else` branch is missing

if I say

foo :: ()
foo = if True then ()

I get

parse error (possibly incorrect indentation or mismatched brackets)

Is it possible to suggest a more useful missing 'else' error message?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information