mirror of
https://github.com/IBM/fp-go.git
synced 2025-06-23 00:27:49 +02:00
15 lines
375 B
Go
15 lines
375 B
Go
![]() |
package readerioeither
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
ET "github.com/ibm/fp-go/either"
|
||
|
EQ "github.com/ibm/fp-go/eq"
|
||
|
G "github.com/ibm/fp-go/readerioeither/generic"
|
||
|
)
|
||
|
|
||
|
// Eq implements the equals predicate for values contained in the IOEither monad
|
||
|
func Eq[A any](eq EQ.Eq[ET.Either[error, A]]) func(context.Context) EQ.Eq[ReaderIOEither[A]] {
|
||
|
return G.Eq[ReaderIOEither[A]](eq)
|
||
|
}
|