recursion-ninja pushed to branch wip/26699 at Glasgow Haskell Compiler / GHC

Commits:

2 changed files:

Changes:

  • compiler/GHC/Types/ImportLevel.hs
    1 1
     {-# LANGUAGE DerivingVia #-}
    
    2 2
     
    
    3
    +{- |
    
    4
    +Defines all possible import levels of Haskell code.
    
    5
    +These import levels are used to correctly stage code generation of Template Haskell.
    
    6
    +
    
    7
    +Additionally exports conversion functions from AST components.
    
    8
    +-}
    
    3 9
     module GHC.Types.ImportLevel (
    
    4 10
             -- * ImportLevel
    
    5 11
             -- ** Data-type
    
    ... ... @@ -22,7 +28,7 @@ import Data.Data
    22 28
     
    
    23 29
     -- | ImportLevel
    
    24 30
     data ImportLevel = NormalLevel | SpliceLevel | QuoteLevel
    
    25
    -  deriving (Eq, Ord, Data, Show, Enum, Bounded)
    
    31
    +  deriving (Bounded, Data, Enum, Eq, Ord, Show)
    
    26 32
     
    
    27 33
     instance Outputable ImportLevel where
    
    28 34
       ppr NormalLevel = text "normal"
    

  • utils/check-exact/ExactPrint.hs
    ... ... @@ -50,6 +50,7 @@ import GHC.Types.Basic hiding (EP)
    50 50
     import GHC.Types.ForeignCall
    
    51 51
     import GHC.Types.InlinePragma (ActivationGhc, inlinePragmaActivation, inlinePragmaSource)
    
    52 52
     import GHC.Types.Name.Reader
    
    53
    +import GHC.Types.OverlapMode (OverlapMode(..))
    
    53 54
     import GHC.Types.PkgQual
    
    54 55
     import GHC.Types.SourceText
    
    55 56
     import GHC.Types.SrcLoc