-
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
Showing
54 changed files
with
2,197 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>index</title> | ||
<link rel="stylesheet" href="./odoc.support/odoc.css"/> | ||
<meta charset="utf-8"/> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"/> | ||
</head> | ||
<body> | ||
<main class="content"> | ||
<div class="by-name"> | ||
<h2>OCaml package documentation</h2> | ||
<ol> | ||
<li><a href="middleware/index.html">middleware</a> <span class="version">0.0.1</span></li> | ||
</ol> | ||
</div> | ||
</main> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Diverter (middleware.Middleware.Diverter)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.0"/><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">middleware</a> » <a href="../index.html">Middleware</a> » Diverter</nav><header class="odoc-preamble"><h1>Module <code><span>Middleware.Diverter</span></code></h1></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>(!'next_input, !'next_output, !'output) t</span></span><span> = | ||
<span><span>(<span class="type-var">'next_input</span>, <span class="type-var">'next_output</span>, <span class="type-var">'output</span>)</span> <a href="../Make/Diverter/index.html#type-t">Make(Monads.Identity).Diverter.t</a></span></span><span> = | ||
</span></code><ol><li id="type-t.Stop" class="def variant constructor anchored"><a href="#type-t.Stop" class="anchor"></a><code><span>| </span><span><span class="constructor">Stop</span> <span class="keyword">of</span> <span><span class="type-var">'output0</span> <a href="../Monads/Identity/index.html#type-t">Monads.Identity.t</a></span></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>Control stops here, and the <code>'output</code> is returned to the wrapping <code>Middleware</code>.</p><span class="comment-delim">*)</span></div></li><li id="type-t.Continue" class="def variant constructor anchored"><a href="#type-t.Continue" class="anchor"></a><code><span>| </span><span><span class="constructor">Continue</span> <span class="keyword">of</span> <span class="type-var">'next_input0</span> * <span>(<span><span class="type-var">'next_output0</span> <span class="arrow">-></span></span> <span><span class="type-var">'output1</span> <a href="../Monads/Identity/index.html#type-t">Monads.Identity.t</a></span>)</span></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>Control continues to the next <code>Middleware</code> <code>g</code>, which receives <code>'next_input</code> as input. After <code>g</code> runs, its result is transformed with the given function.</p><span class="comment-delim">*)</span></div></li></ol></div><div class="spec-doc"><p>Union, determining whether or not to run a subsequent <code>Middleware</code> or return early.</p></div></div></div></body></html> |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Infix (middleware.Middleware.Infix)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.0"/><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">middleware</a> » <a href="../index.html">Middleware</a> » Infix</nav><header class="odoc-preamble"><h1>Module <code><span>Middleware.Infix</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-(<<>>)"><a href="#val-(<<>>)" class="anchor"></a><code><span><span class="keyword">val</span> (<<>>) : | ||
<span><span><span>(<span class="type-var">'ai</span>, <span class="type-var">'bi</span>, <span class="type-var">'bo</span>, <span class="type-var">'ao</span>)</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">-></span></span> | ||
<span><span><span>(<span class="type-var">'bi</span>, <span class="type-var">'ci</span>, <span class="type-var">'co</span>, <span class="type-var">'bo</span>)</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">-></span></span> | ||
<span><span>(<span class="type-var">'ai</span>, <span class="type-var">'ci</span>, <span class="type-var">'co</span>, <span class="type-var">'ao</span>)</span> <a href="../index.html#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>ma <<>> mb</code> is an infix <code>compose</code> operator.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-(<&>)"><a href="#val-(<&>)" class="anchor"></a><code><span><span class="keyword">val</span> (<&>) : | ||
<span><span><span>(<span class="type-var">'ai</span>, <span class="type-var">'bi</span>, <span class="type-var">'bo</span>, <span class="type-var">'ao</span>)</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">-></span></span> | ||
<span><span>(<span><span class="type-var">'bi</span> <span class="arrow">-></span></span> <span><span class="type-var">'bo</span> <a href="../Monads/Identity/index.html#type-t">Monads.Identity.t</a></span>)</span> <span class="arrow">-></span></span> | ||
<span><span class="type-var">'ai</span> <span class="arrow">-></span></span> | ||
<span><span class="type-var">'ao</span> <a href="../Monads/Identity/index.html#type-t">Monads.Identity.t</a></span></span></code></div><div class="spec-doc"><p><code>ma <&> mb</code> is an infix <code>terminate</code> operator.</p></div></div></div></body></html> |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Diverter (middleware.Middleware.Make.Diverter)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.0"/><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">middleware</a> » <a href="../../index.html">Middleware</a> » <a href="../index.html">Make</a> » Diverter</nav><header class="odoc-preamble"><h1>Module <code><span>Make.Diverter</span></code></h1></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>('next_input, 'next_output, 'output) t</span></span><span> = </span></code><ol><li id="type-t.Stop" class="def variant constructor anchored"><a href="#type-t.Stop" class="anchor"></a><code><span>| </span><span><span class="constructor">Stop</span> <span class="keyword">of</span> <span><span class="type-var">'output</span> <a href="../argument-1-M/index.html#type-t">M.t</a></span></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>Control stops here, and the <code>'output</code> is returned to the wrapping <code>Middleware</code>.</p><span class="comment-delim">*)</span></div></li><li id="type-t.Continue" class="def variant constructor anchored"><a href="#type-t.Continue" class="anchor"></a><code><span>| </span><span><span class="constructor">Continue</span> <span class="keyword">of</span> <span class="type-var">'next_input</span> * <span>(<span><span class="type-var">'next_output</span> <span class="arrow">-></span></span> <span><span class="type-var">'output</span> <a href="../argument-1-M/index.html#type-t">M.t</a></span>)</span></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>Control continues to the next <code>Middleware</code> <code>g</code>, which receives <code>'next_input</code> as input. After <code>g</code> runs, its result is transformed with the given function.</p><span class="comment-delim">*)</span></div></li></ol></div><div class="spec-doc"><p>Union, determining whether or not to run a subsequent <code>Middleware</code> or return early.</p></div></div></div></body></html> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Infix (middleware.Middleware.Make.Infix)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.0"/><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">middleware</a> » <a href="../../index.html">Middleware</a> » <a href="../index.html">Make</a> » Infix</nav><header class="odoc-preamble"><h1>Module <code><span>Make.Infix</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-(<<>>)"><a href="#val-(<<>>)" class="anchor"></a><code><span><span class="keyword">val</span> (<<>>) : | ||
<span><span><span>(<span class="type-var">'ai</span>, <span class="type-var">'bi</span>, <span class="type-var">'bo</span>, <span class="type-var">'ao</span>)</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">-></span></span> | ||
<span><span><span>(<span class="type-var">'bi</span>, <span class="type-var">'ci</span>, <span class="type-var">'co</span>, <span class="type-var">'bo</span>)</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">-></span></span> | ||
<span><span>(<span class="type-var">'ai</span>, <span class="type-var">'ci</span>, <span class="type-var">'co</span>, <span class="type-var">'ao</span>)</span> <a href="../index.html#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>ma <<>> mb</code> is an infix <code>compose</code> operator.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-(<&>)"><a href="#val-(<&>)" class="anchor"></a><code><span><span class="keyword">val</span> (<&>) : <span><span><span>(<span class="type-var">'ai</span>, <span class="type-var">'bi</span>, <span class="type-var">'bo</span>, <span class="type-var">'ao</span>)</span> <a href="../index.html#type-t">t</a></span> <span class="arrow">-></span></span> <span><span>(<span><span class="type-var">'bi</span> <span class="arrow">-></span></span> <span><span class="type-var">'bo</span> <a href="../argument-1-M/index.html#type-t">M.t</a></span>)</span> <span class="arrow">-></span></span> <span><span class="type-var">'ai</span> <span class="arrow">-></span></span> <span><span class="type-var">'ao</span> <a href="../argument-1-M/index.html#type-t">M.t</a></span></span></code></div><div class="spec-doc"><p><code>ma <&> mb</code> is an infix <code>terminate</code> operator.</p></div></div></div></body></html> |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>M (middleware.Middleware.Make.M)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.0"/><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">middleware</a> » <a href="../../index.html">Middleware</a> » <a href="../index.html">Make</a> » M</nav><header class="odoc-preamble"><h1>Parameter <code><span>Make.M</span></code></h1></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-map"><a href="#val-map" class="anchor"></a><code><span><span class="keyword">val</span> map : <span><span>(<span><span class="type-var">'a</span> <span class="arrow">-></span></span> <span class="type-var">'b</span>)</span> <span class="arrow">-></span></span> <span><span><span class="type-var">'a</span> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <span><span class="type-var">'b</span> <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>map fn a</code> applies <code>fn</code> to <code>a</code>, producing a <code>'b t</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-bind"><a href="#val-bind" class="anchor"></a><code><span><span class="keyword">val</span> bind : <span><span><span class="type-var">'a</span> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <span><span>(<span><span class="type-var">'a</span> <span class="arrow">-></span></span> <span><span class="type-var">'b</span> <a href="#type-t">t</a></span>)</span> <span class="arrow">-></span></span> <span><span class="type-var">'b</span> <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>bind fn a</code> sequentially composes <code>a</code> with <code>fn</code>, passing the result of the first action to <code>fn</code>.</p></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 class="spec-doc"><p><code>return a</code> injects the value <code>a</code> into the monadic type.</p></div></div></div></body></html> |
Oops, something went wrong.