File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ module GenericBuilders =
6868 type StrictBuilder < '``monad < 't > ``> () =
6969 inherit Builder< '`` monad<'t> `` > ()
7070 member inline _.Delay ( [<InlineIfLambda>] expr ) = expr : unit -> '`` Monad<'T> ``
71- member inline _.Run ( [<InlineIfLambda>] f ) = f () : '`` monad <'t>``
71+ member inline _.Run ( [<InlineIfLambda>] f ) = Delay.Invoke f : '`` Monad <'t>``
7272 member inline _.TryWith ( [<InlineIfLambda>] expr , [<InlineIfLambda>] handler ) = TryWith.InvokeForStrict expr handler : '`` Monad<'T> ``
7373 member inline _.TryFinally ( [<InlineIfLambda>] expr , [<InlineIfLambda>] compensation ) = TryFinally.InvokeForStrict expr compensation : '`` Monad<'T> ``
7474
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ module BasicTests =
7171 Assert.AreEqual ( 5 , five)
7272
7373
74- // Compile tests
74+ (* // Compile tests
7575 let binds () =
7676 let res1 = SeqT [|seq [1..4] |] >>= fun x -> SeqT [|seq [x * 2] |]
7777 let res2 = SeqT.hoist [1..4] >>= (fun x -> SeqT (Task.FromResult (seq [x * 2])))
@@ -97,7 +97,7 @@ module BasicTests =
9797 let x = (+) <!> SeqT None <*> SeqT.ofSeq [1;2;3;4]
9898 let y = (+) <!> SeqT (async.Return (seq [1])) <*> SeqT (async.Return (seq [2]))
9999 let z = (+) <!> SeqT (Task.FromResult (seq [1])) <*> SeqT (Task.FromResult (seq [2]))
100- ()
100+ () *)
101101
102102 let monadTransOps () =
103103 let fn : SeqT < Reader < int , bool >, int > =
You can’t perform that action at this time.
0 commit comments