[Git][ghc/ghc][wip/26699] Adding module documentation, correcting exact print compilation
recursion-ninja pushed to branch wip/26699 at Glasgow Haskell Compiler / GHC Commits: 92d5f6a0 by Recursion Ninja at 2026-01-28T07:22:33-05:00 Adding module documentation, correcting exact print compilation - - - - - 2 changed files: - compiler/GHC/Types/ImportLevel.hs - utils/check-exact/ExactPrint.hs Changes: ===================================== compiler/GHC/Types/ImportLevel.hs ===================================== @@ -1,5 +1,11 @@ {-# LANGUAGE DerivingVia #-} +{- | +Defines all possible import levels of Haskell code. +These import levels are used to correctly stage code generation of Template Haskell. + +Additionally exports conversion functions from AST components. +-} module GHC.Types.ImportLevel ( -- * ImportLevel -- ** Data-type @@ -22,7 +28,7 @@ import Data.Data -- | ImportLevel data ImportLevel = NormalLevel | SpliceLevel | QuoteLevel - deriving (Eq, Ord, Data, Show, Enum, Bounded) + deriving (Bounded, Data, Enum, Eq, Ord, Show) instance Outputable ImportLevel where ppr NormalLevel = text "normal" ===================================== utils/check-exact/ExactPrint.hs ===================================== @@ -50,6 +50,7 @@ import GHC.Types.Basic hiding (EP) import GHC.Types.ForeignCall import GHC.Types.InlinePragma (ActivationGhc, inlinePragmaActivation, inlinePragmaSource) import GHC.Types.Name.Reader +import GHC.Types.OverlapMode (OverlapMode(..)) import GHC.Types.PkgQual import GHC.Types.SourceText import GHC.Types.SrcLoc View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/92d5f6a0a74eb0c6999aab480dddfac3... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/92d5f6a0a74eb0c6999aab480dddfac3... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
recursion-ninja (@recursion-ninja)