-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove support for tuples and variants
- Loading branch information
1 parent
a3fbc94
commit f916c96
Showing
14 changed files
with
7 additions
and
372 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
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
let rec to_basic : t -> Basic.t = function | ||
| (`Null | `Bool _ | `Int _ | `Float _ | `String _) as x -> x | ||
| `Intlit s -> `String s | ||
| `List l | `Tuple l -> `List (List.rev (List.rev_map to_basic l)) | ||
| `List l -> `List (List.rev (List.rev_map to_basic l)) | ||
| `Assoc l -> | ||
`Assoc (List.rev (List.rev_map (fun (k, v) -> (k, to_basic v)) l)) | ||
| `Variant (k, None) -> `String k | ||
| `Variant (k, Some v) -> `List [ `String k; to_basic v ] |
Oops, something went wrong.