| Safe Haskell | Safe-Inferred |
|---|---|
| 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 {
- ctxFile :: !(Path Abs File)
- ctxDistDir :: !(Path Abs Dir)
- ctxBuildConfig :: !BuildConfig
- ctxCabalVer :: !Version
- data DotCabalPath
- = DotCabalModulePath !(Path Abs File)
- | DotCabalMainPath !(Path Abs File)
- | DotCabalFilePath !(Path Abs File)
- | DotCabalCFilePath !(Path Abs File)
- data DotCabalDescriptor
- newtype GetPackageFiles = GetPackageFiles {
- getPackageFiles :: forall env. HasEnvConfig env => Path Abs File -> RIO env (Map NamedComponent (Map ModuleName (Path Abs File)), Map NamedComponent [DotCabalPath], Set (Path Abs File), [PackageWarning])
- data PackageWarning = UnlistedModulesWarning NamedComponent [ModuleName]
Documentation
data GetPackageFileContext Source #
Constructors
| GetPackageFileContext | |
Fields
| |
Instances
| HasPantryConfig GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile Methods | |
| HasLogFunc GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile Methods | |
| HasProcessContext GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile Methods processContextL :: Lens' GetPackageFileContext ProcessContext # | |
| HasTerm GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile Methods | |
| HasStylesUpdate GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile Methods | |
| HasBuildConfig GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile Methods buildConfigL :: Lens' GetPackageFileContext BuildConfig Source # | |
| HasConfig GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile | |
| HasGHCVariant GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile | |
| HasPlatform GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile | |
| HasRunner GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile | |
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 # | |
newtype GetPackageFiles Source #
Files that the package depends on, relative to package directory. Argument is the location of the Cabal file
Constructors
| GetPackageFiles | |
Fields
| |
Instances
| Show GetPackageFiles Source # | |
Defined in Stack.Types.PackageFile Methods showsPrec :: Int -> GetPackageFiles -> ShowS # show :: GetPackageFiles -> String # showList :: [GetPackageFiles] -> ShowS # | |
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 |