more fixes
This commit is contained in:
parent
8ec7533db1
commit
01e62889e2
4 changed files with 20 additions and 29 deletions
|
|
@ -11,4 +11,4 @@ let ( let^ ) o f =
|
|||
| Error e -> Error (Format.sprintf "db error: %s" (Caqti_error.show e))
|
||||
| Ok x -> f x
|
||||
|
||||
let ( let* ) o f = match o with Error e -> Error e | Ok x -> f x
|
||||
let ( let* ) o f = Result.fold ~ok:f ~error:Result.error o
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue