From fb82af9a695b9c3602cd4d42d54f9c1351297411 Mon Sep 17 00:00:00 2001 From: "Dr. Carsten Leue" Date: Fri, 26 Jan 2024 09:11:27 +0100 Subject: [PATCH] fix: signature of IO.Flap Signed-off-by: Dr. Carsten Leue --- io/io.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/io.go b/io/io.go index 6513239..7afdecd 100644 --- a/io/io.go +++ b/io/io.go @@ -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) }