-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b18f562
commit 606bdf7
Showing
44 changed files
with
3,268 additions
and
6,383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Promise (acutis.Acutis.Render.Promise)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.3"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script><script>let base_url = '../../../../'; | ||
let search_urls = ['../../../db.js','../../../../sherlodoc.js']; | ||
</script><script src="../../../../odoc.support/odoc_search.js" defer="defer"></script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../../index.html">acutis</a> » <a href="../../index.html">Acutis</a> » <a href="../index.html">Render</a> » Promise</nav><div class="odoc-search"><div class="search-inner"><input class="search-bar" placeholder="🔎 Search..."/><div class="search-snake"></div><div class="search-result"></div></div></div><header class="odoc-preamble"><h1>Parameter <code><span>Render.Promise</span></code></h1><p>A promise interface for async operations.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> <span>'a t</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-return"><a href="#val-return" class="anchor"></a><code><span><span class="keyword">val</span> return : <span><span class="type-var">'a</span> <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <a href="#type-t">t</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-error"><a href="#val-error" class="anchor"></a><code><span><span class="keyword">val</span> error : <span>exn <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <a href="#type-t">t</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-await"><a href="#val-await" class="anchor"></a><code><span><span class="keyword">val</span> await : <span><span><span class="type-var">'a</span> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <span class="type-var">'a</span></span></code></div></div></div></body></html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Promise (acutis.Acutis.Render.Promise)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.3"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../../index.html">acutis</a> » <a href="../../index.html">Acutis</a> » <a href="../index.html">Render</a> » Promise</nav><header class="odoc-preamble"><h1>Parameter <code><span>Render.Promise</span></code></h1><p>A promise interface for async operations.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> <span>'a t</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-return"><a href="#val-return" class="anchor"></a><code><span><span class="keyword">val</span> return : <span><span class="type-var">'a</span> <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <a href="#type-t">t</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-error"><a href="#val-error" class="anchor"></a><code><span><span class="keyword">val</span> error : <span>exn <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <a href="#type-t">t</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-await"><a href="#val-await" class="anchor"></a><code><span><span class="keyword">val</span> await : <span><span><span class="type-var">'a</span> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <span class="type-var">'a</span></span></code></div></div></div></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Render (acutis.Acutis.Render)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.3"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script><script>let base_url = '../../../'; | ||
let search_urls = ['../../db.js','../../../sherlodoc.js']; | ||
</script><script src="../../../odoc.support/odoc_search.js" defer="defer"></script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../index.html">acutis</a> » <a href="../index.html">Acutis</a> » Render</nav><div class="odoc-search"><div class="search-inner"><input class="search-bar" placeholder="🔎 Search..."/><div class="search-snake"></div><div class="search-result"></div></div></div><header class="odoc-preamble"><h1>Module <code><span>Acutis.Render</span></code></h1><p>A functor that builds a render implementation for a given promise interface and a given decodable input type.</p><p>We need to use a functor because parameterized types, such as in <a href="../module-type-PROMISE/index.html"><code>PROMISE</code></a>, are not supported in first-class modules.</p></header><nav class="odoc-toc"><ul><li><a href="#parameters">Parameters</a></li><li><a href="#signature">Signature</a></li></ul></nav><div class="odoc-content"><h2 id="parameters"><a href="#parameters" class="anchor"></a>Parameters</h2><div class="odoc-spec"><div class="spec parameter anchored" id="argument-1-Promise"><a href="#argument-1-Promise" class="anchor"></a><code><span><span class="keyword">module</span> </span><span><a href="argument-1-Promise/index.html">Promise</a></span><span> : <a href="../module-type-PROMISE/index.html">PROMISE</a></span></code></div></div><div class="odoc-spec"><div class="spec parameter anchored" id="argument-2-Data"><a href="#argument-2-Data" class="anchor"></a><code><span><span class="keyword">module</span> </span><span><a href="argument-2-Data/index.html">Data</a></span><span> : <a href="../module-type-DECODABLE/index.html">DECODABLE</a></span></code></div></div><h2 id="signature"><a href="#signature" class="anchor"></a>Signature</h2><div class="odoc-spec"><div class="spec value anchored" id="val-apply"><a href="#val-apply" class="anchor"></a><code><span><span class="keyword">val</span> apply : <span><span><span>(<span><a href="argument-2-Data/index.html#type-t">Data.t</a> <span class="arrow">-></span></span> <span>string <a href="argument-1-Promise/index.html#type-t">Promise.t</a></span>)</span> <a href="../index.html#type-compiled">compiled</a></span> <span class="arrow">-></span></span> <span><a href="argument-2-Data/index.html#type-t">Data.t</a> <span class="arrow">-></span></span> <span>string <a href="argument-1-Promise/index.html#type-t">Promise.t</a></span></span></code></div><div class="spec-doc"><p>Apply data to a template and return the rendered output.</p></div></div></div></body></html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Render (acutis.Acutis.Render)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.3"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../index.html">acutis</a> » <a href="../index.html">Acutis</a> » Render</nav><header class="odoc-preamble"><h1>Module <code><span>Acutis.Render</span></code></h1><p>A functor that builds a render implementation for a given promise interface and a given decodable input type.</p><p>We need to use a functor because parameterized types, such as in <a href="../module-type-PROMISE/index.html"><code>PROMISE</code></a>, are not supported in first-class modules.</p></header><nav class="odoc-toc"><ul><li><a href="#parameters">Parameters</a></li><li><a href="#signature">Signature</a></li></ul></nav><div class="odoc-content"><h2 id="parameters"><a href="#parameters" class="anchor"></a>Parameters</h2><div class="odoc-spec"><div class="spec parameter anchored" id="argument-1-Promise"><a href="#argument-1-Promise" class="anchor"></a><code><span><span class="keyword">module</span> </span><span><a href="argument-1-Promise/index.html">Promise</a></span><span> : <a href="../module-type-PROMISE/index.html">PROMISE</a></span></code></div></div><div class="odoc-spec"><div class="spec parameter anchored" id="argument-2-Data"><a href="#argument-2-Data" class="anchor"></a><code><span><span class="keyword">module</span> </span><span><a href="argument-2-Data/index.html">Data</a></span><span> : <a href="../module-type-DECODABLE/index.html">DECODABLE</a></span></code></div></div><h2 id="signature"><a href="#signature" class="anchor"></a>Signature</h2><div class="odoc-spec"><div class="spec value anchored" id="val-apply"><a href="#val-apply" class="anchor"></a><code><span><span class="keyword">val</span> apply : <span><span><span>(<span><a href="argument-2-Data/index.html#type-t">Data.t</a> <span class="arrow">-></span></span> <span>string <a href="argument-1-Promise/index.html#type-t">Promise.t</a></span>)</span> <a href="../index.html#type-compiled">compiled</a></span> <span class="arrow">-></span></span> <span><a href="argument-2-Data/index.html#type-t">Data.t</a> <span class="arrow">-></span></span> <span>string <a href="argument-1-Promise/index.html#type-t">Promise.t</a></span></span></code></div><div class="spec-doc"><p>Apply data to a template and return the rendered output.</p></div></div></div></body></html> |
Oops, something went wrong.