Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Why3
why3
Commits
46a9fc15
Commit
46a9fc15
authored
Jan 31, 2019
by
François Bobot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes empty functor parameters in OCaml extraction
parent
91413f34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/mlw/ocaml_printer.ml
src/mlw/ocaml_printer.ml
+1
-2
No files found.
src/mlw/ocaml_printer.ml
View file @
46a9fc15
...
...
@@ -689,8 +689,7 @@ module Print = struct
let
extract_functor_args
info
dl
=
let
rec
extract
args
=
function
(* FIXME remove empty args? *)
(* | Dmodule (_, []) :: dl -> extract args dl *)
|
Dmodule
(
_
,
[]
)
::
dl
->
extract
args
dl
|
Dmodule
(
x
,
dlx
)
::
dl
when
is_signature
info
dlx
->
extract
((
x
,
dlx
)
::
args
)
dl
|
dl
->
List
.
rev
args
,
dl
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment