Skip to content

Commit

Permalink
EffectBuilder.Delay (#73)
Browse files Browse the repository at this point in the history
Added Delay method to Effect computation expression builder
  • Loading branch information
oncicaradupopovici authored Apr 2, 2020
1 parent 0499e88 commit f55e9d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/NBB.Core.Effects.FSharp/Effects.fs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module EffectBuilder =
member _.ReturnFrom(value) = value
member _.Combine(eff1, eff2) = Effect.bind (fun _ -> eff2) eff1
member _.Zero() = Effect.pure' ()
member _.Delay(f) = f()


[<AutoOpen>]
Expand Down

0 comments on commit f55e9d7

Please sign in to comment.