Idris2Doc : Pack.Core.TOML

Pack.Core.TOML

(source)

Definitions

interfaceTOMLKey : Type->Type
  Interface for using a pack data type as a key
in a TOML table.

Parameters: a
Constraints: Ord a
Methods:
fromKey : String->EitherTOMLErra
  Tries to convert a key to a value of type `a`

Implementations:
TOMLKeyDBName
TOMLKeyPkgName
TOMLKeyString
fromKey : TOMLKeya=>String->EitherTOMLErra
  Tries to convert a key to a value of type `a`

Totality: total
Visibility: public export
interfaceFromTOML : Type->Type
  Interface for converting a TOML value to a pack
data type. We pass the TOML file's absolute path
as an additional argument, since this allows us to
convert relative paths listed in the TOML file
(for instance, the path to a local package) to absolute ones.

Parameters: a
Methods:
fromTOML : FileAbs->TomlValue->EitherTOMLErra
  Tries to convert a `TomlValue` to a value of type `a`.

Implementations:
FromTOMLAutoload
FromTOMLCodegen
FromTOMLRlwrapConfig
FromTOMLCmdArgList
FromTOMLUserConfig
FromTOMLMetaCommit
FromTOMLc=>FromTOML (Package_c)
FromTOMLMetaDB
FromTOMLString
FromTOMLPkgName
FromTOMLURL
FromTOMLBranch
FromTOMLCommit
FromTOMLFilePath
FromTOML (PathRel)
FromTOMLLogLevel
FromTOML (FileRel)
FromTOMLDBName
FromTOMLBool
FromTOMLa=>FromTOML (Lista)
FromTOMLPkgVersion
TOMLKeyk=>FromTOMLv=>FromTOML (SortedMapkv)
FromTOML (PathAbs)
FromTOML (FileAbs)
fromTOML : FromTOMLa=>FileAbs->TomlValue->EitherTOMLErra
  Tries to convert a `TomlValue` to a value of type `a`.

Totality: total
Visibility: public export
tmap : FromTOMLa=> (a->b) ->FileAbs->TomlValue->EitherTOMLErrb
  Read a value of type `b` by reading a value of
type `a` and converting it with the given function.

Totality: total
Visibility: export
trefine : FromTOMLa=> (a->EitherTOMLErrb) ->FileAbs->TomlValue->EitherTOMLErrb
  Read a value of type `b` by refining a value of
type `a`.

Totality: total
Visibility: export
valAt' : (TomlValue->EitherTOMLErra) ->String->Maybea->TomlValue->EitherTOMLErra
  Try to extract a value from a toml `TomlValue`.

@ get : Tries to convert the value found at the given `path` to a values of
the result type.
@ path : Dot-separated path to the value we'd like to read.
@ deflt : Optional default value to use if there is not entry
at the given `path`. Note: This will not be used if there
is an entry at `path`. In this case, the value found will
always be handed over to `get`, resulting in a failure if
it can't be properly converted.
@ value : The TOML value we start with.

Totality: total
Visibility: export
valAt : FromTOMLa=>String->FileAbs->TomlValue->EitherTOMLErra
  Extract and convert a mandatory value from a TOML
value. The `path` string can contain several dot-separated
key names. See also `valAt'`.

Totality: total
Visibility: export
optValAt : FromTOMLa=>String->FileAbs->a->TomlValue->EitherTOMLErra
  Extract and convert an optional value from a TOML
value. The `path` string can contain several dot-separated
key names. See also `valAt'`.

Totality: total
Visibility: export
maybeValAt' : (TomlValue->EitherTOMLErra) ->String->TomlValue->EitherTOMLErr (Maybea)
  Extract and convert an optional value from a TOML
value. The `path` string can contain several dot-separated
key names. See also `valAt'`.

Totality: total
Visibility: export
maybeValAt : FromTOMLa=>String->FileAbs->TomlValue->EitherTOMLErr (Maybea)
  Extract and convert an optional value from a TOML
value. The `path` string can contain several dot-separated
key names. See also `valAt'`.

Totality: total
Visibility: export
readTOML : HasIOio=>FileAbs->EitherTPackErrioTomlValue
  Reads a file and converts its content to a TOML value.

Visibility: export
readFromTOML : HasIOio=> (0a : Type) ->FromTOMLa=>FileAbs->EitherTPackErrioa
  Reads a file, converts its content to a TOML value, and
extracts an Idris value from this.

Visibility: export
readOptionalFromTOML : HasIOio=> (0a : Type) ->FromTOMLa=>FileAbs->EitherTPackErrioa
  Reads a file, converts its content to a TOML value, and
extracts an Idris value from this.

Visibility: export