Teo Camarasu pushed to branch wip/abstract-q at Glasgow Haskell Compiler / GHC Commits: 9f2f09a7 by Teo Camarasu at 2026-03-18T15:00:40+00:00 add unQ back compat - - - - - 1 changed file: - libraries/template-haskell/Language/Haskell/TH/Syntax.hs Changes: ===================================== libraries/template-haskell/Language/Haskell/TH/Syntax.hs ===================================== @@ -11,7 +11,9 @@ module Language.Haskell.TH.Syntax ( Exp (..), Match (..), Clause (..), - Q (..), + Q, + -- backwards compatibility + Language.Haskell.TH.Syntax.unQ, Pat (..), Stmt (..), Con (..), @@ -499,3 +501,6 @@ reassociate the tree as necessary. -- Subsumed by the more general 'SpecialiseEP' constructor. pattern SpecialiseP :: Name -> Type -> (Maybe Inline) -> Phases -> Pragma pattern SpecialiseP nm ty inl phases = SpecialiseEP Nothing [] (SigE (VarE nm) ty) inl phases + +unQ :: Q a -> (forall m. Quasi m => m a) +unQ m = runQ m View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9f2f09a75fb4c72700b903fd6ec4f7c9... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9f2f09a75fb4c72700b903fd6ec4f7c9... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Teo Camarasu (@teo)