A collection of experiments, more or less organized.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Start handling `kind` (for validation inspection)

xvw 7c7e83a6 fa6f2ac2

+40
+1
dune-project
··· 16 16 (allow_empty) 17 17 (depends 18 18 (ocaml (>= 5.4.0)) 19 + (mdx :with-test) 19 20 (utop :with-dev-setup) 20 21 (ocamlformat :with-dev-setup) 21 22 (ocp-indent :with-dev-setup)
+38
lib/pidgin/kind.ml
··· 1 + type t = 2 + | Any 3 + | Or of t * t 4 + | Null 5 + | Unit 6 + | Bool 7 + | Int 8 + | Int64 9 + | Float 10 + | Char 11 + | String 12 + | Pair of t * t 13 + | List of t 14 + | Constr of string * t option 15 + | Record of (string * t) list 16 + 17 + let rec to_string = function 18 + | Any -> "any" 19 + | Null -> "null" 20 + | Unit -> "unit" 21 + | Bool -> "bool" 22 + | Int -> "int" 23 + | Int64 -> "int64" 24 + | Float -> "float" 25 + | Char -> "char" 26 + | String -> "string" 27 + | Or (a, b) -> to_string a ^ " | " ^ to_string b 28 + | Pair (a, b) -> to_string a ^ " * " ^ to_string b 29 + | List xs -> "list(" ^ to_string xs ^ ")" 30 + | Constr (k, Some v) -> "#" ^ k ^ "(" ^ to_string v ^ ")" 31 + | Constr (k, None) -> "#" ^ k 32 + | Record _ -> assert false 33 + ;; 34 + 35 + (* module S = Set.Make (struct *) 36 + (* type nonrec t = t *) 37 + (* let compare *) 38 + (* end) *)
+1
souk.opam
··· 11 11 depends: [ 12 12 "dune" {>= "3.21"} 13 13 "ocaml" {>= "5.4.0"} 14 + "mdx" {with-test} 14 15 "utop" {with-dev-setup} 15 16 "ocamlformat" {with-dev-setup} 16 17 "ocp-indent" {with-dev-setup}