fix compat with 4.02

This commit is contained in:
Simon Cruanes 2018-03-06 22:27:52 -06:00
parent 30fca7ae9e
commit 6b5735a318

View file

@ -9,15 +9,14 @@ type uchar = Uchar.t
type 'a gen = unit -> 'a option type 'a gen = unit -> 'a option
type 'a sequence = ('a -> unit) -> unit type 'a sequence = ('a -> unit) -> unit
type t = string let equal (a:string) b = Pervasives.(=) a b
let hash : string -> int = Hashtbl.hash
let pp = Format.pp_print_string
include String
let to_string x = x let to_string x = x
let pp = Format.pp_print_string
let equal = String.equal
let compare = String.compare
let hash : t -> int = Hashtbl.hash
(** State for decoding *) (** State for decoding *)
module Dec = struct module Dec = struct
type t = { type t = {