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
Crucially/for example, this can be relied upon in servant-client when you're not using named routes in order to extract a specific function from the functions generated based on an API.
I like @noughtmare's suggestion of adding a little informative bit to the error message teaching users about the capitalization rules. (: is a capital symbol, while the others are lowercase, evidently.)
Defining a function starting with
:
is invalid according to the parsing rules:However, the error message here could see some improvement. It currently shows:
Perhaps it should instead explicitly note that only data constructors may start with colons, and function names must not.
Or:
The text was updated successfully, but these errors were encountered: