diff options
author | Sébastien <sebastien@chimrod.com> | 2017-11-06 19:54:23 +0100 |
---|---|---|
committer | Sébastien <sebastien@chimrod.com> | 2017-11-06 19:54:23 +0100 |
commit | 50c16c8fc79d349f9db9d7975d1ae4e57050b648 (patch) | |
tree | a2dfe4b3748ff3c70da61d28e0fdcebfcab8e305 | |
parent | e82962fe44c35b5ae6e6a68e8719e5d77aaf9e55 (diff) |
Correction
-rwxr-xr-x | scTypes.ml | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -90,6 +90,8 @@ module DataFormat = struct | Bool -> false | String -> UTF8.empty + type ('a, 'b) equality = Eq : ('a, 'a) equality + let compare_format: type a b. a dataFormat -> b dataFormat -> (a, b) equality = fun a b -> begin match a, b with | Date, Date -> Eq @@ -218,8 +220,6 @@ module Refs = struct type refContent = | C: 'a content -> refContent [@@unboxed] - type ('a, 'b) equality = Eq : ('a, 'a) equality - (** Add one element in a typed list. The function will raise Error.TypeError if the elements does not match @@ -232,7 +232,7 @@ module Refs = struct | Some (Error x) -> raise x | Some (Result r) -> let Type.Value (format', element) = Type.get_content r in - let Eq = DataFormat.compare_format format format' in + let DataFormat.Eq = DataFormat.compare_format format format' in let new_format = if (DataFormat.priority format) > (DataFormat.priority format') then format else |