1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-08-10 22:31:32 +02:00

fix: add missing FromIO to ReaderIO

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2023-10-12 11:17:31 +02:00
parent f1a730998d
commit 9ef98e1ec4
2 changed files with 6 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import (
type ReaderIO[E, A any] R.Reader[E, IO.IO[A]]
// FromIO converts an [IO.IO] to a [ReaderIO]
func FromIO[E, A any](t IO.IO[A]) ReaderIO[E, A] {
return G.FromIO[ReaderIO[E, A]](t)
}