Skip to content

Commit 17ce830

Browse files
committed
fix/add type annotations to docs
1 parent cdbd9ff commit 17ce830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docsrc/content/abstraction-monad.fsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ let some14 =
145145

146146
(**
147147
```f#
148-
let fn : ResultT<Reader<int,Result<_,string>>> =
148+
let fn : ResultT<string, Reader<int,__>, _> =
149149
monad {
150150
let! x1 = lift ask
151151
let! x2 =
@@ -183,7 +183,7 @@ let decodeError = function
183183

184184
// Now the following functions compose the Error monad with the Async one.
185185

186-
let getValidPassword : ResultT<_> =
186+
let getValidPassword : ResultT<_, _, _> =
187187
monad {
188188
let! s = liftAsync getLine
189189
if isValid s then return s
@@ -255,11 +255,11 @@ module CombineReaderWithWriterWithResult =
255255
let! w = eitherConv divide5By 6.0
256256
let! x = eitherConv divide5By 3.0
257257
let! y = eitherConv divide5By 0.0
258-
let! z = eitherConv otherDivide5By 0.0 </catch/> (throw << (fun _ -> "Unknown error"))
258+
let! z = eitherConv otherDivide5By 0.0 </catch/> (throw << (fun (_: unit) -> "Unknown error"))
259259

260260
return (w, x, y, z) }
261261

262-
let run expr = ReaderT.run expr >> ResultT.run >> Writer.run
262+
let run expr = ReaderT.run expr >> ResultT.run >> Writer.run
263263

264264
let (_, log) = run divide DateTime.UtcNow
265265

0 commit comments

Comments
 (0)