GHC.Types.ThLevelIndex

ghc-lib-parser-9.14.1.20251220: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Types.ThLevelIndex

Synopsis

- newtype ThLevelIndex = ThLevelIndex Int
- incThLevelIndex :: ThLevelIndex -> ThLevelIndex
- decThLevelIndex :: ThLevelIndex -> ThLevelIndex
- topLevelIndex :: ThLevelIndex
- spliceLevelIndex :: ThLevelIndex
- quoteLevelIndex :: ThLevelIndex
- thLevelIndexFromImportLevel :: ImportLevel -> ThLevelIndex

# Documentation

newtype ThLevelIndex #

The integer which represents the level

Constructors

ThLevelIndex Int |

#### Instances

Instances details

Data ThLevelIndex # |
Instance details Defined in GHC.Types.ThLevelIndex Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ThLevelIndex -> c ThLevelIndex # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ThLevelIndex # toConstr :: ThLevelIndex -> Constr # dataTypeOf :: ThLevelIndex -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ThLevelIndex) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ThLevelIndex) # gmapT :: (forall b. Data b => b -> b) -> ThLevelIndex -> ThLevelIndex # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ThLevelIndex -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ThLevelIndex -> r # gmapQ :: (forall d. Data d => d -> u) -> ThLevelIndex -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ThLevelIndex -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ThLevelIndex -> m ThLevelIndex # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ThLevelIndex -> m ThLevelIndex # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ThLevelIndex -> m ThLevelIndex #
Outputable ThLevelIndex # |
Instance details Defined in GHC.Types.ThLevelIndex Methods ppr :: ThLevelIndex -> SDoc #
Eq ThLevelIndex # |
Instance details Defined in GHC.Types.ThLevelIndex Methods (==) :: ThLevelIndex -> ThLevelIndex -> Bool # (/=) :: ThLevelIndex -> ThLevelIndex -> Bool #
Ord ThLevelIndex # |
Instance details Defined in GHC.Types.ThLevelIndex Methods compare :: ThLevelIndex -> ThLevelIndex -> Ordering # (<) :: ThLevelIndex -> ThLevelIndex -> Bool # (<=) :: ThLevelIndex -> ThLevelIndex -> Bool # (>) :: ThLevelIndex -> ThLevelIndex -> Bool # (>=) :: ThLevelIndex -> ThLevelIndex -> Bool # max :: ThLevelIndex -> ThLevelIndex -> ThLevelIndex # min :: ThLevelIndex -> ThLevelIndex -> ThLevelIndex #

incThLevelIndex :: ThLevelIndex -> ThLevelIndex #

decThLevelIndex :: ThLevelIndex -> ThLevelIndex #

topLevelIndex :: ThLevelIndex #

spliceLevelIndex :: ThLevelIndex #

quoteLevelIndex :: ThLevelIndex #

thLevelIndexFromImportLevel :: ImportLevel -> ThLevelIndex #

Convert a `ImportLevel` to a `ThLevelIndex`