Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charles Southerland
frama-c
Commits
163cab7c
Commit
163cab7c
authored
5 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[server] additions in data documentation
parent
476c8b37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/server/data.mli
+8
-1
8 additions, 1 deletion
src/plugins/server/data.mli
with
8 additions
and
1 deletion
src/plugins/server/data.mli
+
8
−
1
View file @
163cab7c
...
@@ -49,7 +49,12 @@
...
@@ -49,7 +49,12 @@
documentation and returns an OCaml value containing the resulting
documentation and returns an OCaml value containing the resulting
datatype module.
datatype module.
The same mechanism is used in modules [States] and [Request].
Hence, in addition to module signature [Data.S] for values,
there is also a polymorphic type ['a Data.data] for module
values carrying a data module with type [t = 'a].
The same mechanism is used throughout modules [States] and [Request]
each time a JSON record or tag is needed.
*)
*)
(* -------------------------------------------------------------------------- *)
(* -------------------------------------------------------------------------- *)
...
@@ -58,6 +63,7 @@ type json = Json.t
...
@@ -58,6 +63,7 @@ type json = Json.t
val
page
:
Doc
.
page
(** Documentation page for general purpose data types *)
val
page
:
Doc
.
page
(** Documentation page for general purpose data types *)
val
pretty
:
Format
.
formatter
->
json
->
unit
val
pretty
:
Format
.
formatter
->
json
->
unit
(** Datatype module signature *)
module
type
S
=
module
type
S
=
sig
sig
type
t
type
t
...
@@ -75,6 +81,7 @@ sig
...
@@ -75,6 +81,7 @@ sig
val
descr
:
Markdown
.
text
val
descr
:
Markdown
.
text
end
end
(** Polymorphic data value *)
type
'
a
data
=
(
module
S
with
type
t
=
'
a
)
type
'
a
data
=
(
module
S
with
type
t
=
'
a
)
(* -------------------------------------------------------------------------- *)
(* -------------------------------------------------------------------------- *)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment