-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
identifiers in Text.Parsec.Language not polymorphic enough #55
Comments
I was also hit by this when updating an old library using |
Why not to open a PR fixing it? |
well there are some design choices, e.g.:
|
Here's one way to fix this:
This should allow at least some users to upgrade without needing to update their code. OTOH, considering that there are several other problems with What do you think, @hvr? Also, @mrkkrp, is there any |
See lexer modules, that’s closest you get. But I think they are written from scratch, I didn’t like Parsec’s take on this. |
Adding a specific use case where this caused problems for me. I ran into this issue trying to use the
Sorry I'm not going to be much use coming up with a solution, but thanks every who has spent brain cycles on this! :) |
@mrkkrp searching for "haskell text.parsec lexer modules" didn't uncover anything that looks obviously relevant. Do you have a specific link in mind? |
@xaviershay See Megaparsec. |
ah thanks. I wonder if that's API compatible with s-cargot? Will have a play. I mean, I could just implement sexpr parsing myself (or presumably copy an existing Megaparsec implementation), shouldn't be too difficult. |
we have
This means that this can only be used for
String
parsers, and the following is ill-typed (whatever the contents of{ ... }
The text was updated successfully, but these errors were encountered: