Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
The facility for retrieving all files from the main Stack
Package
type. This was moved into its own module to allow
component-level file-gathering without circular dependency at the Package
level.
Synopsis
- data GetPackageFileContext = GetPackageFileContext {}
- data DotCabalPath
- = DotCabalModulePath !(Path Abs File)
- | DotCabalMainPath !(Path Abs File)
- | DotCabalFilePath !(Path Abs File)
- | DotCabalCFilePath !(Path Abs File)
- data DotCabalDescriptor
- data PackageWarning = UnlistedModulesWarning NamedComponent [ModuleName]
- data StackPackageFile = StackPackageFile {}
- data PackageComponentFile = PackageComponentFile {
- modulePathMap :: Map NamedComponent (Map ModuleName (Path Abs File))
- cabalFileMap :: !(Map NamedComponent [DotCabalPath])
- packageExtraFile :: Set (Path Abs File)
- warnings :: [PackageWarning]
Documentation
data GetPackageFileContext Source #
Instances
data DotCabalPath Source #
A path resolved from the Cabal file, which is either main-is or an exposedinternalreferenced module.
DotCabalModulePath !(Path Abs File) | |
DotCabalMainPath !(Path Abs File) | |
DotCabalFilePath !(Path Abs File) | |
DotCabalCFilePath !(Path Abs File) |
Instances
Show DotCabalPath Source # | |
Defined in Stack.Types.PackageFile showsPrec :: Int -> DotCabalPath -> ShowS # show :: DotCabalPath -> String # showList :: [DotCabalPath] -> ShowS # | |
Eq DotCabalPath Source # | |
Defined in Stack.Types.PackageFile (==) :: DotCabalPath -> DotCabalPath -> Bool # (/=) :: DotCabalPath -> DotCabalPath -> Bool # | |
Ord DotCabalPath Source # | |
Defined in Stack.Types.PackageFile compare :: DotCabalPath -> DotCabalPath -> Ordering # (<) :: DotCabalPath -> DotCabalPath -> Bool # (<=) :: DotCabalPath -> DotCabalPath -> Bool # (>) :: DotCabalPath -> DotCabalPath -> Bool # (>=) :: DotCabalPath -> DotCabalPath -> Bool # max :: DotCabalPath -> DotCabalPath -> DotCabalPath # min :: DotCabalPath -> DotCabalPath -> DotCabalPath # |
data DotCabalDescriptor Source #
A descriptor from a Cabal file indicating one of the following:
exposed-modules: Foo other-modules: Foo or main-is: Foo.hs
Instances
Show DotCabalDescriptor Source # | |
Defined in Stack.Types.PackageFile showsPrec :: Int -> DotCabalDescriptor -> ShowS # show :: DotCabalDescriptor -> String # showList :: [DotCabalDescriptor] -> ShowS # | |
Eq DotCabalDescriptor Source # | |
Defined in Stack.Types.PackageFile (==) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # (/=) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # | |
Ord DotCabalDescriptor Source # | |
Defined in Stack.Types.PackageFile compare :: DotCabalDescriptor -> DotCabalDescriptor -> Ordering # (<) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # (<=) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # (>) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # (>=) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # max :: DotCabalDescriptor -> DotCabalDescriptor -> DotCabalDescriptor # min :: DotCabalDescriptor -> DotCabalDescriptor -> DotCabalDescriptor # |
data PackageWarning Source #
Warning generated when reading a package
UnlistedModulesWarning NamedComponent [ModuleName] | Modules found that are not listed in Cabal file TODO: bring this back - see https://github.com/commercialhaskell/stack/issues/2649 |
data StackPackageFile Source #
This is the information from Cabal we need at the package level to track files.
Instances
Show StackPackageFile Source # | |
Defined in Stack.Types.PackageFile showsPrec :: Int -> StackPackageFile -> ShowS # show :: StackPackageFile -> String # showList :: [StackPackageFile] -> ShowS # |
data PackageComponentFile Source #
Files that the package depends on, relative to package directory.
PackageComponentFile | |
|