-
Notifications
You must be signed in to change notification settings - Fork 29
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 #47 from ejgallego/ocaml+410
[ocaml] Support for OCaml 4.10
- Loading branch information
Showing
14 changed files
with
75 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
1.7.1 | ||
----- | ||
|
||
* Support for OCaml 4.10 | ||
#47 | ||
(Emilio J. Gallego Arias) | ||
|
||
1.7.0 | ||
----- | ||
|
||
|
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 @@ | ||
let lookup_module ~loc:_ lid env = Env.lookup_module ~load:true lid env | ||
let find_type env ~loc head_id = Typetexp.find_type env loc head_id | ||
let find_modtype env ~loc head_id = Typetexp.find_modtype env loc head_id |
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 @@ | ||
let lookup_module ~loc lid env = Env.lookup_module ~loc lid env |> fst | ||
let find_type env ~loc head_id = Env.lookup_type ~loc head_id env | ||
let find_modtype env ~loc:_ head_id = Env.find_modtype_by_name head_id env |
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
File renamed without changes.
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,4 @@ | ||
type module_type_407 = Types.module_type | ||
|
||
let migrate_module_type : Types.module_type -> module_type_407 = | ||
fun x -> x |
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,11 @@ | ||
type module_type_407 = | ||
| Mty_ident of Path.t | ||
| Mty_signature of Types.signature | ||
| Mty_functor of Ident.t * Types.module_type option * Types.module_type | ||
| Mty_alias of unit * Path.t | ||
|
||
let migrate_module_type : Types.module_type -> module_type_407 = function | ||
| Mty_ident p -> Mty_ident p | ||
| Mty_signature s -> Mty_signature s | ||
| Mty_functor (i, mto, mt) -> Mty_functor (i, mto, mt) | ||
| Mty_alias p -> Mty_alias ((), p) |
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,16 @@ | ||
type module_type_407 = | ||
| Mty_ident of Path.t | ||
| Mty_signature of Types.signature | ||
| Mty_functor of Ident.t * Types.module_type option * Types.module_type | ||
| Mty_alias of unit * Path.t | ||
|
||
let migrate_module_type : Types.module_type -> module_type_407 = function | ||
| Mty_ident p -> Mty_ident p | ||
| Mty_signature s -> Mty_signature s | ||
| Mty_functor (fp, mt) -> | ||
(match fp with | ||
| Unit -> Mty_functor(Ident.create_local "_", None, mt) | ||
| Named(i,mt) -> | ||
let i = (match i with None -> Ident.create_local "_" | Some i -> i) in | ||
Mty_functor (i, Some mt, mt)) | ||
| Mty_alias p -> Mty_alias ((), p) |
5 changes: 0 additions & 5 deletions
5
src/compat/types_lt_408.ml → src/compat/types_signature_item_ge_000.ml
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
12 changes: 0 additions & 12 deletions
12
src/compat/types_ge_408.ml → src/compat/types_signature_item_ge_408.ml
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 @@ | ||
|