Skip to content

persistent-sqlite: a fix for template-haskell 2.16, GHC 8.10 alpha#993

Merged
parsonsmatt merged 1 commit intoyesodweb:masterfrom
simonmichael:master
Jan 3, 2020
Merged

persistent-sqlite: a fix for template-haskell 2.16, GHC 8.10 alpha#993
parsonsmatt merged 1 commit intoyesodweb:masterfrom
simonmichael:master

Conversation

@simonmichael
Copy link
Contributor

In GHC 8.10 (alpha2, at least), a TH splice (eg makeLenses) between
usage and definition of an instance (eg FromJSON) makes the instance
invisible at the usage site, causing an error. Cf
https://gitlab.haskell.org/ghc/ghc/merge_requests/1817#note_242542

This change lets persistent-sqlite build with GHC 8.10-alpha2.
I'm not sure about the other packages (didn't have the right deps
to build mysql).

In GHC 8.10 (alpha2, at least), a TH splice (eg makeLenses) between
usage and definition of an instance (eg FromJSON) makes the instance
invisible at the usage site, causing an error. Cf
https://gitlab.haskell.org/ghc/ghc/merge_requests/1817#note_242542

This change lets persistent-sqlite build with GHC 8.10-alpha2.
I'm not sure about the other packages (didn't have the right deps
to build mysql).
@parsonsmatt
Copy link
Collaborator

This is definitely a patch-level change. Thanks!

@parsonsmatt parsonsmatt merged commit da35294 into yesodweb:master Jan 3, 2020
@parsonsmatt
Copy link
Collaborator

Released as 2.10.5.1

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants