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
module Abstract_value : | |
sig | |
type t | |
val create : unit -> t | |
end = | |
struct | |
type t = unit -> unit | |
let create () = |
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
(* Generics for OCaml | |
* | |
* This is a huge hack. It doesn't work with higher-kinded types. It, well, | |
* hardly works for anything but the provided samples :-P | |
*) | |
(* Standard Generic representation types *) | |
(* Unit *) | |
type u = U | |
(* Sum types ('Plus') *) |