| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Distribution.Backpack.ModuleShape
Contents
Synopsis
- data ModuleShape = ModuleShape {
- modShapeProvides :: OpenModuleSubst
- modShapeRequires :: Set ModuleName
- emptyModuleShape :: ModuleShape
- shapeInstalledPackage :: InstalledPackageInfo -> ModuleShape
Module shapes
data ModuleShape Source #
A ModuleShape describes the provisions and requirements of
a library. We can extract a ModuleShape from an
InstalledPackageInfo.
Constructors
| ModuleShape | |
Fields
| |
Instances
emptyModuleShape :: ModuleShape Source #
The default module shape, with no provisions and no requirements.
shapeInstalledPackage :: InstalledPackageInfo -> ModuleShape Source #