(assert-dir directory)
Ensure that directory
exists and it's readable and writable
Ensure that `directory` exists and it's readable and writable
(cache-import {:keys [hash?] :as import} expression)
Given an Import, verifies that its hash is good, and saves it to cache
Given an Import, verifies that its hash is good, and saves it to cache
(expr-from-import import-data mode hash?)
Given a Missing, Env, Local or Remote, fetches them from the appropriate place, and returns and expression (that might contain more imports).
Given a Missing, Env, Local or Remote, fetches them from the appropriate place, and returns and expression (that might contain more imports).
(get-cached-file hash)
Given a hash, returns the filename after making sure it's writable and stuff
Given a hash, returns the filename after making sure it's writable and stuff
(canonicalize this)
Normalize the path position of directories/paths.
Normalize the path position of directories/paths.
(chain this stack)
Compute the position of the current (possibly relative) import
given the stack
of parent imports.
Compute the position of the current (possibly relative) import given the `stack` of parent imports.
(fetch this)
Perform the side effect of fetching the import from its source.
Returns a string or throws an imports
exception.
Perform the side effect of fetching the import from its source. Returns a string or throws an `imports` exception.
(resolve-imports this state)
Takes an expression that might contain import expressions,
and returns an expression where all imports have been resolved,
verified and cached.
Will throw an exception (of the :dhall-clj.fail/imports
family)
if some import cannot be resolved.
Takes an expression that might contain import expressions, and returns an expression where all imports have been resolved, verified and cached. Will throw an exception (of the `:dhall-clj.fail/imports` family) if some import cannot be resolved.
(slurp-bytes x)
Slurp the bytes from a slurpable thing
Slurp the bytes from a slurpable thing
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close