-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an explicit parameter builder for Symbol
#25
Comments
This should be addressed by GHC Proposal #40: Unrestricted Overloaded Labels. For the time being, I believe you can use
|
Great. Should this be in the docs somewhere? |
I'm not sure. It doesn't seem like something with good ergonomics, why use |
The docs would explain exactly this: "You may be tempted to use fancy strings for your arguments like "my-arg" because the type-level annotation allows it. But using this at the label level is not yet supported (see proposal) and requires that you do this: |
If your parameter has odd characters in the string, you can't use the
#
syntax for overloaded labels. Instead you need an explicit builder likefn ! namedArg @"my-arg" 5
.The text was updated successfully, but these errors were encountered: