We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Msg to fun (
1 parent 3d369f3 commit 8eaedb5Copy full SHA for 8eaedb5
lib/block.ml
@@ -27,7 +27,7 @@ let locate_error_msg ~loc s =
27
28
let locate_errors ~loc r =
29
Result.map_error
30
- (fun l -> List.map (function `Msg m -> `Msg (locate_error_msg ~loc m)) l)
+ (fun l -> List.map (fun (`Msg m) -> `Msg (locate_error_msg ~loc m)) l)
31
r
32
33
module Header = struct
lib/util.ml
@@ -24,7 +24,7 @@ module Result = struct
24
| Ok x -> f x
25
| Error l ->
26
List.iter
- (function `Msg m -> Printf.eprintf "[mdx] Fatal error: %s\n" m)
+ (fun (`Msg m) -> Printf.eprintf "[mdx] Fatal error: %s\n" m)
l;
1
end
0 commit comments