Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Spago.PackageSet
Synopsis
- updatePackageSetVersion :: forall env. (HasLogFunc env, HasGlobalCache env, HasPurs env) => Maybe Text -> RIO env ()
- getLatestSetForCompilerVersion :: HasLogFunc env => SemVer -> Text -> Text -> RIO env (Either SomeException Text)
- checkPursIsUpToDate :: forall env. (HasLogFunc env, HasPackageSet env) => RIO env ()
- makePackageSetFile :: HasLogFunc env => Force -> TemplateComments -> RIO env ()
- freeze :: HasLogFunc env => FilePath -> RIO env ()
- ensureFrozen :: HasLogFunc env => FilePath -> RIO env ()
- packagesPath :: IsString t => t
- findRootOutputPath :: HasLogFunc env => FilePath -> RIO env (Maybe FilePath)
Documentation
updatePackageSetVersion :: forall env. (HasLogFunc env, HasGlobalCache env, HasPurs env) => Maybe Text -> RIO env () #
Use the specified version of the package set (if specified). Otherwise, get the latest version of the package set if possible
getLatestSetForCompilerVersion :: HasLogFunc env => SemVer -> Text -> Text -> RIO env (Either SomeException Text) #
checkPursIsUpToDate :: forall env. (HasLogFunc env, HasPackageSet env) => RIO env () #
makePackageSetFile :: HasLogFunc env => Force -> TemplateComments -> RIO env () #
Tries to create the `packages.dhall` file if needed
freeze :: HasLogFunc env => FilePath -> RIO env () #
Freeze the package set remote imports so they will be cached
ensureFrozen :: HasLogFunc env => FilePath -> RIO env () #
Freeze the file if any of the remote imports are not frozen
packagesPath :: IsString t => t #
findRootOutputPath :: HasLogFunc env => FilePath -> RIO env (Maybe FilePath) #
In a Monorepo we don't wish to rebuild our shared packages over and over, | so we build into an output folder where our root packages.dhall lives