Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
ded85826
Commit
ded85826
authored
14 years ago
by
Andrei Paskevich
Committed by
François Bobot
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
simplify module specifications
parent
546bdf13
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/core/ident.mli
+1
-1
1 addition, 1 deletion
src/core/ident.mli
src/util/stdlib.ml
+4
-1
4 additions, 1 deletion
src/util/stdlib.ml
src/util/stdlib.mli
+4
-3
4 additions, 3 deletions
src/util/stdlib.mli
src/util/util.mli
+2
-2
2 additions, 2 deletions
src/util/util.mli
with
11 additions
and
7 deletions
src/core/ident.mli
+
1
−
1
View file @
ded85826
...
...
@@ -42,7 +42,7 @@ and origin =
|
Fresh
module
Mid
:
Map
.
S
with
type
key
=
ident
module
Sid
:
M
ap
.
SetS
with
type
elt
=
ident
and
type
t
=
unit
Mid
.
t
module
Sid
:
M
id
.
SetS
module
Hid
:
Hashtbl
.
S
with
type
key
=
ident
val
id_equal
:
ident
->
ident
->
bool
...
...
This diff is collapsed.
Click to expand it.
src/util/stdlib.ml
+
4
−
1
View file @
ded85826
...
...
@@ -93,7 +93,8 @@ module type S =
val
mapi_fold
:
(
key
->
'
a
->
'
acc
->
'
acc
*
'
b
)
->
'
a
t
->
'
acc
->
'
acc
*
'
b
t
module
Set
:
SetS
with
type
elt
=
key
and
type
t
=
unit
t
module
type
SetS
=
SetS
with
type
elt
=
key
and
type
t
=
unit
t
module
Set
:
SetS
end
...
...
@@ -469,6 +470,8 @@ module Make(Ord: OrderedType) = struct
let
acc
,
r'
=
mapi_fold
f
r
acc
in
acc
,
Node
(
l'
,
v
,
d'
,
r'
,
h
)
module
type
SetS
=
SetS
with
type
elt
=
key
and
type
t
=
unit
t
module
Set
=
struct
type
elt
=
Ord
.
t
...
...
This diff is collapsed.
Click to expand it.
src/util/stdlib.mli
+
4
−
3
View file @
ded85826
...
...
@@ -344,14 +344,15 @@ module type S =
(
key
->
'
a
->
'
acc
->
'
acc
*
'
b
)
->
'
a
t
->
'
acc
->
'
acc
*
'
b
t
(** fold and map at the same time *)
module
Set
:
SetS
with
type
elt
=
key
and
type
t
=
unit
t
module
type
SetS
=
SetS
with
type
elt
=
key
and
type
t
=
unit
t
module
Set
:
SetS
end
(** Output signature of the functor {!Map.Make}. *)
module
Make
(
Ord
:
OrderedType
)
:
S
with
type
key
=
Ord
.
t
and
type
Set
.
elt
=
Ord
.
t
module
Make
(
Ord
:
OrderedType
)
:
S
with
type
key
=
Ord
.
t
(** Functor building an implementation of the map/set structure
given a totally ordered type. *)
...
...
This diff is collapsed.
Click to expand it.
src/util/util.mli
+
2
−
2
View file @
ded85826
...
...
@@ -120,14 +120,14 @@ module OrderedHashList (X : Tagged) : OrderedHash with type t = X.t list
module
StructMake
(
X
:
Tagged
)
:
sig
module
M
:
Map
.
S
with
type
key
=
X
.
t
module
S
:
M
ap
.
SetS
with
type
elt
=
X
.
t
and
type
t
=
unit
M
.
t
module
S
:
M
.
SetS
module
H
:
Hashtbl
.
S
with
type
key
=
X
.
t
end
module
WeakStructMake
(
X
:
Hashweak
.
Weakey
)
:
sig
module
M
:
Map
.
S
with
type
key
=
X
.
t
module
S
:
M
ap
.
SetS
with
type
elt
=
X
.
t
and
type
t
=
unit
M
.
t
module
S
:
M
.
SetS
module
H
:
Hashtbl
.
S
with
type
key
=
X
.
t
module
W
:
Hashweak
.
S
with
type
key
=
X
.
t
end
...
...
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