Idris2Doc : Pack.Config.Environment

Pack.Config.Environment

(source)

Reexports

importpublic Pack.Config.Environment.Variable

Definitions

packToml : Body
  File body of all `pack.toml` files.

Totality: total
Visibility: export
dbDir : PackDirs=>PathAbs
  Directory where databases are stored.

Totality: total
Visibility: export
cacheDir : PackDirs=>PathAbs
  Directory where cached data is stored

Totality: total
Visibility: export
ipkgCachePath : PackDirs=>PkgName->Commit->FileRel->FileAbs
  Path to cached `.ipkg` file.

Totality: total
Visibility: export
versionCachePath : PackDirs=>DB=>FileAbs
  Path where the cached compiler version is stored.

Totality: total
Visibility: export
coreCachePath : PackDirs=>DB=>CorePkg->FileAbs
  Path to cached core library `.ipkg` file

Totality: total
Visibility: export
userDir : PackDirs=>PathAbs
  Directory where user settings are stored.

Totality: total
Visibility: export
globalPackToml : PackDirs=>FileAbs
  Path to global `pack.toml` file.

Totality: total
Visibility: export
collectionToml : PackDirs=>FileAbs
  Path to global `pack.toml` file containing the global pack collection.

Totality: total
Visibility: export
dbFile : PackDirs=>MetaConfig=>FileAbs
  File where package DB is located

Totality: total
Visibility: export
packBinDir : PackDirs=>PathAbs
  Directory where wrapper scripts to binaries
managed by pack are being stored. The only exception
is pack itself, which is stored as a symbolic link.

Totality: total
Visibility: export
installDir : PackDirs=>PathAbs
  Where packages and built applications will be installed

Totality: total
Visibility: export
packParentDir : PackDirs=>PathAbs
  Where all pack versions are installed

Totality: total
Visibility: export
packInstallDir : PackDirs=>Commit->PathAbs
  Where the actual pack application is installed.

Totality: total
Visibility: export
pathExec : PackDirs=>Body->FileAbs
  Executable for an application

Totality: total
Visibility: export
packExec : PackDirs=>FileAbs
  Symbolic link to the current pack executable.

Totality: total
Visibility: export
patchesDir : PackDirs=>PathAbs
  Directory where `.ipkg` patches are stored.

Totality: total
Visibility: export
commitsDir : PackDirs=>PathAbs
Totality: total
Visibility: export
commitFile : PackDirs=>URL->Branch->FileAbs
  Path to file storing the last fetched commit of a Git
repo given as a URL and branch name.

Totality: total
Visibility: export
patchFile : PackDirs=>Config=>PkgName->FileRel->FileAbs
  File where the patch (if any) for an `.ipkg` file is stored.

Totality: total
Visibility: export
commitDir : PackDirs=>DB=>PathAbs
  Directory where all packages (and Idris2) built with the
current Idris2 commit will be installed.

Totality: total
Visibility: export
idrisPrefixDir : PackDirs=>DB=>PathAbs
  The directory where Idris2 and core libraries will be installed.

Totality: total
Visibility: export
idrisBinDir : PackDirs=>DB=>PathAbs
  The directory where the Idris2 binary will be installed.

Totality: total
Visibility: export
idrisExec : PackDirs=>DB=>FileAbs
  Location of the Idris2 executable used to build packages.

Notice that if you need an Idris command, you may need `idrisCmd` function
instead because it takes extra arguments into account.

Totality: total
Visibility: export
idrisDir : DB=>Body
Totality: total
Visibility: export
idrisInstallDir : PackDirs=>DB=>PathAbs
  The directory where Idris2 packages will be installed.

Totality: total
Visibility: export
idrisLibDir : PackDirs=>DB=>PathAbs
  The `lib` directory in the Idris2 installation folder

Totality: total
Visibility: export
idrisDataDir : PackDirs=>DB=>PathAbs
  The `support` directory in the Idris2 installation folder

Totality: total
Visibility: export
pkgPrefixDir : PackDirs=>DB=>PkgName->Hash->Package->PathAbs
  Directory where an installed library or app goes

Totality: total
Visibility: export
pkgPathDir : PackDirs=>DB=>PkgName->Hash->Package->PathAbs
  Directory to be used with the `IDRIS2_PACKAGE_PATH` variable, so that
Idris finds a library even though it is being installed in a
custom location.

Totality: total
Visibility: export
pkgBinDir : PackDirs=>DB=>PkgName->Hash->Package->PathAbs
  Directory where the binary of an Idris application is installed.

Totality: total
Visibility: export
pkgLibDir : PackDirs=>DB=>PkgName->Hash->Package->PathAbs
  Directory to be used with the `IDRIS2_LIBS` variable, so that
Idris finds a libraries `.so` files even though they have been
installed in a custom location.

Totality: total
Visibility: export
pkgDataDir : PackDirs=>DB=>PkgName->Hash->Package->PathAbs
  Directory to be used with the `IDRIS2_DATA` variable, so that
Idris finds a libraries support files even though they have been
installed in a custom location.

Totality: total
Visibility: export
libTimestamp : PackDirs=>DB=>PkgName->FileAbs
  Timestamp used to monitor if a local library has been
modified and requires reinstalling.

Totality: total
Visibility: export
localSrcDir : Desct->PathAbs
  Directory where the sources of a local package are
