packages feed

ghc-lib-parser-0.20210901: compiler/GHC/Unit/Types.hs-boot

{-# LANGUAGE KindSignatures #-}
module GHC.Unit.Types where

import GHC.Prelude ()
import {-# SOURCE #-} GHC.Utils.Outputable
import {-# SOURCE #-} GHC.Unit.Module.Name ( ModuleName )
import Data.Kind (Type)

data UnitId
data GenModule (unit :: Type)
data GenUnit (uid :: Type)
data Indefinite (unit :: Type)

type Module      = GenModule  Unit
type Unit        = GenUnit    UnitId
type IndefUnitId = Indefinite UnitId

moduleName :: GenModule a -> ModuleName
moduleUnit :: GenModule a -> a
pprModule :: Module -> SDoc