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

Parsing data constructors with quotes #63

Closed
georgefst opened this issue Apr 15, 2020 · 2 comments · Fixed by #65
Closed

Parsing data constructors with quotes #63

georgefst opened this issue Apr 15, 2020 · 2 comments · Fixed by #65

Comments

@georgefst
Copy link
Collaborator

data Tree' a = Leaf' a | Node' (Tree' a) (Tree' a) deriving Show

t1 :: Tree' Int
t1 = Node' (Leaf' 1) (Leaf' 2)

pPrint t1 produces Node' (Leaf' 1, with the colouring also messed up.

This is rather a shame, as using T' for a structure similar to T is a pretty common haskell idiom.

@cdepillabout
Copy link
Owner

@georgefst Thanks for creating this issue.

I'd be happy to merge in a PR fixing this if you wanted to take a shot at it.

Or, if you wanted to run a git bisect and figure out where this was introduced, it might help someone else figure out how this can be fixed.

Without actually looking into it at all, my guess is that this was introduced by #57. (ping @sjakobi just in case)

@georgefst
Copy link
Collaborator Author

Just checked and it works correctly with the 3.1.1.0 release, so that looks very likely.

I may look into this on the weekend, but I've got quite a backlog at the moment.

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

Successfully merging a pull request may close this issue.

2 participants