The following code produces the following errors: * **Error 1** * *Code* ``` main = true -- This causes an error ``` * *Error* ``` Error running file: Error: Can't apply argument to type 'Error' ``` * *Thoughts* This is being parsed, but it isn't being parsed correctly, causing some sort of function application on `true` * **Error 2** * *Code* ``` main = true -- This causes an error! ``` * *Error* ``` error[E0019]: missing newline (expected here) (found on line 1, column 36) | 1 | main = true -- This causes an error! | ^ error found here ``` * *Thoughts* For some reason, the `!` isn't parsed as part of the comment, making it think there needs to be a newline before the `!`
The following code produces the following errors:
Error 1
This is being parsed, but it isn't being parsed correctly, causing some sort of function application on
trueError 2
For some reason, the
!isn't parsed as part of the comment, making it think there needs to be a newline before the!