Make type errors about effectfulness more obvious #7426
Labels
error-messages
Related to the quality of error messages
intermediate issue
Likely good for someone who has completed a few other issues
type checking
Relates to type checking compiler stage
Today, the following code produces a difficult to understand error:
When run against
roc check
:This tells us that the first function is effectful with a
=>
and the second is pure with a->
. This is hard to distinguish at a glance, we'd like to make it more obvious. It would be nice for the error to say something along the lines of "This function is effectful, but it needs to be pure".The text was updated successfully, but these errors were encountered: