Idris2Doc : Pack.Database.Types

Pack.Database.Types

(source)

Definitions

dataMetaCommit : Type
  A git commit hash or tag, or a meta commit: The latest commit of a branch.

Totality: total
Visibility: public export
Constructors:
MC : Commit->MetaCommit
Latest : Branch->MetaCommit
Fetch : Branch->MetaCommit

Hints:
FromStringMetaCommit
FromTOMLMetaCommit
InterpolationMetaCommit
toLatest : MetaCommit->MetaCommit
Totality: total
Visibility: export
dataFetchMethod : Type
  Strategy for resolving `MetaCommit`s

Totality: total
Visibility: public export
Constructors:
MissingOnly : FetchMethod
  Update only meta commits, which don't have a cached entry in the
"commits" directory. This is the default.
All : FetchMethod
  Update all custom commits. This is the strategy used with the `fetch`
command.
ClearCommits : FetchMethod
  Remove the "commits" directory, thus forcing all meta commits to
be resolved again. This is the strategy used with the `switch latest`
command

Hints:
EqFetchMethod
OrdFetchMethod
ShowFetchMethod
dataCorePkg : Type
  Core packages bundled with the Idris compiler

Totality: total
Visibility: public export
Constructors:
Prelude : CorePkg
Base : CorePkg
Contrib : CorePkg
Linear : CorePkg
Network : CorePkg
Test : CorePkg
Papers : CorePkg
IdrisApi : CorePkg

Hints:
CastCorePkgBody
CastCorePkg (PathRel)
InterpolationCorePkg
Uninhabited (IsLocal (Core{_:2761}))
Uninhabited (IsGit (Core{_:2920}))
corePkgs : ListCorePkg
  The list of core packages.

Totality: total
Visibility: public export
corePkgName : CorePkg->PkgName
  Package name of a core package.

Totality: total
Visibility: export
coreIpkgFile : CorePkg->Body
  `.ipkg` file name corrsponding to a core package.

Totality: total
Visibility: export
coreIpkgPath : CorePkg->FileRel
  Relative path to the `.ipkg` file corrsponding to a core package
(in the Idris2 project).

Totality: total
Visibility: export
readCorePkg : String->MaybeCorePkg
  Try to convert a string to a core package.

Totality: total
Visibility: export
isCorePkg : String->Bool
  True, if the given string corresponds to one of the core packges.

Totality: total
Visibility: export
dataPackage_ : Type->Type
  Description of a Git or local Idris package in the
package database.

Note: This does not contain the package name, as it
will be paired with its name in a `SortedMap`.

Totality: total
Visibility: public export
Constructors:
Git : URL->c->FileRel->Bool->Maybe (FileRel) ->MaybeString->Package_c
  A Git repository, given as the package's URL,
commit (hash or tag), and name of `.ipkg` file to use.
`pkgPath` should be set to `True` for executables which need
access to the `IDRIS2_PACKAGE_PATH`: The list of directories
where Idris packages are installed.
Local : PathAbs->FileRel->Bool->Maybe (FileRel) ->Package_c
  A local Idris project given as an absolute path to a local
directory, and `.ipkg` file to use.
`pkgPath` should be set to `True` for executable which need
access to the `IDRIS2_PACKAGE_PATH`: The list of directories
where Idris packages are installed.
Core : CorePkg->Package_c
  A core package of the Idris2 project

Hints:
FromTOMLc=>FromTOML (Package_c)
FunctorPackage_
traverse : Applicativef=> (URL->a->fb) ->Package_a->f (Package_b)
Totality: total
Visibility: export
0Package : Type
  An alias for `Package_ Commit`: A package description with
meta commits already resolved.

Totality: total
Visibility: public export
0UserPackage : Type
  An alias for `Package_ MetaCommit`: A package description where
the commit might still contain meta information.

Totality: total
Visibility: public export
dataIsCore : Package->Type
  Proof that a package is a core package

Totality: total
Visibility: public export
Constructor: 
ItIsCore : IsCore (Corec)

Hints:
Uninhabited (IsCore (Local{_:2589}{_:2588}{_:2587}{_:2586}))
Uninhabited (IsCore (Git{_:2638}{_:2633}{_:2637}{_:2636}{_:2635}{_:2634}))
isCore : (p : Package) ->Dec (IsCorep)
  Decides, if the given package represents
one of the core packages (`base`, `prelude`, etc.)

Totality: total
Visibility: export
dataIsLocal : Package->Type
  Proof that a package is a local package

Totality: total
Visibility: public export
Constructor: 
ItIsLocal : IsLocal (Local{_:2757}{_:2756}{_:2755}{_:2754})

Hints:
Uninhabited (IsLocal (Core{_:2761}))
Uninhabited (IsLocal (Git{_:2792}{_:2787}{_:2791}{_:2790}{_:2789}{_:2788}))
isLocal : (p : Package) ->Dec (IsLocalp)
  Decides, if the given package represents
a local package.

Totality: total
Visibility: export
dataIsGit : Package->Type
  Proof that a package is a Git package

Totality: total
Visibility: public export
Constructor: 
ItIsGit : IsGit (Git{_:2916}{_:2911}{_:2915}{_:2914}{_:2913}{_:2912})

Hints:
Uninhabited (IsGit (Core{_:2920}))
Uninhabited (IsGit (Local{_:2946}{_:2945}{_:2944}{_:2943}))
isGit : (p : Package) ->Dec (IsGitp)
  Decides, if the given package represents
a Git package.

Totality: total
Visibility: export
usePackagePath : Package_c->Bool
  True, if the given application needs access to the
folders where Idris package are installed.

Totality: total
Visibility: export
ipkg : PathAbs->Package->FileAbs
  Absolute path to the `.ipkg` file of a package.

Totality: total
Visibility: export
dataPkgStatus : Package->Type
  Installation status of an Idris package.

Totality: total
Visibility: public export
Constructors:
Missing : Hash->PkgStatusp
Installed : Hash->Bool->PkgStatusp
hash : PkgStatusp->Hash
Totality: total
Visibility: export
recordResolvedLib : (PkgDesc->Type) ->Type
  A resolved library, which was cloned from a Git repo
or looked up in the local file system. This comes with
a fully parsed `PkgDesc` (representing the `.ipkg` file).

Totality: total
Visibility: public export
Constructor: 
RL : (pkg : Package) ->Hash->PkgName->Desct->PkgStatuspkg->List (DPairPackagePkgStatus) ->ResolvedLibt

Projections:
.deps : ResolvedLibt->List (DPairPackagePkgStatus)
.desc : ResolvedLibt->Desct
.hash : ResolvedLibt->Hash
.name : ResolvedLibt->PkgName
.pkg : ResolvedLibt->Package
.status : ({rec:0} : ResolvedLibt) ->PkgStatus (pkg{rec:0})
.pkg : ResolvedLibt->Package
Totality: total
Visibility: public export
pkg : ResolvedLibt->Package
Totality: total
Visibility: public export
.hash : ResolvedLibt->Hash
Totality: total
Visibility: public export
hash : ResolvedLibt->Hash
Totality: total
Visibility: public export
.name : ResolvedLibt->PkgName
Totality: total
Visibility: public export
name : ResolvedLibt->PkgName
Totality: total
Visibility: public export
.desc : ResolvedLibt->Desct
Totality: total
Visibility: public export
desc : ResolvedLibt->Desct
Totality: total
Visibility: public export
.status : ({rec:0} : ResolvedLibt) ->PkgStatus (pkg{rec:0})
Totality: total
Visibility: public export
status : ({rec:0} : ResolvedLibt) ->PkgStatus (pkg{rec:0})
Totality: total
Visibility: public export
.deps : ResolvedLibt->List (DPairPackagePkgStatus)
Totality: total
Visibility: public export
deps : ResolvedLibt->List (DPairPackagePkgStatus)
Totality: total
Visibility: public export
nameStr : ResolvedLibt->String
  Extracts the package name from a resolved library.

Totality: total
Visibility: export
reTag : ResolvedLibs->Desct->ResolvedLibt
  Change the type-level tag of a resolved library.

Totality: total
Visibility: export
dependencies : ResolvedLibt->ListPkgName
  Extracts the dependencies of a resolved library.

Totality: total
Visibility: export
isInstalled : ResolvedLibt->Bool
  Check if the given library is installed

Totality: total
Visibility: export
dataAppStatus : Package->Type
  Installation status of an Idris app.

Totality: total
Visibility: public export
Constructors:
Missing : Hash->AppStatusp
  The app has not been compiled and is therfore missing
Installed : Hash->AppStatusp
  The app has been built but is not on the `PATH`.
BinInstalled : Hash->AppStatusp
  The app has been built and a wrapper script has been added
to `$PACK_DIR/bin`, so it should be on the `PATH`.
recordResolvedApp : (PkgDesc->Type) ->Type
  A resolved application, which was cloned from a Git repo
or looked up in the local file system. This comes with
a fully parsed `PkgDesc` (representing the `.ipkg` file).

Totality: total
Visibility: public export
Constructor: 
RA : (pkg : Package) ->Hash->PkgName->Desct->AppStatuspkg->Body->List (DPairPackagePkgStatus) ->ResolvedAppt

Projections:
.deps : ResolvedAppt->List (DPairPackagePkgStatus)
.desc : ResolvedAppt->Desct
.exec : ResolvedAppt->Body
.hash : ResolvedAppt->Hash
.name : ResolvedAppt->PkgName
.pkg : ResolvedAppt->Package
.status : ({rec:0} : ResolvedAppt) ->AppStatus (pkg{rec:0})
.pkg : ResolvedAppt->Package
Totality: total
Visibility: public export
pkg : ResolvedAppt->Package
Totality: total
Visibility: public export
.hash : ResolvedAppt->Hash
Totality: total
Visibility: public export
hash : ResolvedAppt->Hash
Totality: total
Visibility: public export
.name : ResolvedAppt->PkgName
Totality: total
Visibility: public export
name : ResolvedAppt->PkgName
Totality: total
Visibility: public export
.desc : ResolvedAppt->Desct
Totality: total
Visibility: public export
desc : ResolvedAppt->Desct
Totality: total
Visibility: public export
.status : ({rec:0} : ResolvedAppt) ->AppStatus (pkg{rec:0})
Totality: total
Visibility: public export
status : ({rec:0} : ResolvedAppt) ->AppStatus (pkg{rec:0})
Totality: total
Visibility: public export
.exec : ResolvedAppt->Body
Totality: total
Visibility: public export
exec : ResolvedAppt->Body
Totality: total
Visibility: public export
.deps : ResolvedAppt->List (DPairPackagePkgStatus)
Totality: total
Visibility: public export
deps : ResolvedAppt->List (DPairPackagePkgStatus)
Totality: total
Visibility: public export
nameStr : ResolvedAppt->String
  Extracts the package name from a resolved application.

Totality: total
Visibility: export
dependencies : ResolvedAppt->ListPkgName
  Extracts the dependencies of a resolved application.

Totality: total
Visibility: export
reTag : ResolvedApps->Desct->ResolvedAppt
  Change the type-level tag of a resolved application.

Totality: total
Visibility: export
usePackagePath : ResolvedAppt->Bool
  True, if the given application needs access to the
folders where Idris package are installed.

Totality: total
Visibility: export
dataLibOrApp : (PkgDesc->Type) -> (PkgDesc->Type) ->Type
  Either a resolved library or application tagged with the given tag.
This is to be used in build plans, so applications come with the
additional info whether we want to install a wrapper script or not.

Totality: total
Visibility: public export
Constructors:
Lib : ResolvedLibt->LibOrAppts
App : Bool->ResolvedApps->LibOrAppts
dependencies : LibOrAppts->ListPkgName
  Extract the dependencies of a resolved library or application.

Totality: total
Visibility: export
pkg : LibOrAppts->Package
  Extract the package of a resolved library or application.

Totality: total
Visibility: export
desc : LibOrApptt->Desct
  Extract the description of a resolved library or application.

Totality: total
Visibility: export
name : LibOrAppts->PkgName
  Extract the package name of a resolved library or application.

Totality: total
Visibility: export
libName : LibOrAppts->MaybePkgName
  Try to extract the package name of a resolved library.

Totality: total
Visibility: export
recordDB_ : Type->Type
  DB used for building packages. This includes
the Idris commit to use, together with a curated list of
known packages.

Totality: total
Visibility: public export
Constructor: 
MkDB : URL->c->PkgVersion->SortedMapPkgName (Package_c) ->DB_c

Projections:
.idrisCommit : DB_c->c
.idrisURL : DB_c->URL
.idrisVersion : DB_c->PkgVersion
.packages : DB_c->SortedMapPkgName (Package_c)

Hint: 
FunctorDB_
.idrisURL : DB_c->URL
Totality: total
Visibility: public export
idrisURL : DB_c->URL
Totality: total
Visibility: public export
.idrisCommit : DB_c->c
Totality: total
Visibility: public export
idrisCommit : DB_c->c
Totality: total
Visibility: public export
.idrisVersion : DB_c->PkgVersion
Totality: total
Visibility: public export
idrisVersion : DB_c->PkgVersion
Totality: total
Visibility: public export
.packages : DB_c->SortedMapPkgName (Package_c)
Totality: total
Visibility: public export
packages : DB_c->SortedMapPkgName (Package_c)
Totality: total
Visibility: public export
0DB : Type
Totality: total
Visibility: public export
0MetaDB : Type
Totality: total
Visibility: public export
setVersion : PkgVersion->DB->DB
  Sets the package version.

Totality: total
Visibility: export
traverseDB : Applicativef=> (URL->a->fb) ->DB_a->f (DB_b)
  Effectfully convert package descriptions in a DB

Totality: total
Visibility: export
printDB : DB->String
  Convert a package collection to a valid TOML string.

Totality: total
Visibility: export