From 697fea465ddf2ab552cb98696645aa7ba6f8565b Mon Sep 17 00:00:00 2001 From: Rizo I Date: Mon, 5 Apr 2021 14:28:51 +0100 Subject: [PATCH] (::) constructor fix for latest OCaml versions. --- hlist.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hlist.ml b/hlist.ml index 14059ae..41ff6c0 100644 --- a/hlist.ml +++ b/hlist.ml @@ -1,7 +1,7 @@ module HList = struct type (_, _) hlist = | Empty : ('a, 'a) hlist - | :: : 'c * ('a, 'b) hlist -> ('c -> 'a, 'b) hlist + | (::) : 'c * ('a, 'b) hlist -> ('c -> 'a, 'b) hlist let cons : type a b c. c -> (a, b) hlist -> (c -> a, b) hlist = fun h tl -> h :: tl