aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gaëtan Gilbert <gaetan.gilbert@ens-lyon.fr>2017-08-31 16:04:18 +0200
committerGravatar Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net>2018-07-03 13:36:05 +0200
commit461bdc02eb7e879fac3217e127e565b2623aec45 (patch)
tree428d22e1e38bd3f550703bcabda3c20121e0dbed
parentebfefb3dbea6770df1e860b5852e59d6852d161f (diff)
Util.Empty: implement using polymorphic record.
-rw-r--r--lib/util.ml4
1 files changed, 2 insertions, 2 deletions
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 *)