Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
.
ModuleShape | |
|
Instances
emptyModuleShape :: ModuleShape Source #
The default module shape, with no provisions and no requirements.
shapeInstalledPackage :: InstalledPackageInfo -> ModuleShape Source #