forked from facebookarchive/nuclide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request facebookarchive#162 from yunxing/reasonfmt
Add an option in reasonfmt: "-heuristics-file"
- Loading branch information
Showing
7 changed files
with
154 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
And | ||
TupleConstructor | ||
Or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Some (1, 2, 3) | ||
|
||
type bcd = TupleConstructor of (int * int) | MultiArgumentsConstructor of int * int | ||
|
||
let a = TupleConstructor(1, 2) | ||
let b = MultiArgumentsConstructor(1, 2) | ||
|
||
module Test = struct | ||
type a = | And of (int * int) | Or of (int * int) | ||
end;; | ||
|
||
let _ = Test.And (1, 2) | ||
let _ = Test.Or (1, 2) | ||
let _ = Some 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Some (1, 2, 3); | ||
|
||
type tm = | TupleConstructor of (int, int) | MultiArgumentsConstructor of int int; | ||
|
||
let a = TupleConstructor (1, 2); | ||
|
||
let b = MultiArgumentsConstructor 1 2; | ||
|
||
let module Test = {type a = | And of (int, int) | Or of (int, int);}; | ||
|
||
Test.And (1, 2); | ||
|
||
Test.Or (1, 2); | ||
|
||
Some (1, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters