1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-11-23 22:14:53 +02:00

fix: add missing monoid

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2025-11-21 10:22:50 +01:00
parent d116317cde
commit 4909ad5473
7 changed files with 417 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ import (
"github.com/IBM/fp-go/v2/either"
"github.com/IBM/fp-go/v2/endomorphism"
"github.com/IBM/fp-go/v2/lazy"
"github.com/IBM/fp-go/v2/monoid"
"github.com/IBM/fp-go/v2/option"
"github.com/IBM/fp-go/v2/reader"
"github.com/IBM/fp-go/v2/result"
@@ -33,6 +34,7 @@ type (
Reader[R, A any] = reader.Reader[R, A]
ReaderResult[R, A any] = Reader[R, Result[A]]
Monoid[R, A any] = monoid.Monoid[ReaderResult[R, A]]
Kleisli[R, A, B any] = Reader[A, ReaderResult[R, B]]
Operator[R, A, B any] = Kleisli[R, ReaderResult[R, A], B]