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

:= and :=! too losely bound #4

Open
3noch opened this issue Feb 8, 2017 · 1 comment
Open

:= and :=! too losely bound #4

3noch opened this issue Feb 8, 2017 · 1 comment

Comments

@3noch
Copy link

3noch commented Feb 8, 2017

I'm not sure it's even possible to fix this but you'll notice that when defining a record with function types, you must use parenthesis like this:

type MyRec = R ( "runThing" := (a -> IO b) )

Without parens, the parser thinks you are defining ("runThing" := a) -> IO b as an unlabeled record.

@PkmX
Copy link
Owner

PkmX commented Mar 19, 2017

I don't think this is fixable, since (->) is hard-wired as infixr 0 in GHC. As you mentioned, adding parentheses around would be the easiest workaround of this issue.

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