[Git][ghc/ghc][wip/splice-imports-2024] add another ad-hoc path persistence check

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Fri Oct 11 17:31:37 UTC 2024



Matthew Pickering pushed to branch wip/splice-imports-2024 at Glasgow Haskell Compiler / GHC


Commits:
8e6c5f30 by Matthew Pickering at 2024-10-11T18:31:27+01:00
add another ad-hoc path persistence check

- - - - -


1 changed file:

- compiler/GHC/Rename/Splice.hs


Changes:

=====================================
compiler/GHC/Rename/Splice.hs
=====================================
@@ -1008,6 +1008,8 @@ checkCrossStageLifting dflags reason top_lvl bind_lvl use_stage use_lvl name
   | Brack _ RnPendingTyped <- use_stage  -- Lift for typed brackets is inserted later.
   , xopt LangExt.LiftCrossStagedPersistence dflags
     = return ()
+  | isTopLevel top_lvl
+  , xopt LangExt.PathCrossStagedPersistence dflags = return ()
   | otherwise = addErrTc (TcRnBadlyStaged reason bind_lvl use_lvl)
 
 check_cross_stage_lifting :: TcRnMessage -> DynFlags -> TopLevelFlag -> Name -> TcRef [PendingRnSplice] -> TcM ()



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8e6c5f30d27d4a8478b5b0ba1a7cf0d6959c1625

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8e6c5f30d27d4a8478b5b0ba1a7cf0d6959c1625
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241011/490bc83d/attachment-0001.html>


More information about the ghc-commits mailing list