Skip to content

Commit

Permalink
Use strict monad in sample (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
gusty authored Sep 16, 2023
1 parent 1283d35 commit 06f04c8
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 06f04c8

Please sign in to comment.