Skip to content

Commit 7207b2b

Browse files
committed
fix/add type annotations to docs
1 parent 2733156 commit 7207b2b

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
@@ -144,7 +144,7 @@ let some14 =
144144

145145
(**
146146
```f#
147-
let fn : ResultT<Reader<int,Result<_,string>>> =
147+
let fn : ResultT<string, Reader<int,__>, _> =
148148
monad {
149149
let! x1 = lift ask
150150
let! x2 =
@@ -182,7 +182,7 @@ let decodeError = function
182182

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

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

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

261-
let run expr = ReaderT.run expr >> ResultT.run >> Writer.run
261+
let run expr = ReaderT.run expr >> ResultT.run >> Writer.run
262262

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

0 commit comments

Comments
 (0)