Skip to content

Commit

Permalink
Use strict monad in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
gusty authored Sep 16, 2023
1 parent 1283d35 commit 9ff1420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FSharpPlus.Docs/Samples/Learn You a Haskell.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ let loadedCoin = Prob [(Heads, 0.1); (Tails, 0.9)]
// Prob [(false, 0.025); (false, 0.225); (false, 0.025); (false, 0.225);
// (false, 0.025); (false, 0.225); (false, 0.025); (true, 0.225)]
let flipThree : Prob<bool> =
monad {
monad' {
let! a = coin
let! b = coin
let! c = loadedCoin
Expand Down

0 comments on commit 9ff1420

Please sign in to comment.