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 @@ -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
You can’t perform that action at this time.
0 commit comments