Skip to content

Commit

Permalink
Deprecate UIDENT Ptyp_package syntax for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Iwan committed Jun 2, 2018
1 parent ae61ef5 commit d1698da
Show file tree
Hide file tree
Showing 4 changed files with 3,331 additions and 3,466 deletions.
8 changes: 0 additions & 8 deletions formatTest/unit_tests/expected_output/firstClassModules.re
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ module Modifier = (
val Db.Hashtbl.create():
Db.Sig with type t = Mods.t
);
module Modifier = (
val Db.Hashtbl.create():
Db.Sig with type t = Mods.t
);
module Modifier = (val Db.Hashtbl.create());
module Modifier = (
val Db.Hashtbl.create():
Expand All @@ -38,11 +34,7 @@ module T = (

module Three = (val three: X_int);

/* Uppercase identifier makes it clear that this is a package type */
let thing: module Thing = (module MyModule);
let thing: module Thing = (module MyModule);
let thing: module Foo.Bar.Thing =
(module MyModule);
let thing: module Foo.Bar.Thing =
(module MyModule);

Expand Down
4 changes: 0 additions & 4 deletions formatTest/unit_tests/input/firstClassModules.re
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module Modifier = (val ((Db.Hashtbl.create ()): (module Db.Sig with type t = Mods.t)));
module Modifier = (val (Db.Hashtbl.create (): Db.Sig with type t = Mods.t));
module Modifier = (val (Db.Hashtbl.create ()): (Db.Sig with type t = Mods.t));
module Modifier = (val Db.Hashtbl.create (): Db.Sig with type t = Mods.t);
module Modifier = (val Db.Hashtbl.create ());
Expand All @@ -15,10 +14,7 @@ module T = (val (module FirstClass): myLowercaseModule);

module Three = (val three: X_int);

/* Uppercase identifier makes it clear that this is a package type */
let thing: Thing = (module MyModule);
let thing: module Thing = (module MyModule);
let thing: Foo.Bar.Thing = (module MyModule);
let thing: module Foo.Bar.Thing = (module MyModule);

let smallThing: (module lowercase) = (module Mod);
Expand Down
Loading

0 comments on commit d1698da

Please sign in to comment.