Skip to content

Updates for GHC 9 and template-haskell 2.17.#254

Merged
snoyberg merged 2 commits intoyesodweb:masterfrom
galenhuntington:master
Aug 28, 2020
Merged

Updates for GHC 9 and template-haskell 2.17.#254
snoyberg merged 2 commits intoyesodweb:masterfrom
galenhuntington:master

Conversation

@galenhuntington
Copy link
Copy Markdown
Contributor

These were changes I needed to build under the recently released ghc-9.0.1-alpha, mostly due to Template Haskell 2.17 updates.

  1. Because of the -XQualifiedDo extension, DoE now takes an extra argument of a Maybe ModName.

  2. A newtype Code was added in https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3358, so that we use unsafeCodeCoerce instead of unsafeTExpCoerce.

  3. A function had to be explicitly generalized from Q x to the new Quote m => m x.

  4. Because of https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0229-whitespace-bang-patterns.rst, ($[]) is interpreted as a splice rather than a slice. We just have to insert a space after the $.

@snoyberg
Copy link
Copy Markdown
Member

Looks great, thanks! Could you add a minor version bump and a changelog entry about the change?

@snoyberg snoyberg merged commit edf4f19 into yesodweb:master Aug 28, 2020
@snoyberg
Copy link
Copy Markdown
Member

Thanks!

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