Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module shapes
data ModuleShape Source #
A ModuleShape
describes the provisions and requirements of
a library. We can extract a ModuleShape
from an
InstalledPackageInfo
.
Instances
Eq ModuleShape Source # | |
(==) :: ModuleShape -> ModuleShape -> Bool # (/=) :: ModuleShape -> ModuleShape -> Bool # | |
Show ModuleShape Source # | |
showsPrec :: Int -> ModuleShape -> ShowS # show :: ModuleShape -> String # showList :: [ModuleShape] -> ShowS # | |
Generic ModuleShape Source # | |
type Rep ModuleShape :: * -> * # from :: ModuleShape -> Rep ModuleShape x # to :: Rep ModuleShape x -> ModuleShape # | |
Binary ModuleShape Source # | |
ModSubst ModuleShape Source # | |
modSubst :: OpenModuleSubst -> ModuleShape -> ModuleShape Source # | |
type Rep ModuleShape Source # | |
type Rep ModuleShape = D1 * (MetaData "ModuleShape" "Distribution.Backpack.ModuleShape" "Cabal-2.0.1.1-99tbaCBn5in8ykZQ2Yxqis" False) (C1 * (MetaCons "ModuleShape" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "modShapeProvides") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * OpenModuleSubst)) (S1 * (MetaSel (Just Symbol "modShapeRequires") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Set ModuleName))))) |
emptyModuleShape :: ModuleShape Source #
The default module shape, with no provisions and no requirements.