Liking cljdoc? Tell your friends :D

dhall-clj.import


assert-dirclj

(assert-dir directory)

Ensure that directory exists and it's readable and writable

Ensure that `directory` exists and it's readable and writable
sourceraw docstring

cache-importclj

(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
sourceraw docstring

canonicalize-dirclj

(canonicalize-dir directory)
source

expr-from-importclj

(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).
sourceraw docstring

get-cached-fileclj

(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
sourceraw docstring

IFetchcljprotocol

canonicalizeclj

(canonicalize this)

Normalize the path position of directories/paths.

Normalize the path position of directories/paths.

chainclj

(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.

fetchclj

(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.
source

IResolvecljprotocol

resolve-importsclj

(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.
source

slurp-bytesclj

(slurp-bytes x)

Slurp the bytes from a slurpable thing

Slurp the bytes from a slurpable thing
sourceraw docstring

spit-bytesclj

(spit-bytes f content)

Spit bytes to a file

Spit bytes to a file
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close