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
The eval statement accepts any type of expression as its operand. However, I predict that users would very rarely want to eval pure values and usually an eval with a non-sideeffect operand would point to a bug -- it's easy to forget the parentheses at the end of the statement. Introduce a warning to indicate this to a user.
main :: sideeffect -> ()
main = {
eval printLn "Hello world"; // Likely a bug, missing parantheses "()".
}
The text was updated successfully, but these errors were encountered:
The
eval
statement accepts any type of expression as its operand. However, I predict that users would very rarely want toeval
pure values and usually aneval
with a non-sideeffect operand would point to a bug -- it's easy to forget the parentheses at the end of the statement. Introduce a warning to indicate this to a user.The text was updated successfully, but these errors were encountered: