mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
2 lines
No EOL
5.3 KiB
HTML
2 lines
No EOL
5.3 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Sidekick_th_data (sidekick.Sidekick_th_data)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">sidekick</a> » Sidekick_th_data</nav><h1>Module <code>Sidekick_th_data</code></h1><p>Theory for datatypes.</p></header><dl><dt class="spec type" id="type-data_view"><a href="#type-data_view" class="anchor"></a><code><span class="keyword">type</span> <span>('c, 't) data_view</span></code><code> = </code><table class="variant"><tr id="type-data_view.T_cstor" class="anchored"><td class="def constructor"><a href="#type-data_view.T_cstor" class="anchor"></a><code>| </code><code><span class="constructor">T_cstor</span> <span class="keyword">of</span> <span class="type-var">'c</span> * <span><span class="type-var">'t</span> <a href="../Sidekick_util/IArray/index.html#type-t">Sidekick_util.IArray.t</a></span></code></td></tr><tr id="type-data_view.T_select" class="anchored"><td class="def constructor"><a href="#type-data_view.T_select" class="anchor"></a><code>| </code><code><span class="constructor">T_select</span> <span class="keyword">of</span> <span class="type-var">'c</span> * int * <span class="type-var">'t</span></code></td></tr><tr id="type-data_view.T_is_a" class="anchored"><td class="def constructor"><a href="#type-data_view.T_is_a" class="anchor"></a><code>| </code><code><span class="constructor">T_is_a</span> <span class="keyword">of</span> <span class="type-var">'c</span> * <span class="type-var">'t</span></code></td></tr><tr id="type-data_view.T_other" class="anchored"><td class="def constructor"><a href="#type-data_view.T_other" class="anchor"></a><code>| </code><code><span class="constructor">T_other</span> <span class="keyword">of</span> <span class="type-var">'t</span></code></td></tr></table></dt><dd><p>Datatype-oriented view of terms. <code>'c</code> is the representation of constructors <code>'t</code> is the representation of terms</p></dd></dl><dl><dt class="spec type" id="type-data_ty_view"><a href="#type-data_ty_view" class="anchor"></a><code><span class="keyword">type</span> <span>('c, 'ty) data_ty_view</span></code><code> = </code><table class="variant"><tr id="type-data_ty_view.Ty_arrow" class="anchored"><td class="def constructor"><a href="#type-data_ty_view.Ty_arrow" class="anchor"></a><code>| </code><code><span class="constructor">Ty_arrow</span> <span class="keyword">of</span> <span><span class="type-var">'ty</span> Iter.t</span> * <span class="type-var">'ty</span></code></td></tr><tr id="type-data_ty_view.Ty_app" class="anchored"><td class="def constructor"><a href="#type-data_ty_view.Ty_app" class="anchor"></a><code>| </code><code><span class="constructor">Ty_app</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-data_ty_view.args" class="anchored"><td class="def field"><a href="#type-data_ty_view.args" class="anchor"></a><code>args : <span><span class="type-var">'ty</span> Iter.t</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-data_ty_view.Ty_data" class="anchored"><td class="def constructor"><a href="#type-data_ty_view.Ty_data" class="anchor"></a><code>| </code><code><span class="constructor">Ty_data</span> <span class="keyword">of</span> </code><code>{</code><table class="record"><tr id="type-data_ty_view.cstors" class="anchored"><td class="def field"><a href="#type-data_ty_view.cstors" class="anchor"></a><code>cstors : <span class="type-var">'c</span>;</code></td></tr></table><code>}</code></td></tr><tr id="type-data_ty_view.Ty_other" class="anchored"><td class="def constructor"><a href="#type-data_ty_view.Ty_other" class="anchor"></a><code>| </code><code><span class="constructor">Ty_other</span></code></td></tr></table></dt><dd><p>View of types in a way that is directly useful for the theory of datatypes</p></dd></dl><dl><dt class="spec module-type" id="module-type-ARG"><a href="#module-type-ARG" class="anchor"></a><code><span class="keyword">module</span> <span class="keyword">type</span> <a href="module-type-ARG/index.html">ARG</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Argument to the functor</p></dd></dl><div class="spec module-type" id="module-type-S"><a href="#module-type-S" class="anchor"></a><code><span class="keyword">module</span> <span class="keyword">type</span> <a href="module-type-S/index.html">S</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Make"><a href="#module-Make" class="anchor"></a><code><span class="keyword">module</span> <a href="Make/index.html">Make</a> : <span class="keyword">functor</span> (<a href="Make/argument-1-A/index.html">A</a> : <a href="index.html#module-type-ARG">ARG</a>) <span>-></span> <a href="index.html#module-type-S">S</a> <span class="keyword">with</span> <span class="keyword">module</span> <a href="Make/A/index.html">A</a> = <a href="Make/index.html#argument-1-A">A</a></code></div></div></body></html> |