Commits

camlspotter  committed cd2fda3

added Overload

  • Participants
  • Parent commits cce4ed2

Comments (0)

Files changed (1)

File lib/overload.ml

+(** Overloaded values. You need poormans_overload patch *)
+
+module Int = struct
+  let (+) = (+)
+  let (-) = (-)
+  let ( * ) = ( * )
+  let (/) = (/)
+end
+
+module Float = struct
+  let (+) = (+.)
+  let (-) = (-.)
+  let ( * ) = ( *. )
+  let (/) = (/.)
+end
+
+module Option = Option