diff options
| author | Gaëtan Gilbert | 2017-08-31 16:04:18 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2018-07-03 13:36:05 +0200 |
| commit | 461bdc02eb7e879fac3217e127e565b2623aec45 (patch) | |
| tree | 428d22e1e38bd3f550703bcabda3c20121e0dbed /lib/util.ml | |
| parent | ebfefb3dbea6770df1e860b5852e59d6852d161f (diff) | |
Util.Empty: implement using polymorphic record.
Diffstat (limited to 'lib/util.ml')
| -rw-r--r-- | lib/util.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.ml b/lib/util.ml index 7d7d380b26..38d73d3453 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 *) |
