Distribution.Types.Module

Cabal-syntax-3.16.0.0: A library for working with .cabal files

Safe Haskell | None
Language | Haskell2010

Distribution.Types.Module

Synopsis

- data Module = Module DefUnitId ModuleName

# Documentation

data Module Source #

A module identity uniquely identifies a Haskell module by qualifying a `ModuleName` with the `UnitId` which defined it. This type distinguishes between two packages which provide a module with the same name, or a module from the same package compiled with different dependencies. There are a few cases where Cabal needs to know about module identities, e.g., when writing out reexported modules in the `InstalledPackageInfo`.

Constructors

Module DefUnitId ModuleName |

#### Instances

Instances details

Parsec Module Source # |
Instance details Defined in Distribution.Types.Module Methods parsec :: CabalParsing m => m Module Source #
Pretty Module Source # |
Instance details Defined in Distribution.Types.Module Methods pretty :: Module -> Doc Source # prettyVersioned :: CabalSpecVersion -> Module -> Doc Source #
Structured Module Source # |
Instance details Defined in Distribution.Types.Module Methods structure :: Proxy Module -> Structure Source # structureHash' :: Tagged Module MD5
Binary Module Source # |
Instance details Defined in Distribution.Types.Module Methods put :: Module -> Put Source # get :: Get Module Source # putList :: [Module] -> Put Source #
NFData Module Source # |
Instance details Defined in Distribution.Types.Module Methods rnf :: Module -> () Source #
Eq Module Source # |
Instance details Defined in Distribution.Types.Module Methods (==) :: Module -> Module -> Bool # (/=) :: Module -> Module -> Bool #
Ord Module Source # |
Instance details Defined in Distribution.Types.Module Methods compare :: Module -> Module -> Ordering # (<) :: Module -> Module -> Bool # (<=) :: Module -> Module -> Bool # (>) :: Module -> Module -> Bool # (>=) :: Module -> Module -> Bool # max :: Module -> Module -> Module # min :: Module -> Module -> Module #
Data Module Source # |
Instance details Defined in Distribution.Types.Module Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Module -> c Module # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Module # toConstr :: Module -> Constr # dataTypeOf :: Module -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Module) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Module) # gmapT :: (forall b. Data b => b -> b) -> Module -> Module # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Module -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Module -> r # gmapQ :: (forall d. Data d => d -> u) -> Module -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Module -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Module -> m Module # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Module -> m Module # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Module -> m Module #
Generic Module Source # |
Instance details Defined in Distribution.Types.Module Associated Types
type Rep Module |
Instance details Defined in Distribution.Types.Module type Rep Module = D1 ('MetaData "Module" "Distribution.Types.Module" "Cabal-syntax-3.16.0.0-0f29" 'False) (C1 ('MetaCons "Module" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DefUnitId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ModuleName)))
Methods from :: Module -> Rep Module x # to :: Rep Module x -> Module #
Read Module Source # |
Instance details Defined in Distribution.Types.Module Methods readsPrec :: Int -> ReadS Module # readList :: ReadS [Module] # readPrec :: ReadPrec Module # readListPrec :: ReadPrec [Module] #
Show Module Source # |
Instance details Defined in Distribution.Types.Module Methods showsPrec :: Int -> Module -> ShowS # show :: Module -> String # showList :: [Module] -> ShowS #
type Rep Module Source # |
Instance details Defined in Distribution.Types.Module type Rep Module = D1 ('MetaData "Module" "Distribution.Types.Module" "Cabal-syntax-3.16.0.0-0f29" 'False) (C1 ('MetaCons "Module" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DefUnitId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ModuleName)))