Skip to content

Support aeson-2 and template-haskell-2.18 (ghc-9.2.1) - #1335

Closed
ruomad wants to merge 4 commits into
yesodweb:masterfrom
ruomad:master
Closed

ruomad wants to merge 4 commits into
yesodweb:masterfrom
ruomad:master

Conversation

@ruomad

@ruomad ruomad commented Nov 4, 2021

Copy link
Copy Markdown
Contributor

Tentative patch to

support aeson-2 (introducing Key/KeyMap as an abstraction in replacement to HashMap Text Value)
support template-haskell-2.18.0 (changes the type of some functions, esp. ConP)
which makes it possible to compile with ghc-9.2.1

(cleaner version, sorry for the noise)

Another solution would be to use the template-haskell-compat-v0208
@ruomad

ruomad commented Nov 4, 2021

Copy link
Copy Markdown
Contributor Author

Hum, I don.t know why this fails… the log is not very helpful

@parsonsmatt

Copy link
Copy Markdown
Collaborator

It's a problem with persistent-mongoDB - relevant log line

@ruomad

ruomad commented Nov 5, 2021

Copy link
Copy Markdown
Contributor Author

Well, OK.
I indeed only use (and build) persistent-postgresql, so I'll have to take a look to other persistent modules as well.
I was supposing the specific modules were not affected by internal changes in aeson/persistent core.

@brandon-leapyear

brandon-leapyear commented Nov 15, 2021 •

Copy link
Copy Markdown
Contributor

✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨


I believe Database.Persist.TH is still failing. I think it's this line:

(Just (packE `AppE` LitE (StringL $ unpack $ unFieldNameHS $ unboundFieldNameHS f)))

This is still using Text.pack for a Key.

@brandon-leapyear

brandon-leapyear commented Nov 15, 2021 •

Copy link
Copy Markdown
Contributor

✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨


Forked here: #1338. Feel free to merge/cherry-pick back

This pull request was closed.
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.

3 participants