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?
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?