From 90e8273ea985680f123af7b6ae5bfb3655564477 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Tue, 29 Dec 2020 11:02:57 +0000 Subject: [PATCH] Add more `/*#__PURE__*/` comments to improve tree shaking --- src/IOEither.ts | 6 +++--- src/ReaderTaskEither.ts | 4 +++- src/Task.ts | 4 +++- src/TaskEither.ts | 6 +++--- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/IOEither.ts b/src/IOEither.ts index 340c807e1..6958e83c1 100644 --- a/src/IOEither.ts +++ b/src/IOEither.ts @@ -807,6 +807,6 @@ export const traverseSeqArray: ( /** * @since 2.9.0 */ -export const sequenceSeqArray: ( - arr: ReadonlyArray> -) => IOEither> = traverseSeqArray(identity) +export const sequenceSeqArray: (arr: ReadonlyArray>) => IOEither> = + /*#__PURE__*/ + traverseSeqArray(identity) diff --git a/src/ReaderTaskEither.ts b/src/ReaderTaskEither.ts index 413e97dcb..9fe5c2896 100644 --- a/src/ReaderTaskEither.ts +++ b/src/ReaderTaskEither.ts @@ -976,4 +976,6 @@ export const traverseSeqArray: ( */ export const sequenceSeqArray: ( arr: ReadonlyArray> -) => ReaderTaskEither> = traverseSeqArray(identity) +) => ReaderTaskEither> = + /*#__PURE__*/ + traverseSeqArray(identity) diff --git a/src/Task.ts b/src/Task.ts index 3b5cc6e89..ee7aa58f4 100644 --- a/src/Task.ts +++ b/src/Task.ts @@ -526,4 +526,6 @@ export const traverseSeqArray: (f: (a: A) => Task) => (arr: ReadonlyArr * * @since 2.9.0 */ -export const sequenceSeqArray: (arr: ReadonlyArray>) => Task> = traverseSeqArray(identity) +export const sequenceSeqArray: (arr: ReadonlyArray>) => Task> = + /*#__PURE__*/ + traverseSeqArray(identity) diff --git a/src/TaskEither.ts b/src/TaskEither.ts index e13551513..2db40430c 100644 --- a/src/TaskEither.ts +++ b/src/TaskEither.ts @@ -1068,6 +1068,6 @@ export const traverseSeqArray: ( * * @since 2.9.0 */ -export const sequenceSeqArray: ( - arr: ReadonlyArray> -) => TaskEither> = traverseSeqArray(identity) +export const sequenceSeqArray: (arr: ReadonlyArray>) => TaskEither> = + /*#__PURE__*/ + traverseSeqArray(identity)