
Matthew Pickering pushed to branch wip/splice-imports-2025 at Glasgow Haskell Compiler / GHC Commits: 43b0dfc2 by Matthew Pickering at 2025-04-24T16:06:35+01:00 Undo - - - - - 2 changed files: - compiler/GHC/Tc/Errors/Ppr.hs - compiler/GHC/Tc/Errors/Types.hs Changes: ===================================== compiler/GHC/Tc/Errors/Ppr.hs ===================================== @@ -2035,10 +2035,6 @@ instance Diagnostic TcRnMessage where TcRnUnexpectedTypeSyntaxInTerms syntax -> mkSimpleDecorated $ text "Unexpected" <+> pprTypeSyntaxName syntax - TcRnDeriveLiftWithoutImplicitStagePersistence{} - -> mkSimpleDecorated $ - text "Deriving Lift is not possible when ImplicitStagePersistence is disabled." - diagnosticReason :: TcRnMessage -> DiagnosticReason diagnosticReason = \case TcRnUnknownMessage m @@ -2689,8 +2685,6 @@ instance Diagnostic TcRnMessage where -> ErrorWithoutFlag TcRnUnexpectedTypeSyntaxInTerms{} -> ErrorWithoutFlag - TcRnDeriveLiftWithoutImplicitStagePersistence{} - -> ErrorWithoutFlag diagnosticHints = \case TcRnUnknownMessage m @@ -3380,8 +3374,6 @@ instance Diagnostic TcRnMessage where -> noHints TcRnUnexpectedTypeSyntaxInTerms syntax -> [suggestExtension (typeSyntaxExtension syntax)] - TcRnDeriveLiftWithoutImplicitStagePersistence{} - -> noHints diagnosticCode = constructorCode @GHC ===================================== compiler/GHC/Tc/Errors/Types.hs ===================================== @@ -4453,17 +4453,6 @@ data TcRnMessage where Test cases: T24159_type_syntax_rn_fail -} TcRnUnexpectedTypeSyntaxInTerms :: TypeSyntax -> TcRnMessage - - {-| TcRnDeriveLiftWithoutImplicitStagePersistence is an error indicating that - someone tried to derive a Lift instance when ImplicitStagePersistence is enabled. - - - Test cases: - None yet - -} - TcRnDeriveLiftWithoutImplicitStagePersistence :: !Name -- ^ The type for which Lift is being derived - -> TcRnMessage - deriving Generic ---- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/43b0dfc20280180473b05b70892f2add... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/43b0dfc20280180473b05b70892f2add... You're receiving this email because of your account on gitlab.haskell.org.