Skip to content

Commit

Permalink
update all fp-ts usages in src
Browse files Browse the repository at this point in the history
  • Loading branch information
osdiab committed Aug 8, 2020
1 parent c4e6632 commit 1102b3b
Show file tree
Hide file tree
Showing 15 changed files with 54 additions and 54 deletions.
8 changes: 4 additions & 4 deletions src/Codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
*
* @since 2.2.3
*/
import { identity } from 'fp-ts/lib/function'
import { Invariant3 } from 'fp-ts/lib/Invariant'
import { pipe } from 'fp-ts/lib/pipeable'
import { identity } from 'fp-ts/function'
import { Invariant3 } from 'fp-ts/Invariant'
import { pipe } from 'fp-ts/pipeable'
import * as D from './Decoder'
import * as E from './Encoder'
import { Literal } from './Schemable'
Expand Down Expand Up @@ -328,7 +328,7 @@ export const URI = 'io-ts/Codec'
*/
export type URI = typeof URI

declare module 'fp-ts/lib/HKT' {
declare module 'fp-ts/HKT' {
interface URItoKind3<R, E, A> {
readonly [URI]: Codec<R, E, A>
}
Expand Down
2 changes: 1 addition & 1 deletion src/DecodeError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @since 2.2.7
*/
import { Semigroup } from 'fp-ts/lib/Semigroup'
import { Semigroup } from 'fp-ts/Semigroup'
import * as FS from './FreeSemigroup'

/**
Expand Down
18 changes: 9 additions & 9 deletions src/Decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
*
* @since 2.2.7
*/
import { Alt2, Alt2C } from 'fp-ts/lib/Alt'
import { Bifunctor2 } from 'fp-ts/lib/Bifunctor'
import { Category2 } from 'fp-ts/lib/Category'
import * as E from 'fp-ts/lib/Either'
import { Refinement } from 'fp-ts/lib/function'
import { Functor2 } from 'fp-ts/lib/Functor'
import { MonadThrow2C } from 'fp-ts/lib/MonadThrow'
import { pipe } from 'fp-ts/lib/pipeable'
import { Alt2, Alt2C } from 'fp-ts/Alt'
import { Bifunctor2 } from 'fp-ts/Bifunctor'
import { Category2 } from 'fp-ts/Category'
import * as E from 'fp-ts/Either'
import { Refinement } from 'fp-ts/function'
import { Functor2 } from 'fp-ts/Functor'
import { MonadThrow2C } from 'fp-ts/MonadThrow'
import { pipe } from 'fp-ts/pipeable'
import * as DE from './DecodeError'
import * as FS from './FreeSemigroup'
import * as G from './Guard'
Expand Down Expand Up @@ -418,7 +418,7 @@ export const URI = 'io-ts/Decoder'
*/
export type URI = typeof URI

declare module 'fp-ts/lib/HKT' {
declare module 'fp-ts/HKT' {
interface URItoKind2<E, A> {
readonly [URI]: Decoder<E, A>
}
Expand Down
8 changes: 4 additions & 4 deletions src/Encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
*
* @since 2.2.3
*/
import { Contravariant2 } from 'fp-ts/lib/Contravariant'
import { Category2 } from 'fp-ts/lib/Category'
import { Contravariant2 } from 'fp-ts/Contravariant'
import { Category2 } from 'fp-ts/Category'
import { memoize, intersect_ } from './Schemable'
import { identity } from 'fp-ts/lib/function'
import { identity } from 'fp-ts/function'

// -------------------------------------------------------------------------------------
// model
Expand Down Expand Up @@ -207,7 +207,7 @@ export const URI = 'io-ts/Encoder'
*/
export type URI = typeof URI

declare module 'fp-ts/lib/HKT' {
declare module 'fp-ts/HKT' {
interface URItoKind2<E, A> {
readonly [URI]: Encoder<E, A>
}
Expand Down
6 changes: 3 additions & 3 deletions src/Eq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
*
* @since 2.2.2
*/
import * as A from 'fp-ts/lib/Array'
import * as E from 'fp-ts/lib/Eq'
import * as R from 'fp-ts/lib/Record'
import * as A from 'fp-ts/Array'
import * as E from 'fp-ts/Eq'
import * as R from 'fp-ts/Record'
import { memoize, Schemable1, WithRefine1, WithUnknownContainers1 } from './Schemable'
import Eq = E.Eq

Expand Down
2 changes: 1 addition & 1 deletion src/FreeSemigroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @since 2.2.7
*/
import { Semigroup } from 'fp-ts/lib/Semigroup'
import { Semigroup } from 'fp-ts/Semigroup'

/**
* @category model
Expand Down
4 changes: 2 additions & 2 deletions src/Guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @since 2.2.0
*/
import { pipe } from 'fp-ts/lib/pipeable'
import { pipe } from 'fp-ts/pipeable'
import { Literal, memoize, Schemable1, WithRefine1, WithUnion1, WithUnknownContainers1 } from './Schemable'

// -------------------------------------------------------------------------------------
Expand Down Expand Up @@ -290,7 +290,7 @@ export const URI = 'io-ts/Guard'
*/
export type URI = typeof URI

declare module 'fp-ts/lib/HKT' {
declare module 'fp-ts/HKT' {
interface URItoKind<A> {
readonly [URI]: Guard<unknown, A>
}
Expand Down
20 changes: 10 additions & 10 deletions src/Kleisli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
*
* @since 2.2.7
*/
import { Alt2C } from 'fp-ts/lib/Alt'
import { Applicative2C } from 'fp-ts/lib/Applicative'
import { Apply2C } from 'fp-ts/lib/Apply'
import { Bifunctor2 } from 'fp-ts/lib/Bifunctor'
import * as E from 'fp-ts/lib/Either'
import { Functor2C } from 'fp-ts/lib/Functor'
import { Kind2, URIS2 } from 'fp-ts/lib/HKT'
import { Monad2C } from 'fp-ts/lib/Monad'
import { MonadThrow2C } from 'fp-ts/lib/MonadThrow'
import { Alt2C } from 'fp-ts/Alt'
import { Applicative2C } from 'fp-ts/Applicative'
import { Apply2C } from 'fp-ts/Apply'
import { Bifunctor2 } from 'fp-ts/Bifunctor'
import * as E from 'fp-ts/Either'
import { Functor2C } from 'fp-ts/Functor'
import { Kind2, URIS2 } from 'fp-ts/HKT'
import { Monad2C } from 'fp-ts/Monad'
import { MonadThrow2C } from 'fp-ts/MonadThrow'
import * as G from './Guard'
import { intersect_, Literal, memoize } from './Schemable'
import { Lazy, Refinement } from 'fp-ts/lib/function'
import { Lazy, Refinement } from 'fp-ts/function'

// -------------------------------------------------------------------------------------
// model
Expand Down
2 changes: 1 addition & 1 deletion src/PathReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { Reporter } from './Reporter'
import { Context, getFunctionName, ValidationError } from '.'
import { fold } from 'fp-ts/lib/Either'
import { fold } from 'fp-ts/Either'

function stringify(v: any): string {
if (typeof v === 'function') {
Expand Down
2 changes: 1 addition & 1 deletion src/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @since 2.2.0
*/
import { HKT, Kind, Kind2, URIS, URIS2 } from 'fp-ts/lib/HKT'
import { HKT, Kind, Kind2, URIS, URIS2 } from 'fp-ts/HKT'
import { memoize, Schemable, Schemable1, Schemable2C } from './Schemable'

// -------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Schemable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @since 2.2.0
*/
import { HKT, Kind, Kind2, URIS, URIS2 } from 'fp-ts/lib/HKT'
import { HKT, Kind, Kind2, URIS, URIS2 } from 'fp-ts/HKT'

/**
* @since 2.2.0
Expand Down
22 changes: 11 additions & 11 deletions src/TaskDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
*
* @since 2.2.7
*/
import { Alt2, Alt2C } from 'fp-ts/lib/Alt'
import { Bifunctor2 } from 'fp-ts/lib/Bifunctor'
import { Category2 } from 'fp-ts/lib/Category'
import * as E from 'fp-ts/lib/Either'
import { Refinement } from 'fp-ts/lib/function'
import { Functor2 } from 'fp-ts/lib/Functor'
import { MonadThrow2C } from 'fp-ts/lib/MonadThrow'
import { pipe } from 'fp-ts/lib/pipeable'
import * as T from 'fp-ts/lib/Task'
import * as TE from 'fp-ts/lib/TaskEither'
import { Alt2, Alt2C } from 'fp-ts/Alt'
import { Bifunctor2 } from 'fp-ts/Bifunctor'
import { Category2 } from 'fp-ts/Category'
import * as E from 'fp-ts/Either'
import { Refinement } from 'fp-ts/function'
import { Functor2 } from 'fp-ts/Functor'
import { MonadThrow2C } from 'fp-ts/MonadThrow'
import { pipe } from 'fp-ts/pipeable'
import * as T from 'fp-ts/Task'
import * as TE from 'fp-ts/TaskEither'
import * as DE from './DecodeError'
import * as D from './Decoder'
import * as FS from './FreeSemigroup'
Expand Down Expand Up @@ -424,7 +424,7 @@ export const URI = 'io-ts/TaskDecoder'
*/
export type URI = typeof URI

declare module 'fp-ts/lib/HKT' {
declare module 'fp-ts/HKT' {
interface URItoKind2<E, A> {
readonly [URI]: TaskDecoder<E, A>
}
Expand Down
2 changes: 1 addition & 1 deletion src/ThrowReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { Reporter } from './Reporter'
import { PathReporter } from './PathReporter'
import { isLeft } from 'fp-ts/lib/Either'
import { isLeft } from 'fp-ts/Either'

/**
* @category deprecated
Expand Down
6 changes: 3 additions & 3 deletions src/Type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/
import * as t from './index'
import { Literal, Schemable1, WithUnion1, WithRefine1, WithUnknownContainers1 } from './Schemable'
import * as E from 'fp-ts/lib/Either'
import { pipe } from 'fp-ts/lib/pipeable'
import * as E from 'fp-ts/Either'
import { pipe } from 'fp-ts/pipeable'

// -------------------------------------------------------------------------------------
// model
Expand Down Expand Up @@ -171,7 +171,7 @@ export const URI = 'io-ts/Type'
*/
export type URI = typeof URI

declare module 'fp-ts/lib/HKT' {
declare module 'fp-ts/HKT' {
interface URItoKind<A> {
readonly [URI]: Type<A>
}
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @since 1.0.0
*/
import { Either, isLeft, left, right } from 'fp-ts/lib/Either'
import { Predicate, Refinement } from 'fp-ts/lib/function'
import { Either, isLeft, left, right } from 'fp-ts/Either'
import { Predicate, Refinement } from 'fp-ts/function'

// -------------------------------------------------------------------------------------
// model
Expand Down

0 comments on commit 1102b3b

Please sign in to comment.