Skip to content
Snippets Groups Projects
Commit 2176eb38 authored by Ryan Scott's avatar Ryan Scott Committed by Herbert Valerio Riedel
Browse files

Implement liftTyped in the Lift Text instances

`template-haskell-2.16.0.0` adds a `liftTyped` method to `Lift`,
which is like `lift` but returning `Q (TExp t)` instead of `Q Exp`.
`liftTyped` does not have a default implementation in terms of
`lift`, so it must be implemented explicitly in the `Lift Text`
instances that `text` defines. The implementations I chose are based
off of the general approach taken by `Language.Haskell.TH.Syntax`,
such as in this example:
https://gitlab.haskell.org/ghc/ghc/blob/4898df1cc25132dc9e2599d4fa4e1bbc9423cda5/libraries/template-haskell/Language/Haskell/TH/Syntax.hs#L716
parent d23cfad8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment