spago-0.21.0

Safe Haskell | None
Language | Haskell2010

Spago.RunEnv

Synopsis

- withEnv :: GlobalOptions -> RIO Env a -> IO a
- withPackageSetEnv :: (HasLogFunc env, HasConfigPath env) => RIO PackageSetEnv a -> RIO env a
- withInstallEnv' :: HasEnv env => Maybe Config -> RIO InstallEnv a -> RIO env a
- withInstallEnv :: HasEnv env => RIO InstallEnv a -> RIO env a
- withVerifyEnv :: HasEnv env => UsePsa -> RIO VerifyEnv a -> RIO env a
- withPublishEnv :: HasEnv env => RIO PublishEnv a -> RIO env a
- withBuildEnv' :: HasEnv env => Maybe Config -> UsePsa -> BuildOptions -> RIO BuildEnv a -> RIO env a
- withBuildEnv :: HasEnv env => UsePsa -> BuildOptions -> RIO BuildEnv a -> RIO env a
- withPursEnv :: HasEnv env => UsePsa -> RIO PursEnv a -> RIO env a
- getEnv :: HasEnv env => RIO env Env
- getConfig :: (HasLogFunc env, HasConfigPath env) => RIO env Config
- getPurs :: HasLogFunc env => UsePsa -> RIO env PursCmd
- getGit :: HasLogFunc env => RIO env GitCmd
- getPackageSet :: (HasLogFunc env, HasConfigPath env) => RIO env PackageSet
- getMaybeGraph :: HasPursEnv env => BuildOptions -> Config -> [(PackageName, Package)] -> RIO env Graph

# Documentation

withEnv :: GlobalOptions -> RIO Env a -> IO a #

Given the global CLI options, it creates the Env for the Spago context and runs the app

withPackageSetEnv :: (HasLogFunc env, HasConfigPath env) => RIO PackageSetEnv a -> RIO env a #

withInstallEnv' :: HasEnv env => Maybe Config -> RIO InstallEnv a -> RIO env a #

withInstallEnv :: HasEnv env => RIO InstallEnv a -> RIO env a #

withVerifyEnv :: HasEnv env => UsePsa -> RIO VerifyEnv a -> RIO env a #

withPublishEnv :: HasEnv env => RIO PublishEnv a -> RIO env a #

withBuildEnv' :: HasEnv env => Maybe Config -> UsePsa -> BuildOptions -> RIO BuildEnv a -> RIO env a #

withBuildEnv :: HasEnv env => UsePsa -> BuildOptions -> RIO BuildEnv a -> RIO env a #

withPursEnv :: HasEnv env => UsePsa -> RIO PursEnv a -> RIO env a #

getEnv :: HasEnv env => RIO env Env #

getConfig :: (HasLogFunc env, HasConfigPath env) => RIO env Config #

getPurs :: HasLogFunc env => UsePsa -> RIO env PursCmd #

getGit :: HasLogFunc env => RIO env GitCmd #

getPackageSet :: (HasLogFunc env, HasConfigPath env) => RIO env PackageSet #

getMaybeGraph :: HasPursEnv env => BuildOptions -> Config -> [(PackageName, Package)] -> RIO env Graph #