File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments