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:
@@ -3,9 +3,9 @@ package testing
|
||||
import (
|
||||
"testing"
|
||||
|
||||
E "github.com/ibm/fp-go/eq"
|
||||
F "github.com/ibm/fp-go/function"
|
||||
L "github.com/ibm/fp-go/internal/apply/testing"
|
||||
E "github.com/IBM/fp-go/eq"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
L "github.com/IBM/fp-go/internal/apply/testing"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package apply
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
)
|
||||
|
||||
// HKTFGA = HKT<F, HKT<G, A>>
|
||||
|
@@ -5,8 +5,8 @@ package apply
|
||||
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
T "github.com/ibm/fp-go/tuple"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
T "github.com/IBM/fp-go/tuple"
|
||||
)
|
||||
|
||||
// tupleConstructor1 returns a curried version of [T.MakeTuple1]
|
||||
|
@@ -3,8 +3,8 @@ package testing
|
||||
import (
|
||||
"testing"
|
||||
|
||||
E "github.com/ibm/fp-go/eq"
|
||||
FCT "github.com/ibm/fp-go/internal/functor/testing"
|
||||
E "github.com/IBM/fp-go/eq"
|
||||
FCT "github.com/IBM/fp-go/internal/functor/testing"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package array
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
)
|
||||
|
||||
/*
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package chain
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
)
|
||||
|
||||
// HKTA=HKT[A]
|
||||
|
@@ -3,9 +3,9 @@ package testing
|
||||
import (
|
||||
"testing"
|
||||
|
||||
E "github.com/ibm/fp-go/eq"
|
||||
F "github.com/ibm/fp-go/function"
|
||||
L "github.com/ibm/fp-go/internal/apply/testing"
|
||||
E "github.com/IBM/fp-go/eq"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
L "github.com/IBM/fp-go/internal/apply/testing"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@@ -1,10 +1,10 @@
|
||||
package eithert
|
||||
|
||||
import (
|
||||
ET "github.com/ibm/fp-go/either"
|
||||
F "github.com/ibm/fp-go/function"
|
||||
"github.com/ibm/fp-go/internal/apply"
|
||||
FC "github.com/ibm/fp-go/internal/functor"
|
||||
ET "github.com/IBM/fp-go/either"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
"github.com/IBM/fp-go/internal/apply"
|
||||
FC "github.com/IBM/fp-go/internal/functor"
|
||||
)
|
||||
|
||||
// HKTFA = HKT<F, Either<E, A>>
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package eq
|
||||
|
||||
import (
|
||||
EQ "github.com/ibm/fp-go/eq"
|
||||
F "github.com/ibm/fp-go/function"
|
||||
EQ "github.com/IBM/fp-go/eq"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
)
|
||||
|
||||
// Eq implements an equals predicate on the basis of `map` and `ap`
|
||||
|
@@ -6,9 +6,9 @@ import (
|
||||
"fmt"
|
||||
"os/exec"
|
||||
|
||||
EX "github.com/ibm/fp-go/exec"
|
||||
EX "github.com/IBM/fp-go/exec"
|
||||
|
||||
T "github.com/ibm/fp-go/tuple"
|
||||
T "github.com/IBM/fp-go/tuple"
|
||||
)
|
||||
|
||||
func Exec(ctx context.Context, name string, args []string, in []byte) (EX.CommandOutput, error) {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package file
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
)
|
||||
|
||||
// Bracket makes sure that a resource is cleaned up in the event of an error. The release action is called regardless of
|
||||
|
@@ -5,7 +5,7 @@ import (
|
||||
"context"
|
||||
"io"
|
||||
|
||||
E "github.com/ibm/fp-go/either"
|
||||
E "github.com/IBM/fp-go/either"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package file
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
)
|
||||
|
||||
// WithResource constructs a function that creates a resource, then operates on it and then releases the resource
|
||||
|
@@ -1,10 +1,10 @@
|
||||
package fromeither
|
||||
|
||||
import (
|
||||
ET "github.com/ibm/fp-go/either"
|
||||
F "github.com/ibm/fp-go/function"
|
||||
C "github.com/ibm/fp-go/internal/chain"
|
||||
O "github.com/ibm/fp-go/option"
|
||||
ET "github.com/IBM/fp-go/either"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
C "github.com/IBM/fp-go/internal/chain"
|
||||
O "github.com/IBM/fp-go/option"
|
||||
)
|
||||
|
||||
func FromOption[E, A, HKTEA any](fromEither func(ET.Either[E, A]) HKTEA, onNone func() E) func(ma O.Option[A]) HKTEA {
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package fromio
|
||||
|
||||
import (
|
||||
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"
|
||||
)
|
||||
|
||||
func MonadChainFirstIOK[A, B, HKTA, HKTB any, GIOB ~func() B](
|
||||
|
@@ -1,9 +1,9 @@
|
||||
package fromioeither
|
||||
|
||||
import (
|
||||
ET "github.com/ibm/fp-go/either"
|
||||
F "github.com/ibm/fp-go/function"
|
||||
C "github.com/ibm/fp-go/internal/chain"
|
||||
ET "github.com/IBM/fp-go/either"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
C "github.com/IBM/fp-go/internal/chain"
|
||||
)
|
||||
|
||||
func MonadChainFirstIOEitherK[GIOB ~func() ET.Either[E, B], E, A, B, HKTA, HKTB any](
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package fromreader
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
G "github.com/ibm/fp-go/reader/generic"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
G "github.com/IBM/fp-go/reader/generic"
|
||||
)
|
||||
|
||||
func Ask[GR ~func(R) R, R, HKTRA any](fromReader func(GR) HKTRA) func() HKTRA {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package functor
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
)
|
||||
|
||||
// HKTFGA = HKT[F, HKT[G, A]]
|
||||
|
@@ -3,8 +3,8 @@ package testing
|
||||
import (
|
||||
"testing"
|
||||
|
||||
E "github.com/ibm/fp-go/eq"
|
||||
F "github.com/ibm/fp-go/function"
|
||||
E "github.com/IBM/fp-go/eq"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@@ -3,9 +3,9 @@ package testing
|
||||
import (
|
||||
"testing"
|
||||
|
||||
E "github.com/ibm/fp-go/eq"
|
||||
LA "github.com/ibm/fp-go/internal/applicative/testing"
|
||||
LC "github.com/ibm/fp-go/internal/chain/testing"
|
||||
E "github.com/IBM/fp-go/eq"
|
||||
LA "github.com/IBM/fp-go/internal/applicative/testing"
|
||||
LC "github.com/IBM/fp-go/internal/chain/testing"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package readert
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
R "github.com/ibm/fp-go/reader/generic"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
R "github.com/IBM/fp-go/reader/generic"
|
||||
)
|
||||
|
||||
// here we implement the monadic operations using callbacks from
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package record
|
||||
|
||||
import (
|
||||
F "github.com/ibm/fp-go/function"
|
||||
F "github.com/IBM/fp-go/function"
|
||||
)
|
||||
|
||||
// createEmpty creates a new empty, read-write map
|
||||
|
Reference in New Issue
Block a user