mirror of
https://github.com/IBM/fp-go.git
synced 2025-11-25 22:21:49 +02:00
12 lines
233 B
Go
12 lines
233 B
Go
|
|
package io
|
||
|
|
|
||
|
|
import (
|
||
|
|
EQ "github.com/ibm/fp-go/eq"
|
||
|
|
G "github.com/ibm/fp-go/io/generic"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Eq implements the equals predicate for values contained in the IO monad
|
||
|
|
func Eq[A any](e EQ.Eq[A]) EQ.Eq[IO[A]] {
|
||
|
|
return G.Eq[IO[A]](e)
|
||
|
|
}
|