HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleth-lift-0.8.7Haskell2010

Language.Haskell.TH.Lift.Internal

Helper functions used in code that Language.Haskell.TH.Lift generates.

Note: this is an internal module, and as such, the API presented here is not guaranteed to be stable, even between minor releases of this library.

  • 2 values
  • Packageth-lift-0.8.7
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternal.hs
valueerrorQuoteExp :: Quote q => String -> q Exp
#

A type-restricted version of error that ensures makeLift always returns a value of type q Exp (where q is an instance of Quote), even when used on an empty datatype.

valueunsafeSpliceCoerce :: Quote m => m Exp -> Code m a
#

This is a cargo-culted version of unsafeSpliceCoerce from the th-compat library, which has been copied here to avoid incurring a library dependency.