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

Got it to compile with stack LTS-15.5 #1

Merged
merged 2 commits into from
Mar 30, 2020
Merged

Got it to compile with stack LTS-15.5 #1

merged 2 commits into from
Mar 30, 2020

Conversation

wbadart
Copy link

@wbadart wbadart commented Mar 28, 2020

Hey @kindaro, I've been trying to get yamadapc's hpack-convert to compile with a more modern stack snapshot. After struggling a bit, I saw that you opened yamadapc#16, which gets most of the way there for LTS-15.5. Here are some tweaks that get the package to compile all the way. (Still having some issues w/ the unit tests, see 3e43406 for details.)

Please let me know your thoughts!

Most of the changes are due to the Pretty class that was added, it
seems, in v2.2.0.1-tgt. There were some slightly trickier cases around
some data types that don't seem to be used anymore and changes to the
Package/ GenericPackge records.

Open questions:

- This doesn't pass all the tests. The main failures seem to be around
quoting in certain rendering situations and in error reporting
- Relatedly, how should the new-ish ParseResult monad be incorporated? I
opted for parseGenericPackageDescriptionMaybe because I didn't want to
infect the rest of the module with an API change, but it's unclear how
to exactly recover the old behavior.
- Is the style where it needs to be (whitespace/ indentation, ...)?
@kindaro
Copy link
Owner

kindaro commented Mar 28, 2020

Hello Will. Thank you for stopping by. I shall look into it as soon as I can. Please remind me if I show no activity in a few days.

@kindaro
Copy link
Owner

kindaro commented Mar 29, 2020

@wbadart  Would you agree to bump the version number? Currently it goes backwards! Then I am going to merge it and see what happens. It was never intended to be a perfect package from my side — good enough that it runs. Surely I would also welcome any future work on this, all kinds of fixing and polishing, but I would rate that as low priority.

@wbadart
Copy link
Author

wbadart commented Mar 29, 2020

Ha, didn't even notice that. Would definitely agree.

@kindaro kindaro merged commit fa98909 into kindaro:hpack-convert Mar 30, 2020
@wbadart
Copy link
Author

wbadart commented Mar 30, 2020

Awesome. Let me know if you're able to make any progress on the unit tests (like I mentioned in the commit message, I think the failures are mostly related to quoting and error messaging). I'll be working on them from my end as time permits.

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

Successfully merging this pull request may close these issues.

2 participants