Skip to content

Commit 3dfad1c

Browse files
authored
fix
1 parent 9d646a6 commit 3dfad1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FSharpPlus/List.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module ListT =
110110
| Cons (h, t) -> action h >>= (fun () -> loop t action)
111111
loop lst action
112112

113-
let inline iter (action: 'T -> unit) (lst: ListT<'MT>) = iterM (action >> singleton) lst
113+
let inline iter (action: 'T -> unit) (lst: ListT<'MT>) : '``M<unit>`` = iterM (action >> result) lst
114114

115115
let inline lift (x: '``Monad<'T>``) = wrap (x >>= (result << (fun x -> Cons (x, empty () )))) : ListT<'``Monad<'T>``>
116116

0 commit comments

Comments
 (0)