stored.

Totality: total
Visibility: export
pkgInstallDir : PackDirs=>DB=>PkgName->Hash->Package->Desct->PathAbs
  Returns the directory where a package for the current
package collection is installed.

Totality: total
Visibility: export
pkgDocs : PackDirs=>DB=>PkgName->Hash->Package->Desct->PathAbs
  Directory where the API docs of the package will be installed.

Totality: total
Visibility: export
pkgExec : PackDirs=>DB=>PkgName->Hash->Package->Body->FileAbs
  Location of an executable of the given name.

Totality: total
Visibility: export
resolvedExec : PackDirs=>DB=>ResolvedAppt->FileAbs
  Path to the executable of an Idris application

Totality: total
Visibility: export
packRepo : Config=>URL
  URL of the pack repository to use

Totality: total
Visibility: export
packCommit : Config=>MaybeCommit
  Commit of pack to use

Totality: total
Visibility: export
useRacket : Config=>Bool
  True if the path to the scheme executable actually points
to `racket`.

Totality: total
Visibility: export
bootstrapCmd : Config=>String
  Bootstrap command to use

Totality: total
Visibility: export
prefixVar : PackDirs=>DB=>EnvVar
  `$PREFIX` variable during Idris2 installation, unquoted

Totality: total
Visibility: export
idrisBootVar : PackDirs=>DB=>EnvVar
  `$IDRIS2_BOOT` variable during Idris2 installation, unquoted

Totality: total
Visibility: export
schemeVar : Config=>EnvVar
  `$SCHEME` variable during Idris2 installation, unquoted

Totality: total
Visibility: export
libInstallPrefix : PackDirs=>DB=>ResolvedLibt->ListEnvVar
  `IDRIS2_PREFIX` to be used with Idris when installing a library
to a custom location.

Totality: total
Visibility: export
idrisCmd : Env=>CmdArgList
  Idris executable with extra arguments, if they are present in the config.

Totality: total
Visibility: export
idrisWithCG : Env=>CmdArgList
  Idris executable to use together with the
`--cg` (codegen) command line option.

Totality: total
Visibility: export
getPackDirs : HasIOio=>EitherTPackErrioPackDirs
  Return the path of the pack root directory,
either from environment variable `$PACK_DIR`, or
as `$HOME/.pack`.

Totality: total
Visibility: export
updateDB : HasIOio=>TmpDir=>PackDirs=>EitherTPackErrio ()
  Update the package database.

Totality: total
Visibility: export
latestCollection : HasIOio=>PathAbs->EitherTPackErrioDBName
  Extract the name of the latest collection from a directory

Totality: total
Visibility: export
copyLatest : HasIOio=>TmpDir=>PackDirs=>EitherTPackErrioDBName
  Update the package database.

Totality: total
Visibility: export
defaultColl : HasIOio=>TmpDir=>PackDirs=>EitherTPackErrioDBName
  Loads the name of the default collection (currently the latest
nightly)

Totality: total
Visibility: export
resolveMeta : HasIOio=>PackDirs=>Bool->URL->MetaCommit->EitherTPackErrioCommit
  Resolve a meta commit by fetching the hash of the latest commit
from a Git repo in case of an `Fetch x` commit. In case of a `Latest x`
meta commit, the hash is only fetched, if the corresponding commit
file is missing or `fetch` is set to `True`.

Totality: total
Visibility: export
collectionTomlContent : DBName->String
  Content of pack-generated `pack.toml` containing the globally
set pack collection.

Totality: total
Visibility: export
getConfig : (0c : Type) -> {auto{conArg:7077} : Commandc} ->ParsedArgsc->HasIOio=>PackDirs=>TmpDir=>EitherTPackErrioMetaConfig
  Read application config from command line arguments.

Visibility: export
getLineBufferingCmd : HasIOio=>ioLineBufferingCmd
Totality: total
Visibility: export
loadDB : HasIOio=>TmpDir=>PackDirs=>MetaConfig->EitherTPackErrioMetaDB
  Load the package collection as given in the (auto-implicit) user config.

Visibility: export
withCoreGit : HasIOio=>Env=> (PathAbs->EitherTPackErrioa) ->EitherTPackErrioa
  Run a pack action in the directory of the cloned Idris repository.

Totality: total
Visibility: export
cacheCoreIpkgFiles : HasIOio=>Env=>PathAbs->EitherTPackErrio ()
  Caches the `.ipkg` files of the core libraries to make them
quickly available when running queries.

Totality: total
Visibility: export
notCached : HasIOio=>Env=>PkgName->Package->ioBool
Totality: total
Visibility: export
cachePkg : HasIOio=>Env=>PkgName->Package->EitherTPackErrio ()
Totality: total
Visibility: export
cachePkgs : HasIOio=>Env=>EitherTPackErrioPkgVersion
Totality: total
Visibility: export
env : HasIOio=>PackDirs=>TmpDir=>LibCache=>LineBufferingCmd=>MetaConfig->FetchMethod->EitherTPackErrioEnv
  Load the package collection as given in the (auto-implicit) user config
and convert the result to a pack environment.

Visibility: export
writeCollection : HasIOio=>PackDirs=>Config=>EitherTPackErrio ()
  Update the `collection` field in file `PACK_DIR/user/pack.toml`
with the name of the package collection given in config `c`.

Visibility: export