-
Notifications
You must be signed in to change notification settings - Fork 96
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
e0068cb
commit a78cc2b
Showing
4 changed files
with
118 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,22 @@ | ||
(**/**) | ||
module For_generated_code : sig | ||
(*_ don't use this by hand, it is only meant for ppx_fields_conv *) | ||
|
||
type ('perm, 'record, 'field) t = | ||
{ force_variance : 'perm -> unit | ||
; name : string | ||
; setter : ('record -> 'field -> unit) option | ||
; getter : 'record -> 'field | ||
; fset : 'record -> 'field -> 'record | ||
} | ||
|
||
val opaque_identity : 'a -> 'a | ||
end | ||
(**/**) | ||
|
||
(**['record] is the type of the record. ['field] is the type of the | ||
values stored in the record field with name [name]. ['perm] is a way | ||
of restricting the operations that can be used. *) | ||
type ('perm, 'record, 'field) t_with_perm = | ||
| Field of ('perm, 'record, 'field) For_generated_code.t | ||
[@@unboxed] |
47 changes: 47 additions & 0 deletions
47
test/html/expect/test_package+ml/Stop_dead_link_doc/index.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,47 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title> | ||
Stop_dead_link_doc (test_package+ml.Stop_dead_link_doc) | ||
</title> | ||
<link rel="stylesheet" href="../../odoc.css"> | ||
<meta charset="utf-8"> | ||
<meta name="generator" content="odoc %%VERSION%%"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<script src="../../highlight.pack.js"></script> | ||
<script> | ||
hljs.initHighlightingOnLoad(); | ||
</script> | ||
</head> | ||
<body> | ||
<nav> | ||
<a href="../index.html">Up</a> – <a href="../index.html">test_package+ml</a> » Stop_dead_link_doc | ||
</nav> | ||
<header> | ||
<h1> | ||
Module <code>Stop_dead_link_doc</code> | ||
</h1> | ||
</header> | ||
<div class="content"> | ||
<div> | ||
<div class="spec type" id="type-t_with_perm"> | ||
<a href="#type-t_with_perm" class="anchor"></a><code><span class="keyword">type</span> <span>('perm, 'record, 'field) t_with_perm</span> = </code> | ||
<table> | ||
<tbody> | ||
<tr id="type-t_with_perm.Field" class="anchored"> | ||
<td class="def variant constructor"> | ||
<a href="#type-t_with_perm.Field" class="anchor"></a><code>| <span class="constructor">Field</span> <span class="keyword">of</span> <span><span>(<span class="type-var">'perm</span>, <span class="type-var">'record</span>, <span class="type-var">'field</span>)</span> <a href="For_generated_code/index.html#type-t">For_generated_code.t</a></span></code> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div> | ||
<p> | ||
<code>'record</code> is the type of the record. <code>'field</code> is the type of the values stored in the record field with name <code>name</code>. <code>'perm</code> is a way of restricting the operations that can be used. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
48 changes: 48 additions & 0 deletions
48
test/html/expect/test_package+re/Stop_dead_link_doc/index.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,48 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title> | ||
Stop_dead_link_doc (test_package+re.Stop_dead_link_doc) | ||
</title> | ||
<link rel="stylesheet" href="../../odoc.css"> | ||
<meta charset="utf-8"> | ||
<meta name="generator" content="odoc %%VERSION%%"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<script src="../../highlight.pack.js"></script> | ||
<script> | ||
hljs.initHighlightingOnLoad(); | ||
</script> | ||
</head> | ||
<body> | ||
<nav> | ||
<a href="../index.html">Up</a> – <a href="../index.html">test_package+re</a> » Stop_dead_link_doc | ||
</nav> | ||
<header> | ||
<h1> | ||
Module <code>Stop_dead_link_doc</code> | ||
</h1> | ||
</header> | ||
<div class="content"> | ||
<div> | ||
<div class="spec type" id="type-t_with_perm"> | ||
<a href="#type-t_with_perm" class="anchor"></a><code><span class="keyword">type</span> t_with_perm('perm, 'record, 'field) = </code> | ||
<table> | ||
<tbody> | ||
<tr id="type-t_with_perm.Field" class="anchored"> | ||
<td class="def variant constructor"> | ||
<a href="#type-t_with_perm.Field" class="anchor"></a><code>| <span class="constructor">Field</span>(<a href="For_generated_code/index.html#type-t">For_generated_code.t</a><span>(<span class="type-var">'perm</span>, <span class="type-var">'record</span>, <span class="type-var">'field</span>)</span>)</code> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<code>;</code> | ||
</div> | ||
<div> | ||
<p> | ||
<code>'record</code> is the type of the record. <code>'field</code> is the type of the values stored in the record field with name <code>name</code>. <code>'perm</code> is a way of restricting the operations that can be used. | ||
</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