diff options
author | Gabriel Scherer <gabriel.scherer@gmail.com> | 2014-03-20 15:21:00 +0000 |
---|---|---|
committer | Gabriel Scherer <gabriel.scherer@gmail.com> | 2014-03-20 15:21:00 +0000 |
commit | 9e410c0cfec2dcd9b1cda21050c593da55703e50 (patch) | |
tree | 6dea7a1e294e84a561fe7e7880f06d6dac46dc96 /bytecomp/lambda.ml | |
parent | 05982a5fc7a704ef6fb9ccb982b0fea25ccbab29 (diff) |
Shorten syntax for functor signatures (patch by Thomas Gazagnaire)
```
(* Optional naming of parameter implementation *)
module type X = functor (X:S) -> ...
module type X = functor (_:S) -> ...
(* shortening of functor module signatures *)
module type F = functor (X:S) -> functor (Y:S) -> ...
module type F = functor (X:S) (Y:S) -> ...
```
For consistency reasons, this commits also add shortening of functor implementations:
```
(* shortening of functor implementations *)
module F = functor (X:S) -> functor (Y:S) -> ...
module F = functor (X:S) (Y:S) -> ...
```
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14474 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'bytecomp/lambda.ml')
0 files changed, 0 insertions, 0 deletions