Skip to content

Commit

Permalink
Record instances
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverJAsh authored and gcanti committed Sep 13, 2021
1 parent 0c5edf9 commit e981a6d
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 70 deletions.
70 changes: 35 additions & 35 deletions src/ReadonlyRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1517,9 +1517,9 @@ export const getDifferenceMagma = <A>(): Magma<ReadonlyRecord<string, A>> => ({
*/
export const Foldable: Foldable1<URI> = {
URI,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord)
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord)
}

/**
Expand All @@ -1531,12 +1531,12 @@ export const Foldable: Foldable1<URI> = {
*/
export const FoldableWithIndex: FoldableWithIndex1<URI, string> = {
URI,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
reduceWithIndex: _reduceWithIndex(S.Ord),
foldMapWithIndex: _foldMapWithIndex(S.Ord),
reduceRightWithIndex: _reduceRightWithIndex(S.Ord)
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
reduceWithIndex: /*#__PURE__*/ _reduceWithIndex(S.Ord),
foldMapWithIndex: /*#__PURE__*/ _foldMapWithIndex(S.Ord),
reduceRightWithIndex: /*#__PURE__*/ _reduceRightWithIndex(S.Ord)
}

/**
Expand All @@ -1549,10 +1549,10 @@ export const FoldableWithIndex: FoldableWithIndex1<URI, string> = {
export const Traversable: Traversable1<URI> = {
URI,
map: _map,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
traverse: _traverse(S.Ord),
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
traverse: /*#__PURE__*/ _traverse(S.Ord),
sequence
}

Expand All @@ -1567,19 +1567,19 @@ export const TraversableWithIndex: TraversableWithIndex1<URI, string> = {
URI,
map: _map,
mapWithIndex: _mapWithIndex,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
reduceWithIndex: _reduceWithIndex(S.Ord),
foldMapWithIndex: _foldMapWithIndex(S.Ord),
reduceRightWithIndex: _reduceRightWithIndex(S.Ord),
traverse: _traverse(S.Ord),
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
reduceWithIndex: /*#__PURE__*/ _reduceWithIndex(S.Ord),
foldMapWithIndex: /*#__PURE__*/ _foldMapWithIndex(S.Ord),
reduceRightWithIndex: /*#__PURE__*/ _reduceRightWithIndex(S.Ord),
traverse: /*#__PURE__*/ _traverse(S.Ord),
sequence,
traverseWithIndex: _traverseWithIndex(S.Ord)
traverseWithIndex: /*#__PURE__*/ _traverseWithIndex(S.Ord)
}

const _wither = witherDefault(Traversable, Compactable)
const _wilt = wiltDefault(Traversable, Compactable)
const _wither = /*#__PURE__*/ witherDefault(Traversable, Compactable)
const _wilt = /*#__PURE__*/ wiltDefault(Traversable, Compactable)

/**
* Use `getWitherable` instead.
Expand All @@ -1591,10 +1591,10 @@ const _wilt = wiltDefault(Traversable, Compactable)
export const Witherable: Witherable1<URI> = {
URI,
map: _map,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
traverse: _traverse(S.Ord),
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
traverse: /*#__PURE__*/ _traverse(S.Ord),
sequence,
compact,
separate,
Expand Down Expand Up @@ -1640,10 +1640,10 @@ export const readonlyRecord: FunctorWithIndex1<URI, string> &
Witherable1<URI> = {
URI,
map: _map,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
traverse: _traverse(S.Ord),
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
traverse: /*#__PURE__*/ _traverse(S.Ord),
sequence,
compact,
separate,
Expand All @@ -1652,14 +1652,14 @@ export const readonlyRecord: FunctorWithIndex1<URI, string> &
partition: _partition,
partitionMap: _partitionMap,
mapWithIndex: _mapWithIndex,
reduceWithIndex: _reduceWithIndex(S.Ord),
foldMapWithIndex: _foldMapWithIndex(S.Ord),
reduceRightWithIndex: _reduceRightWithIndex(S.Ord),
reduceWithIndex: /*#__PURE__*/ _reduceWithIndex(S.Ord),
foldMapWithIndex: /*#__PURE__*/ _foldMapWithIndex(S.Ord),
reduceRightWithIndex: /*#__PURE__*/ _reduceRightWithIndex(S.Ord),
filterMapWithIndex: _filterMapWithIndex,
filterWithIndex: _filterWithIndex,
partitionMapWithIndex: _partitionMapWithIndex,
partitionWithIndex: _partitionWithIndex,
traverseWithIndex: _traverseWithIndex(S.Ord),
traverseWithIndex: /*#__PURE__*/ _traverseWithIndex(S.Ord),
wither: _wither,
wilt: _wilt
}
70 changes: 35 additions & 35 deletions src/Record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1024,9 +1024,9 @@ export const getDifferenceMagma = <A>(): Magma<Record<string, A>> => ({
*/
export const Foldable: Foldable1<URI> = {
URI,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord)
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord)
}

/**
Expand All @@ -1038,12 +1038,12 @@ export const Foldable: Foldable1<URI> = {
*/
export const FoldableWithIndex: FoldableWithIndex1<URI, string> = {
URI,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
reduceWithIndex: _reduceWithIndex(S.Ord),
foldMapWithIndex: _foldMapWithIndex(S.Ord),
reduceRightWithIndex: _reduceRightWithIndex(S.Ord)
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
reduceWithIndex: /*#__PURE__*/ _reduceWithIndex(S.Ord),
foldMapWithIndex: /*#__PURE__*/ _foldMapWithIndex(S.Ord),
reduceRightWithIndex: /*#__PURE__*/ _reduceRightWithIndex(S.Ord)
}

/**
Expand All @@ -1056,10 +1056,10 @@ export const FoldableWithIndex: FoldableWithIndex1<URI, string> = {
export const Traversable: Traversable1<URI> = {
URI,
map: _map,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
traverse: _traverse(S.Ord),
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
traverse: /*#__PURE__*/ _traverse(S.Ord),
sequence
}

Expand All @@ -1074,19 +1074,19 @@ export const TraversableWithIndex: TraversableWithIndex1<URI, string> = {
URI,
map: _map,
mapWithIndex: _mapWithIndex,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
reduceWithIndex: _reduceWithIndex(S.Ord),
foldMapWithIndex: _foldMapWithIndex(S.Ord),
reduceRightWithIndex: _reduceRightWithIndex(S.Ord),
traverse: _traverse(S.Ord),
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
reduceWithIndex: /*#__PURE__*/ _reduceWithIndex(S.Ord),
foldMapWithIndex: /*#__PURE__*/ _foldMapWithIndex(S.Ord),
reduceRightWithIndex: /*#__PURE__*/ _reduceRightWithIndex(S.Ord),
traverse: /*#__PURE__*/ _traverse(S.Ord),
sequence,
traverseWithIndex: _traverseWithIndex(S.Ord)
traverseWithIndex: /*#__PURE__*/ _traverseWithIndex(S.Ord)
}

const _wither = witherDefault(Traversable, Compactable)
const _wilt = wiltDefault(Traversable, Compactable)
const _wither = /*#__PURE__*/ witherDefault(Traversable, Compactable)
const _wilt = /*#__PURE__*/ wiltDefault(Traversable, Compactable)

/**
* Use `getWitherable` instead.
Expand All @@ -1098,10 +1098,10 @@ const _wilt = wiltDefault(Traversable, Compactable)
export const Witherable: Witherable1<URI> = {
URI,
map: _map,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
traverse: _traverse(S.Ord),
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
traverse: /*#__PURE__*/ _traverse(S.Ord),
sequence,
compact,
separate,
Expand Down Expand Up @@ -1151,10 +1151,10 @@ export const record: FunctorWithIndex1<URI, string> &
Witherable1<URI> = {
URI,
map: _map,
reduce: _reduce(S.Ord),
foldMap: _foldMap(S.Ord),
reduceRight: _reduceRight(S.Ord),
traverse: _traverse(S.Ord),
reduce: /*#__PURE__*/ _reduce(S.Ord),
foldMap: /*#__PURE__*/ _foldMap(S.Ord),
reduceRight: /*#__PURE__*/ _reduceRight(S.Ord),
traverse: /*#__PURE__*/ _traverse(S.Ord),
sequence,
compact,
separate,
Expand All @@ -1163,14 +1163,14 @@ export const record: FunctorWithIndex1<URI, string> &
partition: _partition,
partitionMap: _partitionMap,
mapWithIndex: _mapWithIndex,
reduceWithIndex: _reduceWithIndex(S.Ord),
foldMapWithIndex: _foldMapWithIndex(S.Ord),
reduceRightWithIndex: _reduceRightWithIndex(S.Ord),
reduceWithIndex: /*#__PURE__*/ _reduceWithIndex(S.Ord),
foldMapWithIndex: /*#__PURE__*/ _foldMapWithIndex(S.Ord),
reduceRightWithIndex: /*#__PURE__*/ _reduceRightWithIndex(S.Ord),
filterMapWithIndex: _filterMapWithIndex,
filterWithIndex: _filterWithIndex,
partitionMapWithIndex: _partitionMapWithIndex,
partitionWithIndex: _partitionWithIndex,
traverseWithIndex: _traverseWithIndex(S.Ord),
traverseWithIndex: /*#__PURE__*/ _traverseWithIndex(S.Ord),
wither: _wither,
wilt: _wilt
}

0 comments on commit e981a6d

Please sign in to comment.