Commits

camlspotter committed 83272aa

type change of (=~)

Comments (0)

Files changed (3)

+1.0.3
+-----------
+
+* (INCOMPATIBLE) Regexp.Infix.(=~) now returns 'a option instead of 'a.
+
 1.0.2
 -----------
 
-* Fixed regexp replacement flag parsing (s/.../.../g) and other special char handling
+- Fixed regexp replacement flag parsing (s/.../.../g) and other special char handling
 
 module Infix = struct
   let (=~) s ?iflags ?flags ?pos ?callout rex = 
-    exec_exn rex ?iflags ?flags ?pos ?callout s;;
+    exec rex ?iflags ?flags ?pos ?callout s
+  ;;
 end
 
 let build_case rex f s =
     -> ?pos:int 
     -> ?callout:callout 
     -> 'a t 
-    -> 'a 
+    -> 'a option
   (** Infix op version of [exec_exn]. *)
 end