ppx_orakuda

ORakuda, Perlish string literals in OCaml
Library ppx_orakuda
val (=~) : string -> ?iflags:Pcre.irflag -> ?flags:Pcre.rflag list -> ?pos:int -> ?callout:Pcre.callout -> 'a t -> 'a option

Infix op version of exec_exn.

val case : string -> [> `Error of string ]
val (==>) : 'a t -> ( 'a -> 'b ) -> [< `Ok of 'b | `Error of string ] -> [> `Ok of 'b | `Error of string ]
val default : ( unit -> 'b ) -> [< `Ok of 'b | `Error of string ] -> 'b

case <string> |> ( m|pat|m ==> fun r -> ... ) |> ( m|pat|m ==> fun r -> ... ) ... |> default (fun () -> ... )