From 461bdc02eb7e879fac3217e127e565b2623aec45 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Thu, 31 Aug 2017 16:04:18 +0200 Subject: Util.Empty: implement using polymorphic record. --- lib/util.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/util.ml') diff --git a/lib/util.ml b/lib/util.ml index 7d7d380b2..38d73d345 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -38,8 +38,8 @@ let is_blank = function module Empty = struct - type t - let abort (x : t) = assert false + type t = { abort : 'a. 'a } + let abort (x : t) = x.abort end (* Strings *) -- cgit v1.2.3