Skip to content

Parse error when using (~) #559

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

Closed
yairchu opened this issue Nov 27, 2018 · 4 comments
Closed

Parse error when using (~) #559

yairchu opened this issue Nov 27, 2018 · 4 comments

Comments

@yairchu
Copy link
Contributor

yairchu commented Nov 27, 2018

This line:

https://github.com/lamdu/syntax-tree/blob/master/src/AST.hs#L31

Causes this error:

src/AST.hs:31:49: Error: Parse error
Found:
    monoChildren ::
        forall expr child n m.
  >     ( Children expr, ChildrenConstraint expr ((~) child)
        , Functor n, Functor m
        ) =>

When playing around with things looks like the trigger to the error is using (~). It might be a haskell-src-exts issue, but I don't know so asking here first..

@yairchu yairchu changed the title Parse error when using (~) Parse error when using (~) Nov 27, 2018
@ndmitchell
Copy link
Owner

Almost certainly an upstream haskell-src-exts error. Would you like to raise a ticket for them?

@yairchu
Copy link
Contributor Author

yairchu commented Nov 29, 2018

Opened ticket there - haskell-suite/haskell-src-exts#421

@ndmitchell
Copy link
Owner

Confirmed works with HEAD that doesn't use HSE for parsing, so fixed in the next release.

@yairchu
Copy link
Contributor Author

yairchu commented Mar 16, 2020

Fantastic, thanks!

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

No branches or pull requests

2 participants