Skip to content

Commit

Permalink
fix: signature of IO.Flap
Browse files Browse the repository at this point in the history
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
  • Loading branch information
CarstenLeue committed Jan 26, 2024
1 parent 57ad8c6 commit fb82af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func MonadFlap[B, A any](fab IO[func(A) B], a A) IO[B] {
return G.MonadFlap[func(A) B, IO[func(A) B], IO[B], A, B](fab, a)
}

func Flap[FAB ~func(A) B, GFAB ~func() FAB, GB ~func() B, A, B any](a A) func(IO[func(A) B]) IO[B] {
func Flap[A, B any](a A) func(IO[func(A) B]) IO[B] {
return G.Flap[func(A) B, IO[func(A) B], IO[B], A, B](a)
}

Expand Down

0 comments on commit fb82af9

Please sign in to comment.