Skip to content
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

Document the required language extensions #28

Open
sjakobi opened this issue Oct 18, 2019 · 1 comment
Open

Document the required language extensions #28

sjakobi opened this issue Oct 18, 2019 · 1 comment

Comments

@sjakobi
Copy link

sjakobi commented Oct 18, 2019

These seem to be DataKinds and TypeOperators for defining functions with named parameters, and OverloadedLabels for using them. The last one admittedly took me a bit to figure out – I wasn't sure what to search for.

EDIT: The error when you haven't enabled OverloadedLabels also isn't helpful at all:

> :t createSymLink ! #from "/path/to/source"

<interactive>:1:17: error: parse error on input ‘#’
@adamgundry
Copy link

I've brought this up on https://gitlab.haskell.org/ghc/ghc/-/issues/10998#note_298525 - it would be nice if the GHC parse error suggested enabling OverloadedLabels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants