Skip to content

Switch from template-haskell to template-haskell-lift and -quasiquoter - #36

Merged
hasufell merged 1 commit into
haskell:masterfrom
TeofilC:wip/th-lift
Jan 20, 2026
Merged

hasufell merged 1 commit into
haskell:masterfrom
TeofilC:wip/th-lift

Conversation

@TeofilC

@TeofilC TeofilC commented Oct 10, 2025 •

Copy link
Copy Markdown
Member

We switch our dependency on template-haskell to a dependency on template-haskell-lift. This smaller library is more stabler and if we can remove the template-haskell dependency from all boot libraries then template-haskell will be much easier to re-install since it no longer needs to be in GHC's dependency closure.

For more information see the GHC proposal that introduced this library: ghc-proposals/ghc-proposals#696

This GHC MR tests this PR against GHC-HEAD: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/14978

@phadej

phadej commented Oct 11, 2025

Copy link
Copy Markdown

@TeofilC

For some reason, in this instance, GHC parses this as [| print $ (lift $ coerceWith co 1) |]

The splices inside quotation-brackets need TemplateHaskell before GHC-9.0. TemplateHaskellQuotes is not enough.

@TeofilC

TeofilC commented Oct 11, 2025

Copy link
Copy Markdown
Member Author

Thanks @phadej that makes sense!

@TeofilC
TeofilC marked this pull request as ready for review January 10, 2026 22:17
@hasufell
hasufell merged commit 290bf00 into haskell:master Jan 20, 2026
hasufell added a commit that referenced this pull request Jan 20, 2026
* support MicroHS wrt #35
* Switch from template-haskell to template-haskell-quasiquoter and -lift wrt #36
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