Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- mkProjectPackage :: forall env. (HasPantryConfig env, HasLogFunc env, HasProcessContext env) => PrintWarnings -> ResolvedPath Dir -> Bool -> RIO env ProjectPackage
- snapToDepPackage :: forall env. (HasPantryConfig env, HasLogFunc env, HasProcessContext env) => Bool -> PackageName -> SnapshotPackage -> RIO env DepPackage
- additionalDepPackage :: forall env. (HasPantryConfig env, HasLogFunc env, HasProcessContext env) => Bool -> PackageLocation -> RIO env DepPackage
- loadVersion :: MonadIO m => CommonPackage -> m Version
- getPLIVersion :: PackageLocationImmutable -> Version
- loadGlobalHints :: (HasTerm env, HasPantryConfig env) => WantedCompiler -> RIO env (Maybe (Map PackageName Version))
- type DumpedGlobalPackage = DumpPackage
- actualFromGhc :: (HasConfig env, HasCompiler env) => SMWanted -> ActualCompiler -> RIO env (SMActual DumpedGlobalPackage)
- actualFromHints :: HasConfig env => SMWanted -> ActualCompiler -> RIO env (SMActual GlobalPackageVersion)
- checkFlagsUsedThrowing :: (MonadIO m, MonadThrow m) => Map PackageName (Map FlagName Bool) -> FlagSource -> Map PackageName ProjectPackage -> Map PackageName DepPackage -> m ()
- globalCondCheck :: HasConfig env => RIO env (ConfVar -> Either ConfVar Bool)
- pruneGlobals :: Map PackageName DumpedGlobalPackage -> Set PackageName -> Map PackageName GlobalPackage
- globalsFromHints :: HasConfig env => WantedCompiler -> RIO env (Map PackageName Version)
- getCompilerInfo :: (HasConfig env, HasCompiler env) => RIO env Builder
- immutableLocSha :: PackageLocationImmutable -> Builder
- loadProjectSnapshotCandidate :: HasConfig env => RawSnapshotLocation -> PrintWarnings -> Bool -> RIO env (SnapshotCandidate env)
- type SnapshotCandidate env = [ResolvedPath Dir] -> RIO env (SMActual GlobalPackageVersion)
- globalsFromDump :: (HasProcessContext env, HasTerm env) => GhcPkgExe -> RIO env (Map PackageName DumpedGlobalPackage)
Documentation
:: forall env. (HasPantryConfig env, HasLogFunc env, HasProcessContext env) | |
=> PrintWarnings | |
-> ResolvedPath Dir | |
-> Bool | Should Haddock documentation be built for the package? |
-> RIO env ProjectPackage |
Create a ProjectPackage
from a directory containing a package.
:: forall env. (HasPantryConfig env, HasLogFunc env, HasProcessContext env) | |
=> Bool | Should Haddock documentation be built for the package? |
-> PackageName | |
-> SnapshotPackage | |
-> RIO env DepPackage |
:: forall env. (HasPantryConfig env, HasLogFunc env, HasProcessContext env) | |
=> Bool | Should Haddock documentation be built for the package? |
-> PackageLocation | |
-> RIO env DepPackage |
Create a DepPackage
from a PackageLocation
, from some additional
to a snapshot setting (extra-deps or command line)
loadVersion :: MonadIO m => CommonPackage -> m Version Source #
loadGlobalHints :: (HasTerm env, HasPantryConfig env) => WantedCompiler -> RIO env (Maybe (Map PackageName Version)) #
Load the global hints from GitHub.
Since: pantry-0.1.0.0
type DumpedGlobalPackage = DumpPackage Source #
actualFromGhc :: (HasConfig env, HasCompiler env) => SMWanted -> ActualCompiler -> RIO env (SMActual DumpedGlobalPackage) Source #
actualFromHints :: HasConfig env => SMWanted -> ActualCompiler -> RIO env (SMActual GlobalPackageVersion) Source #
checkFlagsUsedThrowing :: (MonadIO m, MonadThrow m) => Map PackageName (Map FlagName Bool) -> FlagSource -> Map PackageName ProjectPackage -> Map PackageName DepPackage -> m () Source #
globalCondCheck :: HasConfig env => RIO env (ConfVar -> Either ConfVar Bool) Source #
Simple cond check for boot packages - checks only OS and Arch
pruneGlobals :: Map PackageName DumpedGlobalPackage -> Set PackageName -> Map PackageName GlobalPackage Source #
globalsFromHints :: HasConfig env => WantedCompiler -> RIO env (Map PackageName Version) Source #
getCompilerInfo :: (HasConfig env, HasCompiler env) => RIO env Builder Source #
loadProjectSnapshotCandidate Source #
:: HasConfig env | |
=> RawSnapshotLocation | |
-> PrintWarnings | |
-> Bool | Should Haddock documentation be build for the package? |
-> RIO env (SnapshotCandidate env) |
type SnapshotCandidate env = [ResolvedPath Dir] -> RIO env (SMActual GlobalPackageVersion) Source #
globalsFromDump :: (HasProcessContext env, HasTerm env) => GhcPkgExe -> RIO env (Map PackageName DumpedGlobalPackage) Source #