-
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.
Some notes: 1. All type variables are identifier(Ident.ident) to get readable names 2. Definition `mod_type` is removed to "type cluster" of 3. In check.ml, indexes are synced between typed expression, type and unifier
- Loading branch information
1 parent
aec9009
commit d8e0304
Showing
11 changed files
with
531 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
type t [@@deriving sexp, compare] | ||
val compare_string : String.t -> String.t -> int | ||
|
||
val same : t -> t -> bool | ||
val compare_int : int -> int -> int | ||
|
||
val from : string -> t | ||
type ident [@@deriving sexp] | ||
|
||
val create : hint:string -> t | ||
type t = ident [@@deriving compare] | ||
|
||
val rename : t -> t | ||
val name_of_ident : ident -> string | ||
|
||
val to_string : t -> string | ||
val index_of_ident : ident -> int | ||
|
||
val mk_ident : int -> string -> ident | ||
|
||
val same : ident -> ident -> bool | ||
|
||
val from : string -> ident | ||
|
||
val create : hint:string -> ident | ||
|
||
val rename : ident -> ident | ||
|
||
val to_string : ident -> string | ||
|
||
val refresh : unit -> unit |
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
Oops, something went wrong.