This file contains hidden or 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
(* (c) Romain Calascibetta *) | |
[@@@warning "-42"] | |
[@@@warning "-44"] | |
[@@@warning "-45"] | |
type ('l, 'r) either = | |
| L of 'l | |
| R of 'r |
This file contains hidden or 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
let () = Printexc.record_backtrace true | |
type ('l, 'r) either = | |
| L of 'l | |
| R of 'r | |
type ('a, 'b) cpl = T of 'a * 'b | |
module Eq = | |
struct |
This file contains hidden or 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 Eq = | |
struct | |
type (_, _) refl = Refl : ('a, 'a) refl | |
let symm | |
: type m n. (m, n) refl -> (n, m) refl | |
= fun Refl -> Refl | |
let trans | |
: type m n p. (m, n) refl -> (n, p) refl -> (m, p) refl |
This file contains hidden or 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 List = | |
struct | |
include List | |
let empty = [] | |
let cons x r = x :: r | |
end | |
type z = Z | |
type +'a s = S |
This file contains hidden or 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 type BLIT = | |
sig | |
type t | |
val blit : t -> int -> t -> int -> int -> unit | |
val blit_string : string -> int -> t -> int -> int -> unit | |
end | |
open Bigarray |
This file contains hidden or 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 Buffer = Rb.Bytes | |
module Make (E : sig type err end) = | |
struct | |
type s = Complete | Incomplete | |
let pp fmt = function | |
| Complete -> Format.fprintf fmt "Complete" | |
| Incomplete -> Format.fprintf fmt "Incomplete" |
NewerOlder