Skip to content

Commit

Permalink
Document newest react safety fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-proust committed Nov 2, 2021
1 parent 4b5ef74 commit caa590f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -12,6 +12,9 @@
the behavior of Lwt_io.with_temp_dir following symlinks to
directories on Win32. (#883, Antonin Décimo)

* Lwt_react.S.l[2-6]_s used polymorphic equality which could cause errors when
handling functional values. (#893, Jérôme Vouillon)

====== Additions ======

* Lwt_bytes.blit_from_string: string complement of Lwt_bytes.blit (#882, Hugo Heuzard).
Expand Down
2 changes: 2 additions & 0 deletions src/react/lwt_react.cppo.ml
Expand Up @@ -455,6 +455,8 @@ module S = struct
map_s ?eq f s1

let l2_s ?eq f s1 s2 =
(* Some details about the use of [fun _ _ -> false] on
https://github.com/ocsigen/lwt/pull/893#pullrequestreview-783083496 *)
map_s ?eq (fun (x1, x2) -> f x1 x2) (l2 ~eq:(fun _ _ -> false) (fun x1 x2 -> (x1, x2)) s1 s2)

let l3_s ?eq f s1 s2 s3 =
Expand Down

0 comments on commit caa590f

Please sign in to comment.