| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Stack.Types.PackageFile
Description
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 #
Constructors
| GetPackageFileContext | |
Instances
data DotCabalPath Source #
A path resolved from the Cabal file, which is either main-is or an exposedinternalreferenced module.
Constructors
| 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 Methods showsPrec :: Int -> DotCabalPath -> ShowS # show :: DotCabalPath -> String # showList :: [DotCabalPath] -> ShowS # | |
| Eq DotCabalPath Source # | |
Defined in Stack.Types.PackageFile | |
| Ord DotCabalPath Source # | |
Defined in Stack.Types.PackageFile Methods 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
Constructors
| DotCabalModule !ModuleName | |
| DotCabalMain !FilePath | |
| DotCabalFile !FilePath | |
| DotCabalCFile !FilePath |
Instances
| Show DotCabalDescriptor Source # | |
Defined in Stack.Types.PackageFile Methods showsPrec :: Int -> DotCabalDescriptor -> ShowS # show :: DotCabalDescriptor -> String # showList :: [DotCabalDescriptor] -> ShowS # | |
| Eq DotCabalDescriptor Source # | |
Defined in Stack.Types.PackageFile Methods (==) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # (/=) :: DotCabalDescriptor -> DotCabalDescriptor -> Bool # | |
| Ord DotCabalDescriptor Source # | |
Defined in Stack.Types.PackageFile Methods 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
Constructors
| 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.
Constructors
| StackPackageFile | |
Instances
| Show StackPackageFile Source # | |
Defined in Stack.Types.PackageFile Methods showsPrec :: Int -> StackPackageFile -> ShowS # show :: StackPackageFile -> String # showList :: [StackPackageFile] -> ShowS # | |
data PackageComponentFile Source #
Files that the package depends on, relative to package directory.
Constructors
| PackageComponentFile | |
Fields
| |
Instances
| Monoid PackageComponentFile Source # | |
Defined in Stack.Types.PackageFile Methods mempty :: PackageComponentFile # mappend :: PackageComponentFile -> PackageComponentFile -> PackageComponentFile # | |
| Semigroup PackageComponentFile Source # | |
Defined in Stack.Types.PackageFile Methods (<>) :: PackageComponentFile -> PackageComponentFile -> PackageComponentFile # sconcat :: NonEmpty PackageComponentFile -> PackageComponentFile # stimes :: Integral b => b -> PackageComponentFile -> PackageComponentFile # | |