mirror of
https://github.com/IBM/fp-go.git
synced 2025-08-10 22:31:32 +02:00
doc: fix case
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package io
|
||||
|
||||
import (
|
||||
G "github.com/ibm/fp-go/io/generic"
|
||||
M "github.com/ibm/fp-go/monoid"
|
||||
S "github.com/ibm/fp-go/semigroup"
|
||||
G "github.com/IBM/fp-go/io/generic"
|
||||
M "github.com/IBM/fp-go/monoid"
|
||||
S "github.com/IBM/fp-go/semigroup"
|
||||
)
|
||||
|
||||
func ApplySemigroup[A any](s S.Semigroup[A]) S.Semigroup[IO[A]] {
|
||||
|
4
io/eq.go
4
io/eq.go
@@ -1,8 +1,8 @@
|
||||
package io
|
||||
|
||||
import (
|
||||
EQ "github.com/ibm/fp-go/eq"
|
||||
G "github.com/ibm/fp-go/io/generic"
|
||||
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
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package generic
|
||||
|
||||
import (
|
||||
G "github.com/ibm/fp-go/internal/apply"
|
||||
G "github.com/IBM/fp-go/internal/apply"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package generic
|
||||
|
||||
import (
|
||||
M "github.com/ibm/fp-go/monoid"
|
||||
S "github.com/ibm/fp-go/semigroup"
|
||||
M "github.com/IBM/fp-go/monoid"
|
||||
S "github.com/IBM/fp-go/semigroup"
|
||||
)
|
||||
|
||||
func ApplySemigroup[GA ~func() A, A any](s S.Semigroup[A]) S.Semigroup[GA] {
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package generic
|
||||
|
||||
import (
|
||||
EQ "github.com/ibm/fp-go/eq"
|
||||
G "github.com/ibm/fp-go/internal/eq"
|
||||
EQ "github.com/IBM/fp-go/eq"
|
||||
G "github.com/IBM/fp-go/internal/eq"
|
||||
)
|
||||
|
||||
// Eq implements the equals predicate for values contained in the IO monad
|
||||
|
@@ -4,8 +4,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
F "github.com/ibm/fp-go/function"
|
||||
C "github.com/ibm/fp-go/internal/chain"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
C "github.com/IBM/fp-go/internal/chain"
|
||||
)
|
||||
|
||||
// type IO[A any] = func() A
|
||||
|
@@ -3,7 +3,7 @@ package generic
|
||||
import (
|
||||
"log"
|
||||
|
||||
Logging "github.com/ibm/fp-go/logging"
|
||||
Logging "github.com/IBM/fp-go/logging"
|
||||
)
|
||||
|
||||
func Logger[GA ~func() any, A any](loggers ...*log.Logger) func(string) func(A) GA {
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package generic
|
||||
|
||||
import (
|
||||
R "github.com/ibm/fp-go/retry"
|
||||
G "github.com/ibm/fp-go/retry/generic"
|
||||
R "github.com/IBM/fp-go/retry"
|
||||
G "github.com/IBM/fp-go/retry/generic"
|
||||
)
|
||||
|
||||
type retryStatusIO = func() R.RetryStatus
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package generic
|
||||
|
||||
import (
|
||||
"github.com/ibm/fp-go/internal/apply"
|
||||
T "github.com/ibm/fp-go/tuple"
|
||||
"github.com/IBM/fp-go/internal/apply"
|
||||
T "github.com/IBM/fp-go/tuple"
|
||||
)
|
||||
|
||||
// SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple
|
||||
|
@@ -1,9 +1,9 @@
|
||||
package generic
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
RA "github.com/ibm/fp-go/internal/array"
|
||||
RR "github.com/ibm/fp-go/internal/record"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
RA "github.com/IBM/fp-go/internal/array"
|
||||
RR "github.com/IBM/fp-go/internal/record"
|
||||
)
|
||||
|
||||
func MonadTraverseArray[GB ~func() B, GBS ~func() BBS, AAS ~[]A, BBS ~[]B, A, B any](tas AAS, f func(A) GB) GBS {
|
||||
|
2
io/io.go
2
io/io.go
@@ -3,7 +3,7 @@ package io
|
||||
import (
|
||||
"time"
|
||||
|
||||
G "github.com/ibm/fp-go/io/generic"
|
||||
G "github.com/IBM/fp-go/io/generic"
|
||||
)
|
||||
|
||||
// IO represents a synchronous computation that cannot fail
|
||||
|
@@ -4,8 +4,8 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
F "github.com/ibm/fp-go/function"
|
||||
"github.com/ibm/fp-go/internal/utils"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
"github.com/IBM/fp-go/internal/utils"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@@ -3,7 +3,7 @@ package io
|
||||
import (
|
||||
"log"
|
||||
|
||||
G "github.com/ibm/fp-go/io/generic"
|
||||
G "github.com/IBM/fp-go/io/generic"
|
||||
)
|
||||
|
||||
// Logger constructs a logger function that can be used with ChainXXXIOK
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package io
|
||||
|
||||
import (
|
||||
G "github.com/ibm/fp-go/io/generic"
|
||||
R "github.com/ibm/fp-go/retry"
|
||||
G "github.com/IBM/fp-go/io/generic"
|
||||
R "github.com/IBM/fp-go/retry"
|
||||
)
|
||||
|
||||
// Retrying will retry the actions according to the check policy
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
R "github.com/ibm/fp-go/retry"
|
||||
R "github.com/IBM/fp-go/retry"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package io
|
||||
|
||||
import (
|
||||
G "github.com/ibm/fp-go/io/generic"
|
||||
T "github.com/ibm/fp-go/tuple"
|
||||
G "github.com/IBM/fp-go/io/generic"
|
||||
T "github.com/IBM/fp-go/tuple"
|
||||
)
|
||||
|
||||
// SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple
|
||||
|
@@ -3,9 +3,9 @@ package testing
|
||||
import (
|
||||
"testing"
|
||||
|
||||
EQ "github.com/ibm/fp-go/eq"
|
||||
L "github.com/ibm/fp-go/internal/monad/testing"
|
||||
"github.com/ibm/fp-go/io"
|
||||
EQ "github.com/IBM/fp-go/eq"
|
||||
L "github.com/IBM/fp-go/internal/monad/testing"
|
||||
"github.com/IBM/fp-go/io"
|
||||
)
|
||||
|
||||
// AssertLaws asserts the apply monad laws for the `Either` monad
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
EQ "github.com/ibm/fp-go/eq"
|
||||
EQ "github.com/IBM/fp-go/eq"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package io
|
||||
|
||||
import (
|
||||
G "github.com/ibm/fp-go/io/generic"
|
||||
G "github.com/IBM/fp-go/io/generic"
|
||||
)
|
||||
|
||||
func MonadTraverseArray[A, B any](tas []A, f func(A) IO[B]) IO[[]B] {
|
||||
|
Reference in New Issue
Block a user