File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ let some14 =
145
145
146
146
(**
147
147
```f#
148
- let fn : ResultT<Reader<int,Result<_,string>> > =
148
+ let fn : ResultT<string, Reader<int,__>, _ > =
149
149
monad {
150
150
let! x1 = lift ask
151
151
let! x2 =
@@ -183,7 +183,7 @@ let decodeError = function
183
183
184
184
// Now the following functions compose the Error monad with the Async one.
185
185
186
- let getValidPassword : ResultT < _ > =
186
+ let getValidPassword : ResultT < _ , _ , _ > =
187
187
monad {
188
188
let! s = liftAsync getLine
189
189
if isValid s then return s
@@ -255,11 +255,11 @@ module CombineReaderWithWriterWithResult =
255
255
let! w = eitherConv divide5By 6.0
256
256
let! x = eitherConv divide5By 3.0
257
257
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" ))
259
259
260
260
return ( w, x, y, z) }
261
261
262
- let run expr = ReaderT.run expr >> ResultT.run >> Writer.run
262
+ let run expr = ReaderT.run expr >> ResultT.run >> Writer.run
263
263
264
264
let ( _ , log ) = run divide DateTime.UtcNow
265
265
You can’t perform that action at this time.
0 commit comments