Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 0.0.9 #33

Merged
merged 3 commits into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/swift-melons-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fp-ts/core": patch
---

remove Compactable, Filterable, TraversableFilterable and /data folder
2 changes: 1 addition & 1 deletion dtslint/ts4.7/SemiProduct.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OptionTypeLambda } from "@fp-ts/core/data/Option"
import { OptionTypeLambda } from "@fp-ts/core/test/data/Option"
import * as _ from "@fp-ts/core/typeclass/SemiProduct"

export declare const SemiProduct: _.SemiProduct<OptionTypeLambda>
Expand Down
36 changes: 0 additions & 36 deletions src/data/Either.ts

This file was deleted.

35 changes: 0 additions & 35 deletions src/data/Option.ts

This file was deleted.

37 changes: 1 addition & 36 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ import * as applicative from "@fp-ts/core/typeclass/Applicative"
import * as bicovariant from "@fp-ts/core/typeclass/Bicovariant"
import * as bounded from "@fp-ts/core/typeclass/Bounded"
import * as chainable from "@fp-ts/core/typeclass/Chainable"
import * as compactable from "@fp-ts/core/typeclass/Compactable"
import * as contravariant from "@fp-ts/core/typeclass/Contravariant"
import * as coproduct from "@fp-ts/core/typeclass/Coproduct"
import * as covariant from "@fp-ts/core/typeclass/Covariant"
import * as filterable from "@fp-ts/core/typeclass/Filterable"
import * as flatMap from "@fp-ts/core/typeclass/FlatMap"
import * as foldable from "@fp-ts/core/typeclass/Foldable"
import * as invariant from "@fp-ts/core/typeclass/Invariant"
Expand All @@ -38,14 +36,6 @@ import * as semiCoproduct from "@fp-ts/core/typeclass/SemiCoproduct"
import * as semigroup from "@fp-ts/core/typeclass/Semigroup"
import * as semiProduct from "@fp-ts/core/typeclass/SemiProduct"
import * as traversable from "@fp-ts/core/typeclass/Traversable"
import * as traversableFilterable from "@fp-ts/core/typeclass/TraversableFilterable"

// -------------------------------------------------------------------------------------
// data types
// -------------------------------------------------------------------------------------

import * as either from "@fp-ts/core/data/Either"
import * as option from "@fp-ts/core/data/Option"

export {
/**
Expand Down Expand Up @@ -73,11 +63,6 @@ export {
* @since 1.0.0
*/
chainable,
/**
* @category typeclass
* @since 1.0.0
*/
compactable,
/**
* @category typeclass
* @since 1.0.0
Expand All @@ -93,16 +78,6 @@ export {
* @since 1.0.0
*/
covariant,
/**
* @category data types
* @since 1.0.0
*/
either,
/**
* @category typeclass
* @since 1.0.0
*/
filterable,
/**
* @category typeclass
* @since 1.0.0
Expand Down Expand Up @@ -142,11 +117,6 @@ export {
* @since 1.0.0
*/
of,
/**
* @category data types
* @since 1.0.0
*/
option,
/**
* @category typeclass
* @since 1.0.0
Expand Down Expand Up @@ -191,10 +161,5 @@ export {
* @category typeclass
* @since 1.0.0
*/
traversable,
/**
* @category typeclass
* @since 1.0.0
*/
traversableFilterable
traversable
}
41 changes: 0 additions & 41 deletions src/internal/Either.ts

This file was deleted.

44 changes: 22 additions & 22 deletions src/internal/Function.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
/**
* @since 1.0.0
*/
/** @internal */

/**
* A lazy argument.
*
* @since 1.0.0
*/
export interface LazyArg<A> {
(): A
}
/**
* @since 1.0.0
*/
/** @internal */
export const identity = <A>(a: A): A => a

/**
* @since 1.0.0
*/
/** @internal */
export function pipe<A>(a: A): A
/** @internal */
export function pipe<A, B>(a: A, ab: (a: A) => B): B
/** @internal */
export function pipe<A, B, C>(a: A, ab: (a: A) => B, bc: (b: B) => C): C
/** @internal */
export function pipe<A, B, C, D>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D): D
/** @internal */
export function pipe<A, B, C, D, E>(
a: A,
ab: (a: A) => B,
bc: (b: B) => C,
cd: (c: C) => D,
de: (d: D) => E
): E
/** @internal */
export function pipe<A, B, C, D, E, F>(
a: A,
ab: (a: A) => B,
Expand All @@ -37,6 +28,7 @@ export function pipe<A, B, C, D, E, F>(
de: (d: D) => E,
ef: (e: E) => F
): F
/** @internal */
export function pipe<A, B, C, D, E, F, G>(
a: A,
ab: (a: A) => B,
Expand All @@ -46,6 +38,7 @@ export function pipe<A, B, C, D, E, F, G>(
ef: (e: E) => F,
fg: (f: F) => G
): G
/** @internal */
export function pipe<A, B, C, D, E, F, G, H>(
a: A,
ab: (a: A) => B,
Expand All @@ -56,6 +49,7 @@ export function pipe<A, B, C, D, E, F, G, H>(
fg: (f: F) => G,
gh: (g: G) => H
): H
/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I>(
a: A,
ab: (a: A) => B,
Expand All @@ -67,6 +61,7 @@ export function pipe<A, B, C, D, E, F, G, H, I>(
gh: (g: G) => H,
hi: (h: H) => I
): I
/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J>(
a: A,
ab: (a: A) => B,
Expand All @@ -79,6 +74,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J>(
hi: (h: H) => I,
ij: (i: I) => J
): J
/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K>(
a: A,
ab: (a: A) => B,
Expand All @@ -92,6 +88,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J, K>(
ij: (i: I) => J,
jk: (j: J) => K
): K
/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K, L>(
a: A,
ab: (a: A) => B,
Expand All @@ -106,6 +103,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J, K, L>(
jk: (j: J) => K,
kl: (k: K) => L
): L
/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M>(
a: A,
ab: (a: A) => B,
Expand All @@ -121,6 +119,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M>(
kl: (k: K) => L,
lm: (l: L) => M
): M
/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N>(
a: A,
ab: (a: A) => B,
Expand All @@ -137,6 +136,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N>(
lm: (l: L) => M,
mn: (m: M) => N
): N
/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(
a: A,
ab: (a: A) => B,
Expand All @@ -154,7 +154,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(
mn: (m: M) => N,
no: (n: N) => O
): O

/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(
a: A,
ab: (a: A) => B,
Expand All @@ -173,7 +173,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(
no: (n: N) => O,
op: (o: O) => P
): P

/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(
a: A,
ab: (a: A) => B,
Expand All @@ -193,7 +193,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(
op: (o: O) => P,
pq: (p: P) => Q
): Q

/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(
a: A,
ab: (a: A) => B,
Expand All @@ -214,7 +214,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(
pq: (p: P) => Q,
qr: (q: Q) => R
): R

/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(
a: A,
ab: (a: A) => B,
Expand All @@ -236,7 +236,7 @@ export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(
qr: (q: Q) => R,
rs: (r: R) => S
): S

/** @internal */
export function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(
a: A,
ab: (a: A) => B,
Expand Down
24 changes: 0 additions & 24 deletions src/internal/Option.ts

This file was deleted.

Loading