Merge branch 'main' into 'main'

Non-lazy `MonadPlus.delay` leads to stack overflow

See merge request gasche/mpri-2.4-project-2023-2024!1
This commit is contained in:
Gabriel Scherer 2024-01-16 14:35:35 +00:00
commit e76e32347f
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ let bind (sa : 'a t) (f : 'a -> 'b t) : 'b t =
Utils.not_yet "MRand.bind" (sa, f)
let delay (f : unit -> 'a t) : 'a t =
Utils.not_yet "MRand.delay" (f ())
Utils.not_yet "MRand.delay" f
let sum (li : 'a t list) : 'a t =
Utils.not_yet "MRand.sum" li

View File

@ -10,7 +10,7 @@ let bind (sa : 'a t) (f : 'a -> 'b t) : 'b t =
Utils.not_yet "MSeq.bind" (sa, f)
let delay (f : unit -> 'a t) : 'a t =
Utils.not_yet "MSeq.delay" (f ())
Utils.not_yet "MSeq.delay" f
let sum (li : 'a t list) : 'a t =
Utils.not_yet "MSeq.sum" li