@fncts/base 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/_cjs/collection/compat/Array/api.cjs +10 -10
- package/_cjs/collection/compat/Array/derivations.cjs +96 -0
- package/_cjs/collection/compat/Array/derivations.cjs.map +1 -0
- package/_cjs/collection/compat/Array.cjs +13 -0
- package/_cjs/collection/compat/Array.cjs.map +1 -1
- package/_cjs/collection/compat.cjs +6 -0
- package/_cjs/collection/compat.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/derivations.cjs +45 -0
- package/_cjs/collection/immutable/Conc/derivations.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc.cjs +13 -0
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api.cjs +6 -6
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs +2 -2
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs +9 -4
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs +41 -0
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray.cjs +13 -0
- package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs +2 -2
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs +62 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs +13 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs.map +1 -1
- package/_cjs/collection/immutable/List/definition.cjs +2 -2
- package/_cjs/collection/immutable/Vector/internal.cjs +1 -1
- package/_cjs/collection/immutable.cjs +6 -0
- package/_cjs/collection/immutable.cjs.map +1 -0
- package/_cjs/collection/mutable/HashMap.cjs +4 -0
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/mutable.cjs +6 -0
- package/_cjs/collection/mutable.cjs.map +1 -0
- package/_cjs/collection/weak.cjs +6 -0
- package/_cjs/collection/weak.cjs.map +1 -0
- package/_cjs/collection.cjs +6 -0
- package/_cjs/collection.cjs.map +1 -0
- package/_cjs/control/Eval/definition.cjs +1 -1
- package/_cjs/control/Eval/definition.cjs.map +1 -1
- package/_cjs/control/Z/api.cjs +9 -9
- package/_cjs/control/Z/api.cjs.map +1 -1
- package/_cjs/control/Z/definition.cjs +0 -1
- package/_cjs/control/Z/definition.cjs.map +1 -1
- package/_cjs/control/Z/runtime.cjs +2 -0
- package/_cjs/control/Z/runtime.cjs.map +1 -1
- package/_cjs/control.cjs +6 -0
- package/_cjs/control.cjs.map +1 -0
- package/_cjs/data/Cause/api/isEmpty.cjs +2 -0
- package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
- package/_cjs/data/Cause/api/linearize.cjs +2 -0
- package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
- package/_cjs/data/Cause/api.cjs +2 -0
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Const/instances.cjs +4 -3
- package/_cjs/data/Const/instances.cjs.map +1 -1
- package/_cjs/data/DecodeError/definition.cjs +13 -1
- package/_cjs/data/DecodeError/definition.cjs.map +1 -1
- package/_cjs/data/DecodeError/instances.cjs +6 -0
- package/_cjs/data/DecodeError/instances.cjs.map +1 -0
- package/_cjs/data/DecodeError.cjs +13 -0
- package/_cjs/data/DecodeError.cjs.map +1 -1
- package/_cjs/data/Either/api/alignWith.cjs +2 -0
- package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
- package/_cjs/data/Either/definition.cjs +1 -1
- package/_cjs/data/Either/definition.cjs.map +1 -1
- package/_cjs/data/Intervals.cjs +2 -2
- package/_cjs/data/Intervals.cjs.map +1 -1
- package/_cjs/data/Patch/api.cjs +2 -0
- package/_cjs/data/Patch/api.cjs.map +1 -1
- package/_cjs/data/Struct/api.cjs +2 -0
- package/_cjs/data/Struct/api.cjs.map +1 -1
- package/_cjs/data/These/definition.cjs +1 -1
- package/_cjs/data/These/definition.cjs.map +1 -1
- package/_cjs/data/string/api.cjs +1 -1
- package/_cjs/data.cjs +6 -0
- package/_cjs/data.cjs.map +1 -0
- package/_cjs/global.cjs +6 -0
- package/_cjs/global.cjs.map +1 -0
- package/_cjs/index.cjs +6 -0
- package/_cjs/index.cjs.map +1 -0
- package/_cjs/json.cjs +6 -0
- package/_cjs/json.cjs.map +1 -0
- package/_cjs/optics/At/definition.cjs +2 -0
- package/_cjs/optics/At/definition.cjs.map +1 -1
- package/_cjs/optics/Iso/definition.cjs +4 -0
- package/_cjs/optics/Iso/definition.cjs.map +1 -1
- package/_cjs/optics/Lens/definition.cjs +4 -0
- package/_cjs/optics/Lens/definition.cjs.map +1 -1
- package/_cjs/optics/Optional/definition.cjs +2 -0
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Prism/definition.cjs +2 -0
- package/_cjs/optics/Prism/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal/definition.cjs +4 -0
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- package/_cjs/optics.cjs +6 -0
- package/_cjs/optics.cjs.map +1 -0
- package/_cjs/typeclass/HashEq.cjs +2 -0
- package/_cjs/typeclass/HashEq.cjs.map +1 -1
- package/_cjs/typeclass/Monoid.cjs +2 -0
- package/_cjs/typeclass/Monoid.cjs.map +1 -1
- package/_cjs/typeclass/Ord/definition.cjs +2 -0
- package/_cjs/typeclass/Ord/definition.cjs.map +1 -1
- package/_cjs/typeclass/Ord/instances.cjs +4 -3
- package/_cjs/typeclass/Ord/instances.cjs.map +1 -1
- package/_cjs/typeclass/Showable/show.cjs.map +1 -1
- package/_cjs/util.cjs +6 -0
- package/_cjs/util.cjs.map +1 -0
- package/_mjs/collection/compat/Array/api.mjs +10 -10
- package/_mjs/collection/compat/Array/derivations.mjs +70 -0
- package/_mjs/collection/compat/Array/derivations.mjs.map +1 -0
- package/_mjs/collection/compat/Array.mjs +1 -0
- package/_mjs/collection/compat/Array.mjs.map +1 -1
- package/_mjs/collection/compat.mjs +2 -0
- package/_mjs/collection/compat.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/api.mjs +1 -0
- package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/derivations.mjs +27 -0
- package/_mjs/collection/immutable/Conc/derivations.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc.mjs +2 -1
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/api.mjs +1 -0
- package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +6 -6
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs +2 -2
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs +7 -2
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs +25 -0
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray.mjs +1 -0
- package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs +2 -2
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs +39 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs.map +1 -1
- package/_mjs/collection/immutable/List/definition.mjs +2 -2
- package/_mjs/collection/immutable/SortedMap/api.mjs +1 -0
- package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/internal.mjs +1 -1
- package/_mjs/collection/immutable.mjs +2 -0
- package/_mjs/collection/immutable.mjs.map +1 -0
- package/_mjs/collection/mutable/HashMap.mjs +4 -0
- package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/mutable.mjs +2 -0
- package/_mjs/collection/mutable.mjs.map +1 -0
- package/_mjs/collection/weak.mjs +2 -0
- package/_mjs/collection/weak.mjs.map +1 -0
- package/_mjs/collection.mjs +2 -0
- package/_mjs/collection.mjs.map +1 -0
- package/_mjs/control/Eval/definition.mjs +1 -1
- package/_mjs/control/Eval/definition.mjs.map +1 -1
- package/_mjs/control/Eval/run.mjs +1 -0
- package/_mjs/control/Eval/run.mjs.map +1 -1
- package/_mjs/control/Z/api.mjs +9 -9
- package/_mjs/control/Z/api.mjs.map +1 -1
- package/_mjs/control/Z/definition.mjs +0 -1
- package/_mjs/control/Z/definition.mjs.map +1 -1
- package/_mjs/control/Z/runtime.mjs +1 -0
- package/_mjs/control/Z/runtime.mjs.map +1 -1
- package/_mjs/control.mjs +2 -0
- package/_mjs/control.mjs.map +1 -0
- package/_mjs/data/Branded/derivations.mjs +1 -0
- package/_mjs/data/Branded/derivations.mjs.map +1 -1
- package/_mjs/data/Cause/api/isEmpty.mjs +1 -0
- package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -1
- package/_mjs/data/Cause/api/linearize.mjs +1 -0
- package/_mjs/data/Cause/api/linearize.mjs.map +1 -1
- package/_mjs/data/Cause/api.mjs +2 -1
- package/_mjs/data/Cause/api.mjs.map +1 -1
- package/_mjs/data/Const/instances.mjs +1 -0
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/Datum/api.mjs +1 -0
- package/_mjs/data/Datum/api.mjs.map +1 -1
- package/_mjs/data/DecodeError/definition.mjs +9 -0
- package/_mjs/data/DecodeError/definition.mjs.map +1 -1
- package/_mjs/data/DecodeError/instances.mjs +2 -0
- package/_mjs/data/DecodeError/instances.mjs.map +1 -0
- package/_mjs/data/DecodeError.mjs +1 -0
- package/_mjs/data/DecodeError.mjs.map +1 -1
- package/_mjs/data/Decoder/api.mjs +1 -0
- package/_mjs/data/Decoder/api.mjs.map +1 -1
- package/_mjs/data/Either/api/alignWith.mjs +1 -0
- package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
- package/_mjs/data/Either/api.mjs +1 -1
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/definition.mjs +1 -1
- package/_mjs/data/Either/definition.mjs.map +1 -1
- package/_mjs/data/Either/instances.mjs +1 -1
- package/_mjs/data/Either/instances.mjs.map +1 -1
- package/_mjs/data/Intervals.mjs +2 -2
- package/_mjs/data/Intervals.mjs.map +1 -1
- package/_mjs/data/Patch/api.mjs +1 -0
- package/_mjs/data/Patch/api.mjs.map +1 -1
- package/_mjs/data/Struct/api.mjs +1 -0
- package/_mjs/data/Struct/api.mjs.map +1 -1
- package/_mjs/data/These/definition.mjs +1 -1
- package/_mjs/data/These/definition.mjs.map +1 -1
- package/_mjs/data/string/api.mjs +1 -1
- package/_mjs/data.mjs +2 -0
- package/_mjs/data.mjs.map +1 -0
- package/_mjs/global.mjs +2 -0
- package/_mjs/global.mjs.map +1 -0
- package/_mjs/index.mjs +2 -0
- package/_mjs/index.mjs.map +1 -0
- package/_mjs/json.mjs +2 -0
- package/_mjs/json.mjs.map +1 -0
- package/_mjs/optics/At/api.mjs +1 -0
- package/_mjs/optics/At/api.mjs.map +1 -1
- package/_mjs/optics/At/definition.mjs +1 -0
- package/_mjs/optics/At/definition.mjs.map +1 -1
- package/_mjs/optics/Index/api.mjs +1 -0
- package/_mjs/optics/Index/api.mjs.map +1 -1
- package/_mjs/optics/Iso/api.mjs +1 -0
- package/_mjs/optics/Iso/api.mjs.map +1 -1
- package/_mjs/optics/Iso/definition.mjs +2 -0
- package/_mjs/optics/Iso/definition.mjs.map +1 -1
- package/_mjs/optics/Lens/api.mjs +1 -0
- package/_mjs/optics/Lens/api.mjs.map +1 -1
- package/_mjs/optics/Lens/definition.mjs +2 -0
- package/_mjs/optics/Lens/definition.mjs.map +1 -1
- package/_mjs/optics/Optional/api/compose.mjs +1 -0
- package/_mjs/optics/Optional/api/compose.mjs.map +1 -1
- package/_mjs/optics/Optional/definition.mjs +1 -0
- package/_mjs/optics/Optional/definition.mjs.map +1 -1
- package/_mjs/optics/Prism/api/compose.mjs +1 -0
- package/_mjs/optics/Prism/api/compose.mjs.map +1 -1
- package/_mjs/optics/Prism/api/fromNullable.mjs +1 -0
- package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -1
- package/_mjs/optics/Prism/api/just.mjs +1 -0
- package/_mjs/optics/Prism/api/just.mjs.map +1 -1
- package/_mjs/optics/Prism/definition.mjs +1 -0
- package/_mjs/optics/Prism/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs +1 -0
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +1 -0
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
- package/_mjs/optics/Traversal/definition.mjs +2 -0
- package/_mjs/optics/Traversal/definition.mjs.map +1 -1
- package/_mjs/optics.mjs +2 -0
- package/_mjs/optics.mjs.map +1 -0
- package/_mjs/typeclass/Eq/derivations.mjs +1 -0
- package/_mjs/typeclass/Eq/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Guard/api.mjs +1 -0
- package/_mjs/typeclass/Guard/api.mjs.map +1 -1
- package/_mjs/typeclass/HashEq.mjs +1 -0
- package/_mjs/typeclass/HashEq.mjs.map +1 -1
- package/_mjs/typeclass/Monoid.mjs +1 -0
- package/_mjs/typeclass/Monoid.mjs.map +1 -1
- package/_mjs/typeclass/Ord/definition.mjs +1 -0
- package/_mjs/typeclass/Ord/definition.mjs.map +1 -1
- package/_mjs/typeclass/Ord/instances.mjs +3 -0
- package/_mjs/typeclass/Ord/instances.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/api.mjs +1 -0
- package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/derivations.mjs +1 -0
- package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Showable/show.mjs.map +1 -1
- package/_mjs/util.mjs +2 -0
- package/_mjs/util.mjs.map +1 -0
- package/_src/collection/compat/Array/api.ts +10 -10
- package/_src/collection/compat/Array/definition.ts +3 -3
- package/_src/collection/compat/Array/derivations.ts +85 -0
- package/_src/collection/compat/Array.ts +1 -0
- package/_src/collection/compat/Record/instances.ts +0 -1
- package/_src/collection/compat.ts +4 -0
- package/_src/collection/immutable/Conc/definition.ts +11 -10
- package/_src/collection/immutable/Conc/derivations.ts +28 -0
- package/_src/collection/immutable/Conc.ts +1 -0
- package/_src/collection/immutable/ImmutableArray/api.ts +6 -6
- package/_src/collection/immutable/ImmutableArray/constructors.ts +2 -2
- package/_src/collection/immutable/ImmutableArray/definition.ts +3 -0
- package/_src/collection/immutable/ImmutableArray/derivations.ts +28 -0
- package/_src/collection/immutable/ImmutableArray/instances.ts +5 -0
- package/_src/collection/immutable/ImmutableArray.ts +1 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +2 -2
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +2 -2
- package/_src/collection/immutable/ImmutableNonEmptyArray/derivations.ts +44 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray.ts +1 -0
- package/_src/collection/immutable/List/definition.ts +2 -2
- package/_src/collection/immutable/Vector/definition.ts +1 -1
- package/_src/collection/immutable/Vector/internal.ts +1 -1
- package/_src/collection/immutable.ts +12 -0
- package/_src/collection/mutable/HashMap.ts +4 -0
- package/_src/collection/mutable.ts +6 -0
- package/_src/collection/weak.ts +4 -0
- package/_src/collection.ts +7 -0
- package/_src/control/Eval/definition.ts +1 -1
- package/_src/control/Z/api.ts +24 -27
- package/_src/control/Z/definition.ts +6 -7
- package/_src/control/Z/runtime.ts +4 -4
- package/_src/control.ts +5 -0
- package/_src/data/DecodeError/definition.ts +8 -0
- package/_src/data/DecodeError/instances.ts +0 -0
- package/_src/data/DecodeError.ts +1 -0
- package/_src/data/Either/definition.ts +1 -1
- package/_src/data/Maybe/definition.ts +2 -2
- package/_src/data/These/definition.ts +1 -1
- package/_src/data/string/api.ts +1 -1
- package/_src/data.ts +35 -0
- package/_src/global.ts +252 -0
- package/_src/index.ts +8 -0
- package/_src/json.ts +5 -0
- package/_src/optics.ts +12 -0
- package/_src/typeclass/Showable/show.ts +2 -2
- package/_src/util.ts +8 -0
- package/collection/compat/Array/api.d.ts +10 -10
- package/collection/compat/Array/definition.d.ts +3 -3
- package/collection/compat/Array/derivations.d.ts +24 -0
- package/collection/compat/Array.d.ts +1 -0
- package/collection/compat.d.ts +2 -0
- package/collection/immutable/Conc/definition.d.ts +17 -16
- package/collection/immutable/Conc/derivations.d.ts +14 -0
- package/collection/immutable/Conc.d.ts +1 -0
- package/collection/immutable/ImmutableArray/api.d.ts +6 -6
- package/collection/immutable/ImmutableArray/constructors.d.ts +2 -2
- package/collection/immutable/ImmutableArray/definition.d.ts +4 -0
- package/collection/immutable/ImmutableArray/derivations.d.ts +14 -0
- package/collection/immutable/ImmutableArray.d.ts +1 -0
- package/collection/immutable/ImmutableNonEmptyArray/constructors.d.ts +2 -2
- package/collection/immutable/ImmutableNonEmptyArray/definition.d.ts +2 -2
- package/collection/immutable/ImmutableNonEmptyArray/derivations.d.ts +14 -0
- package/collection/immutable/ImmutableNonEmptyArray.d.ts +1 -0
- package/collection/immutable/List/definition.d.ts +2 -2
- package/collection/immutable/Vector/definition.d.ts +1 -1
- package/collection/immutable/Vector/internal.d.ts +1 -1
- package/collection/immutable.d.ts +10 -0
- package/collection/mutable/HashMap.d.ts +1 -0
- package/collection/mutable.d.ts +4 -0
- package/collection/weak.d.ts +2 -0
- package/collection.d.ts +5 -0
- package/control/Z/api.d.ts +24 -24
- package/control/Z/definition.d.ts +6 -6
- package/control/Z/runtime.d.ts +4 -4
- package/control.d.ts +3 -0
- package/data/DecodeError/definition.d.ts +6 -0
- package/data/DecodeError/instances.d.ts +1 -0
- package/data/DecodeError.d.ts +1 -0
- package/data/Maybe/definition.d.ts +4 -2
- package/data/string/api.d.ts +1 -1
- package/data.d.ts +33 -0
- package/global.d.ts +237 -0
- package/index.d.ts +8 -0
- package/json.d.ts +3 -0
- package/optics.d.ts +10 -0
- package/package.json +1 -1
- package/typeclass/Showable/show.d.ts +1 -1
- package/util.d.ts +6 -0
package/_src/control/Z/api.ts
CHANGED
@@ -60,7 +60,7 @@ export function bimap_<W, S1, S2, R, E, A, G, B>(
|
|
60
60
|
export function catchAll_<W, S1, S2, R, E, A, S3, R1, E1, B>(
|
61
61
|
fa: Z<W, S1, S2, R, E, A>,
|
62
62
|
onFailure: (e: E) => Z<W, S1, S3, R1, E1, B>,
|
63
|
-
): Z<W, S1, S3, R
|
63
|
+
): Z<W, S1, S3, R | R1, E1, A | B> {
|
64
64
|
return fa.matchZ(onFailure, Z.succeedNow);
|
65
65
|
}
|
66
66
|
|
@@ -70,7 +70,7 @@ export function catchAll_<W, S1, S2, R, E, A, S3, R1, E1, B>(
|
|
70
70
|
export function catchJust_<W, S1, S2, R, E, A, S3, R1, E1, B>(
|
71
71
|
fa: Z<W, S1, S2, R, E, A>,
|
72
72
|
f: (e: E) => Maybe<Z<W, S1, S3, R1, E1, B>>,
|
73
|
-
): Z<W, S1, S2 | S3, R
|
73
|
+
): Z<W, S1, S2 | S3, R | R1, E | E1, A | B> {
|
74
74
|
return fa.catchAll((e) => f(e).getOrElse(fa));
|
75
75
|
}
|
76
76
|
|
@@ -184,31 +184,28 @@ export function erase<W, S1, S2, R, E, A>(wa: Z<W, S1, S2, R, E, A>): Z<never, S
|
|
184
184
|
/**
|
185
185
|
* @tsplus static fncts.control.ZOps fail
|
186
186
|
*/
|
187
|
-
export function fail<E>(e: Lazy<E>, __tsplusTrace?: string): Z<never, unknown, never,
|
187
|
+
export function fail<E>(e: Lazy<E>, __tsplusTrace?: string): Z<never, unknown, never, never, E, never> {
|
188
188
|
return Z.failCause(Cause.fail(e()));
|
189
189
|
}
|
190
190
|
|
191
191
|
/**
|
192
192
|
* @tsplus static fncts.control.ZOps failNow
|
193
193
|
*/
|
194
|
-
export function failNow<E>(e: E, __tsplusTrace?: string): Z<never, unknown, never,
|
194
|
+
export function failNow<E>(e: E, __tsplusTrace?: string): Z<never, unknown, never, never, E, never> {
|
195
195
|
return Z.failCauseNow(Cause.fail(e));
|
196
196
|
}
|
197
197
|
|
198
198
|
/**
|
199
199
|
* @tsplus static fncts.control.ZOps failCause
|
200
200
|
*/
|
201
|
-
export function failCause<E>(
|
202
|
-
cause: Lazy<Cause<E>>,
|
203
|
-
__tsplusTrace?: string,
|
204
|
-
): Z<never, unknown, never, unknown, E, never> {
|
201
|
+
export function failCause<E>(cause: Lazy<Cause<E>>, __tsplusTrace?: string): Z<never, unknown, never, never, E, never> {
|
205
202
|
return Z.defer(Z.failCauseNow(cause()));
|
206
203
|
}
|
207
204
|
|
208
205
|
/**
|
209
206
|
* @tsplus static fncts.control.ZOps failCauseNow
|
210
207
|
*/
|
211
|
-
export function failCauseNow<E>(cause: Cause<E>, __tsplusTrace?: string): Z<never, unknown, never,
|
208
|
+
export function failCauseNow<E>(cause: Cause<E>, __tsplusTrace?: string): Z<never, unknown, never, never, E, never> {
|
212
209
|
return new Fail(cause);
|
213
210
|
}
|
214
211
|
|
@@ -226,14 +223,14 @@ export function flatten<W, S1, S2, R, E, A, W1, S3, R1, E1>(
|
|
226
223
|
*
|
227
224
|
* @tsplus static fncts.control.ZOps get
|
228
225
|
*/
|
229
|
-
export function get<S>(): Z<never, S, S,
|
226
|
+
export function get<S>(): Z<never, S, S, never, never, S> {
|
230
227
|
return Z.modify((s) => [s, s]);
|
231
228
|
}
|
232
229
|
|
233
230
|
/**
|
234
231
|
* @tsplus static fncts.control.ZOps gets
|
235
232
|
*/
|
236
|
-
export function gets<S, A>(f: (s: S) => A): Z<never, S, S,
|
233
|
+
export function gets<S, A>(f: (s: S) => A): Z<never, S, S, never, never, A> {
|
237
234
|
return Z.modify((s) => [f(s), s]);
|
238
235
|
}
|
239
236
|
|
@@ -247,14 +244,14 @@ export function getsZ<S, W, R, E, A>(f: (s: S) => Z<W, S, S, R, E, A>): Z<W, S,
|
|
247
244
|
/**
|
248
245
|
* @tsplus static fncts.control.ZOps halt
|
249
246
|
*/
|
250
|
-
export function halt(defect: Lazy<unknown>, __tsplusTrace?: string): Z<never, unknown, never,
|
247
|
+
export function halt(defect: Lazy<unknown>, __tsplusTrace?: string): Z<never, unknown, never, never, never, never> {
|
251
248
|
return Z.failCause(Cause.halt(defect()));
|
252
249
|
}
|
253
250
|
|
254
251
|
/**
|
255
252
|
* @tsplus static fncts.control.ZOps haltNow
|
256
253
|
*/
|
257
|
-
export function haltNow(defect: unknown, __tsplusTrace?: string): Z<never, unknown, never,
|
254
|
+
export function haltNow(defect: unknown, __tsplusTrace?: string): Z<never, unknown, never, never, never, never> {
|
258
255
|
return Z.failCauseNow(Cause.halt(defect));
|
259
256
|
}
|
260
257
|
|
@@ -341,7 +338,7 @@ export function matchZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2, E
|
|
341
338
|
fa: Z<W, S1, S2, R, E, A>,
|
342
339
|
onFailure: (e: E) => Z<W1, S5, S3, R1, E1, B>,
|
343
340
|
onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>,
|
344
|
-
): Z<W | W1 | W2, S1 & S5, S3 | S4, R
|
341
|
+
): Z<W | W1 | W2, S1 & S5, S3 | S4, R | R1 | R2, E1 | E2, B | C> {
|
345
342
|
return fa.matchCauseZ((cause) => cause.failureOrCause.match(onFailure, Z.failCauseNow), onSuccess);
|
346
343
|
}
|
347
344
|
|
@@ -352,7 +349,7 @@ export function matchCauseZ_<W, S1, S2, R, E, A, W1, S0, S3, R1, E1, B, W2, S4,
|
|
352
349
|
fa: Z<W, S1, S2, R, E, A>,
|
353
350
|
onFailure: (e: Cause<E>) => Z<W1, S0, S3, R1, E1, B>,
|
354
351
|
onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>,
|
355
|
-
): Z<W | W1 | W2, S0 & S1, S3 | S4, R
|
352
|
+
): Z<W | W1 | W2, S0 & S1, S3 | S4, R | R1 | R2, E1 | E2, B | C> {
|
356
353
|
return matchLogCauseZ_(
|
357
354
|
fa,
|
358
355
|
(ws, e) => onFailure(e).mapLog((w1s) => ws.concat(w1s)),
|
@@ -367,7 +364,7 @@ export function matchLogZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2
|
|
367
364
|
fa: Z<W, S1, S2, R, E, A>,
|
368
365
|
onFailure: (ws: Conc<W>, e: E) => Z<W1, S5, S3, R1, E1, B>,
|
369
366
|
onSuccess: (ws: Conc<W>, a: A) => Z<W2, S2, S4, R2, E2, C>,
|
370
|
-
): Z<W | W1 | W2, S1 & S5, S3 | S4, R
|
367
|
+
): Z<W | W1 | W2, S1 & S5, S3 | S4, R | R1 | R2, E1 | E2, B | C> {
|
371
368
|
return matchLogCauseZ_(
|
372
369
|
fa,
|
373
370
|
(ws, cause) => cause.failureOrCause.match((e) => onFailure(ws, e), Z.failCauseNow),
|
@@ -398,7 +395,7 @@ export function matchLogCauseZ_<W, S1, S2, R, E, A, W1, S0, S3, R1, E1, B, W2, S
|
|
398
395
|
*
|
399
396
|
* @tsplus static fncts.control.ZOps modify
|
400
397
|
*/
|
401
|
-
export function modify<S1, S2, A>(f: (s: S1) => readonly [A, S2]): Z<never, S1, S2,
|
398
|
+
export function modify<S1, S2, A>(f: (s: S1) => readonly [A, S2]): Z<never, S1, S2, never, never, A> {
|
402
399
|
return new Modify(f);
|
403
400
|
}
|
404
401
|
|
@@ -407,7 +404,7 @@ export function modify<S1, S2, A>(f: (s: S1) => readonly [A, S2]): Z<never, S1,
|
|
407
404
|
*
|
408
405
|
* @tsplus static fncts.control.ZOps modifyEither
|
409
406
|
*/
|
410
|
-
export function modifyEither<S1, S2, E, A>(f: (s: S1) => Either<E, readonly [A, S2]>): Z<never, S1, S2,
|
407
|
+
export function modifyEither<S1, S2, E, A>(f: (s: S1) => Either<E, readonly [A, S2]>): Z<never, S1, S2, never, E, A> {
|
411
408
|
return Z.get<S1>()
|
412
409
|
.map(f)
|
413
410
|
.flatMap((r) => r.match(Z.failNow, ([a, s2]) => Z.succeedNow(a).mapState(() => s2)));
|
@@ -419,7 +416,7 @@ export function modifyEither<S1, S2, E, A>(f: (s: S1) => Either<E, readonly [A,
|
|
419
416
|
export function orElse_<W, S1, S2, R, E, A, W1, S3, R1, E1, A1>(
|
420
417
|
fa: Z<W, S1, S2, R, E, A>,
|
421
418
|
fb: Lazy<Z<W1, S1, S3, R1, E1, A1>>,
|
422
|
-
): Z<W | W1, S1, S2 | S3, R
|
419
|
+
): Z<W | W1, S1, S2 | S3, R | R1, E | E1, A | A1> {
|
423
420
|
return fa.matchZ(() => fb(), Z.succeedNow);
|
424
421
|
}
|
425
422
|
|
@@ -432,7 +429,7 @@ export function orElse_<W, S1, S2, R, E, A, W1, S3, R1, E1, A1>(
|
|
432
429
|
export function orElseEither_<W, S1, S2, R, E, A, S3, S4, R1, E1, A1>(
|
433
430
|
fa: Z<W, S1, S2, R, E, A>,
|
434
431
|
that: Lazy<Z<W, S3, S4, R1, E1, A1>>,
|
435
|
-
): Z<W, S1 & S3, S2 | S4, R
|
432
|
+
): Z<W, S1 & S3, S2 | S4, R | R1, E1, Either<A, A1>> {
|
436
433
|
return fa.matchZ(
|
437
434
|
() => that().map(Either.right),
|
438
435
|
(a) => Z.succeedNow(Either.left(a)),
|
@@ -454,7 +451,7 @@ export function provideEnvironment_<W, S1, S2, R, E, A>(
|
|
454
451
|
*
|
455
452
|
* @tsplus static fncts.control.ZOps put
|
456
453
|
*/
|
457
|
-
export function put<S>(s: S): Z<never, unknown, S,
|
454
|
+
export function put<S>(s: S): Z<never, unknown, S, never, never, void> {
|
458
455
|
return Z.modify(() => [undefined, s]);
|
459
456
|
}
|
460
457
|
|
@@ -487,7 +484,7 @@ export function repeatUntil_<W, S1, S2 extends S1, R, E, A>(
|
|
487
484
|
export function succeed<A, W = never, S1 = unknown, S2 = never>(
|
488
485
|
effect: Lazy<A>,
|
489
486
|
__tsplusTrace?: string,
|
490
|
-
): Z<W, S1, S2,
|
487
|
+
): Z<W, S1, S2, never, never, A> {
|
491
488
|
return new Succeed(effect);
|
492
489
|
}
|
493
490
|
|
@@ -497,7 +494,7 @@ export function succeed<A, W = never, S1 = unknown, S2 = never>(
|
|
497
494
|
export function succeedNow<A, W = never, S1 = unknown, S2 = never>(
|
498
495
|
a: A,
|
499
496
|
__tsplusTrace?: string,
|
500
|
-
): Z<W, S1, S2,
|
497
|
+
): Z<W, S1, S2, never, never, A> {
|
501
498
|
return new SucceedNow(a);
|
502
499
|
}
|
503
500
|
|
@@ -514,14 +511,14 @@ export function tap_<W, S1, S2, R, E, A, W1, S3, R1, E1, B>(
|
|
514
511
|
/**
|
515
512
|
* @tsplus static fncts.control.ZOps tell
|
516
513
|
*/
|
517
|
-
export function tell<W>(w: W): Z<W, unknown, never,
|
514
|
+
export function tell<W>(w: W): Z<W, unknown, never, never, never, void> {
|
518
515
|
return Z.tellAll(Conc.single(w));
|
519
516
|
}
|
520
517
|
|
521
518
|
/**
|
522
519
|
* @tsplus static fncts.control.ZOps tellAll
|
523
520
|
*/
|
524
|
-
export function tellAll<W>(ws: Conc<W>): Z<W, unknown, never,
|
521
|
+
export function tellAll<W>(ws: Conc<W>): Z<W, unknown, never, never, never, void> {
|
525
522
|
return new Tell(ws);
|
526
523
|
}
|
527
524
|
|
@@ -540,14 +537,14 @@ export function transform_<W, S1, S2, R, E, A, S3, B>(
|
|
540
537
|
/**
|
541
538
|
* @tsplus static fncts.control.ZOps unit
|
542
539
|
*/
|
543
|
-
export const unit: Z<never, unknown, never,
|
540
|
+
export const unit: Z<never, unknown, never, never, never, void> = Z.succeedNow(undefined);
|
544
541
|
|
545
542
|
/**
|
546
543
|
* Constructs a computation from the specified update function.
|
547
544
|
*
|
548
545
|
* @tsplus static fncts.control.ZOps update
|
549
546
|
*/
|
550
|
-
export function update<S1, S2>(f: (s: S1) => S2): Z<never, S1, S2,
|
547
|
+
export function update<S1, S2>(f: (s: S1) => S2): Z<never, S1, S2, never, never, void> {
|
551
548
|
return Z.modify((s) => [undefined, f(s)]);
|
552
549
|
}
|
553
550
|
|
@@ -32,7 +32,7 @@ export abstract class Z<W, S1, S2, R, E, A> {
|
|
32
32
|
readonly _W!: () => W;
|
33
33
|
readonly _S1!: (_: S1) => void;
|
34
34
|
readonly _S2!: () => S2;
|
35
|
-
readonly _R!: (
|
35
|
+
readonly _R!: () => R;
|
36
36
|
readonly _E!: () => E;
|
37
37
|
readonly _A!: () => A;
|
38
38
|
}
|
@@ -75,14 +75,14 @@ export const enum ZTag {
|
|
75
75
|
MapLog = "MapLog",
|
76
76
|
}
|
77
77
|
|
78
|
-
export class SucceedNow<A> extends Z<never, unknown, never,
|
78
|
+
export class SucceedNow<A> extends Z<never, unknown, never, never, never, A> {
|
79
79
|
readonly _tag = ZTag.SucceedNow;
|
80
80
|
constructor(readonly value: A) {
|
81
81
|
super();
|
82
82
|
}
|
83
83
|
}
|
84
84
|
|
85
|
-
export class Succeed<A> extends Z<never, unknown, never,
|
85
|
+
export class Succeed<A> extends Z<never, unknown, never, never, never, A> {
|
86
86
|
readonly _tag = ZTag.Succeed;
|
87
87
|
constructor(readonly effect: () => A) {
|
88
88
|
super();
|
@@ -96,14 +96,14 @@ export class Defer<W, S1, S2, R, E, A> extends Z<W, S1, S2, R, E, A> {
|
|
96
96
|
}
|
97
97
|
}
|
98
98
|
|
99
|
-
export class Fail<E> extends Z<never, unknown, never,
|
99
|
+
export class Fail<E> extends Z<never, unknown, never, never, E, never> {
|
100
100
|
readonly _tag = ZTag.Fail;
|
101
101
|
constructor(readonly cause: Cause<E>) {
|
102
102
|
super();
|
103
103
|
}
|
104
104
|
}
|
105
105
|
|
106
|
-
export class Modify<S1, S2, A> extends Z<never, S1, S2,
|
106
|
+
export class Modify<S1, S2, A> extends Z<never, S1, S2, never, never, A> {
|
107
107
|
readonly _tag = ZTag.Modify;
|
108
108
|
constructor(readonly run: (s1: S1) => readonly [A, S2]) {
|
109
109
|
super();
|
@@ -149,7 +149,7 @@ export class Provide<W, S1, S2, R, E, A> extends Z<W, S1, S2, never, E, A> {
|
|
149
149
|
}
|
150
150
|
}
|
151
151
|
|
152
|
-
export class Tell<W> extends Z<W, unknown, never,
|
152
|
+
export class Tell<W> extends Z<W, unknown, never, never, never, void> {
|
153
153
|
readonly _tag = ZTag.Tell;
|
154
154
|
constructor(readonly log: Conc<W>) {
|
155
155
|
super();
|
@@ -179,7 +179,6 @@ export type Concrete =
|
|
179
179
|
/**
|
180
180
|
* @tsplus static fncts.control.ZOps concrete
|
181
181
|
*/
|
182
|
-
// @ts-expect-error
|
183
182
|
export function concrete(_: Z<any, any, any, any, any, any>): asserts _ is Concrete {
|
184
183
|
//
|
185
184
|
}
|
@@ -246,7 +246,7 @@ export function unsafeRunReader_<W, R, A>(ma: Z<W, unknown, never, R, never, A>,
|
|
246
246
|
*
|
247
247
|
* @tsplus fluent fncts.control.Z unsafeRunState
|
248
248
|
*/
|
249
|
-
export function unsafeRunState_<W, S1, S2, A>(ma: Z<W, S1, S2,
|
249
|
+
export function unsafeRunState_<W, S1, S2, A>(ma: Z<W, S1, S2, never, never, A>, s: S1): S2 {
|
250
250
|
return ma.unsafeRun(s)[0];
|
251
251
|
}
|
252
252
|
|
@@ -256,7 +256,7 @@ export function unsafeRunState_<W, S1, S2, A>(ma: Z<W, S1, S2, unknown, never, A
|
|
256
256
|
*
|
257
257
|
* @tsplus fluent fncts.control.Z unsafeRunStateResult
|
258
258
|
*/
|
259
|
-
export function unsafeRunStateResult_<W, S1, S2, A>(ma: Z<W, S1, S2,
|
259
|
+
export function unsafeRunStateResult_<W, S1, S2, A>(ma: Z<W, S1, S2, never, never, A>, s: S1): A {
|
260
260
|
return ma.unsafeRunAll(s)[1].match(
|
261
261
|
(cause) => {
|
262
262
|
// throw cause.squash
|
@@ -271,7 +271,7 @@ export function unsafeRunStateResult_<W, S1, S2, A>(ma: Z<W, S1, S2, unknown, ne
|
|
271
271
|
*
|
272
272
|
* @tsplus getter fncts.control.Z unsafeRunExit
|
273
273
|
*/
|
274
|
-
export function unsafeRunExit<E, A>(ma: Z<never, unknown, unknown,
|
274
|
+
export function unsafeRunExit<E, A>(ma: Z<never, unknown, unknown, never, E, A>): Exit<E, A> {
|
275
275
|
return ma.unsafeRunAll({} as never)[1].map(([_, a]) => a);
|
276
276
|
}
|
277
277
|
|
@@ -279,7 +279,7 @@ export function unsafeRunExit<E, A>(ma: Z<never, unknown, unknown, unknown, E, A
|
|
279
279
|
*
|
280
280
|
* @tsplus getter fncts.control.Z unsafeRunWriter
|
281
281
|
*/
|
282
|
-
export function unsafeRunWriter<W, A>(ma: Z<W, unknown, unknown,
|
282
|
+
export function unsafeRunWriter<W, A>(ma: Z<W, unknown, unknown, never, never, A>): readonly [Conc<W>, A] {
|
283
283
|
const [w, exit] = ma.unsafeRunAll({});
|
284
284
|
return exit.match(
|
285
285
|
() => {
|
package/_src/control.ts
ADDED
@@ -225,3 +225,11 @@ export class UnionError extends DecodeError {
|
|
225
225
|
.map((errors) => RoseTree(`${this.errors.length} error(s) found while decoding ${this.label}`, errors)),
|
226
226
|
);
|
227
227
|
}
|
228
|
+
|
229
|
+
export class EmptyError extends DecodeError {
|
230
|
+
readonly _tag = "EmptyError";
|
231
|
+
constructor(readonly actual: unknown) {
|
232
|
+
super();
|
233
|
+
}
|
234
|
+
render = Eval(RoseTree(cannotDecode(this.actual, "a collection containing at least one element")));
|
235
|
+
}
|
File without changes
|
package/_src/data/DecodeError.ts
CHANGED
@@ -3,7 +3,7 @@ export const enum EitherTag {
|
|
3
3
|
Right = "Right",
|
4
4
|
}
|
5
5
|
|
6
|
-
export const EitherTypeId = Symbol.for("fncts.
|
6
|
+
export const EitherTypeId = Symbol.for("fncts.data.Either");
|
7
7
|
export type EitherTypeId = typeof EitherTypeId;
|
8
8
|
|
9
9
|
export interface EitherF extends HKT {
|
@@ -23,7 +23,7 @@ const _nothingHash = Hashable.string("fncts.Nothing");
|
|
23
23
|
* @tsplus companion fncts.MaybeOps
|
24
24
|
*/
|
25
25
|
export class Maybe<A> {
|
26
|
-
|
26
|
+
declare _A: () => A;
|
27
27
|
readonly _typeId: MaybeTypdId = MaybeTypeId;
|
28
28
|
}
|
29
29
|
|
@@ -61,7 +61,7 @@ export class Nothing extends Maybe<never> {
|
|
61
61
|
/**
|
62
62
|
* @tsplus unify fncts.Maybe
|
63
63
|
*/
|
64
|
-
export function unifyMaybe<X extends Maybe<any>>(self: X): Maybe<[X] extends [
|
64
|
+
export function unifyMaybe<X extends Maybe<any>>(self: X): Maybe<[X] extends [{ _A: () => infer A }] ? A : never> {
|
65
65
|
return self;
|
66
66
|
}
|
67
67
|
|
package/_src/data/string/api.ts
CHANGED
@@ -175,7 +175,7 @@ export const under = Pipeable(under_);
|
|
175
175
|
/**
|
176
176
|
* Join newline-separated strings together.
|
177
177
|
*
|
178
|
-
* @tsplus getter fncts.
|
178
|
+
* @tsplus getter fncts.ImmutableArray unlines
|
179
179
|
*/
|
180
180
|
export function unlines(as: ReadonlyArray<string>): string {
|
181
181
|
return as.join("\n");
|
package/_src/data.ts
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
// codegen:start { preset: type-barrel, include: ./data/*.ts }
|
2
|
+
export type {} from "./data/bigint.js";
|
3
|
+
export type {} from "./data/boolean.js";
|
4
|
+
export type {} from "./data/Branded.js";
|
5
|
+
export type {} from "./data/Byte.js";
|
6
|
+
export type {} from "./data/CaseClass.js";
|
7
|
+
export type {} from "./data/Cause.js";
|
8
|
+
export type {} from "./data/Const.js";
|
9
|
+
export type {} from "./data/DecodeError.js";
|
10
|
+
export type {} from "./data/Decoder.js";
|
11
|
+
export type {} from "./data/Duration.js";
|
12
|
+
export type {} from "./data/Either.js";
|
13
|
+
export type {} from "./data/Environment.js";
|
14
|
+
export type {} from "./data/exceptions.js";
|
15
|
+
export type {} from "./data/ExecutionStrategy.js";
|
16
|
+
export type {} from "./data/Exit.js";
|
17
|
+
export type {} from "./data/FiberId.js";
|
18
|
+
export type {} from "./data/function.js";
|
19
|
+
export type {} from "./data/Identity.js";
|
20
|
+
export type {} from "./data/Interval.js";
|
21
|
+
export type {} from "./data/Intervals.js";
|
22
|
+
export type {} from "./data/Maybe.js";
|
23
|
+
export type {} from "./data/Newtype.js";
|
24
|
+
export type {} from "./data/number.js";
|
25
|
+
export type {} from "./data/object.js";
|
26
|
+
export type {} from "./data/Patch.js";
|
27
|
+
export type {} from "./data/Predicate.js";
|
28
|
+
export type {} from "./data/Refinement.js";
|
29
|
+
export type {} from "./data/string.js";
|
30
|
+
export type {} from "./data/Tag.js";
|
31
|
+
export type {} from "./data/These.js";
|
32
|
+
export type {} from "./data/Trace.js";
|
33
|
+
export type {} from "./data/TraceElement.js";
|
34
|
+
export type {} from "./data/Zipped.js";
|
35
|
+
// codegen:end
|
package/_src/global.ts
ADDED
@@ -0,0 +1,252 @@
|
|
1
|
+
/**
|
2
|
+
* @tsplus global
|
3
|
+
*/
|
4
|
+
import type {} from "@fncts/base";
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @tsplus global
|
8
|
+
*/
|
9
|
+
import {} from "@fncts/base/collection/compat/Array";
|
10
|
+
/**
|
11
|
+
* @tsplus global
|
12
|
+
*/
|
13
|
+
import { Conc, ConcBuilder } from "@fncts/base/collection/immutable/Conc";
|
14
|
+
/**
|
15
|
+
* @tsplus global
|
16
|
+
*/
|
17
|
+
import { Dictionary } from "@fncts/base/collection/immutable/Dictionary/definition";
|
18
|
+
/**
|
19
|
+
* @tsplus global
|
20
|
+
*/
|
21
|
+
import { HashMap } from "@fncts/base/collection/immutable/HashMap/definition";
|
22
|
+
/**
|
23
|
+
* @tsplus global
|
24
|
+
*/
|
25
|
+
import { HashSet } from "@fncts/base/collection/immutable/HashSet/definition";
|
26
|
+
/**
|
27
|
+
* @tsplus global
|
28
|
+
*/
|
29
|
+
import { ImmutableArray } from "@fncts/base/collection/immutable/ImmutableArray/definition";
|
30
|
+
/**
|
31
|
+
* @tsplus global
|
32
|
+
*/
|
33
|
+
import {
|
34
|
+
ImmutableNonEmptyArray,
|
35
|
+
NonEmptyArray,
|
36
|
+
ReadonlyNonEmptyArray,
|
37
|
+
} from "@fncts/base/collection/immutable/ImmutableNonEmptyArray/definition";
|
38
|
+
/**
|
39
|
+
* @tsplus global
|
40
|
+
*/
|
41
|
+
import { Cons, List, Nil } from "@fncts/base/collection/immutable/List/definition";
|
42
|
+
/**
|
43
|
+
* @tsplus global
|
44
|
+
*/
|
45
|
+
import { Queue as ImmutableQueue } from "@fncts/base/collection/immutable/Queue/definition";
|
46
|
+
/**
|
47
|
+
* @tsplus global
|
48
|
+
*/
|
49
|
+
import { RoseTree } from "@fncts/base/collection/immutable/RoseTree";
|
50
|
+
/**
|
51
|
+
* @tsplus global
|
52
|
+
*/
|
53
|
+
import { SortedMap } from "@fncts/base/collection/immutable/SortedMap/definition";
|
54
|
+
/**
|
55
|
+
* @tsplus global
|
56
|
+
*/
|
57
|
+
import { Vector } from "@fncts/base/collection/immutable/Vector";
|
58
|
+
/**
|
59
|
+
* @tsplus global
|
60
|
+
*/
|
61
|
+
import { Iterable } from "@fncts/base/collection/Iterable/definition";
|
62
|
+
/**
|
63
|
+
* @tsplus global
|
64
|
+
*/
|
65
|
+
import { HashMap as MutableHashMap } from "@fncts/base/collection/mutable/HashMap";
|
66
|
+
/**
|
67
|
+
* @tsplus global
|
68
|
+
*/
|
69
|
+
import { HashSet as MutableHashSet } from "@fncts/base/collection/mutable/HashSet";
|
70
|
+
/**
|
71
|
+
* @tsplus global
|
72
|
+
*/
|
73
|
+
import { ListBuffer } from "@fncts/base/collection/mutable/ListBuffer";
|
74
|
+
/**
|
75
|
+
* @tsplus global
|
76
|
+
*/
|
77
|
+
import { Eval } from "@fncts/base/control/Eval/definition";
|
78
|
+
/**
|
79
|
+
* @tsplus global
|
80
|
+
*/
|
81
|
+
import { LazyValue } from "@fncts/base/control/LazyValue";
|
82
|
+
/**
|
83
|
+
* @tsplus global
|
84
|
+
*/
|
85
|
+
import { Z } from "@fncts/base/control/Z/definition";
|
86
|
+
/**
|
87
|
+
* @tsplus global
|
88
|
+
*/
|
89
|
+
import { Byte } from "@fncts/base/data/Byte";
|
90
|
+
/**
|
91
|
+
* @tsplus global
|
92
|
+
*/
|
93
|
+
import { CaseClass } from "@fncts/base/data/CaseClass";
|
94
|
+
/**
|
95
|
+
* @tsplus global
|
96
|
+
*/
|
97
|
+
import { Cause } from "@fncts/base/data/Cause/definition";
|
98
|
+
/**
|
99
|
+
* @tsplus global
|
100
|
+
*/
|
101
|
+
import { Const } from "@fncts/base/data/Const/definition";
|
102
|
+
/**
|
103
|
+
* @tsplus global
|
104
|
+
*/
|
105
|
+
import { Datum } from "@fncts/base/data/Datum/definition";
|
106
|
+
/**
|
107
|
+
* @tsplus global
|
108
|
+
*/
|
109
|
+
import { DatumEither } from "@fncts/base/data/DatumEither/definition";
|
110
|
+
/**
|
111
|
+
* @tsplus global
|
112
|
+
*/
|
113
|
+
import { Decoder } from "@fncts/base/data/Decoder";
|
114
|
+
/**
|
115
|
+
* @tsplus global
|
116
|
+
*/
|
117
|
+
import { Duration } from "@fncts/base/data/Duration/definition";
|
118
|
+
/**
|
119
|
+
* @tsplus global
|
120
|
+
*/
|
121
|
+
import { Either } from "@fncts/base/data/Either/definition";
|
122
|
+
/**
|
123
|
+
* @tsplus global
|
124
|
+
*/
|
125
|
+
import { Environment } from "@fncts/base/data/Environment/definition";
|
126
|
+
/**
|
127
|
+
* @tsplus global
|
128
|
+
*/
|
129
|
+
import {
|
130
|
+
ArrayIndexOutOfBoundsError,
|
131
|
+
IllegalArgumentError,
|
132
|
+
IllegalStateError,
|
133
|
+
IndexOutOfBoundsError,
|
134
|
+
InterruptedException,
|
135
|
+
InvalidCapacityError,
|
136
|
+
isInterruptedException,
|
137
|
+
isInvalidCapacityError,
|
138
|
+
NoSuchElementError,
|
139
|
+
} from "@fncts/base/data/exceptions";
|
140
|
+
/**
|
141
|
+
* @tsplus global
|
142
|
+
*/
|
143
|
+
import { ExecutionStrategy } from "@fncts/base/data/ExecutionStrategy";
|
144
|
+
/**
|
145
|
+
* @tsplus global
|
146
|
+
*/
|
147
|
+
import { Exit } from "@fncts/base/data/Exit/definition";
|
148
|
+
/**
|
149
|
+
* @tsplus global
|
150
|
+
*/
|
151
|
+
import { FiberId } from "@fncts/base/data/FiberId/definition";
|
152
|
+
/**
|
153
|
+
* @tsplus global
|
154
|
+
*/
|
155
|
+
import { unsafeCoerce } from "@fncts/base/data/function/api";
|
156
|
+
/**
|
157
|
+
* @tsplus global
|
158
|
+
*/
|
159
|
+
import { Lazy } from "@fncts/base/data/function/definition";
|
160
|
+
/**
|
161
|
+
* @tsplus global
|
162
|
+
*/
|
163
|
+
import { Identity } from "@fncts/base/data/Identity/definition";
|
164
|
+
/**
|
165
|
+
* @tsplus global
|
166
|
+
*/
|
167
|
+
import { Interval } from "@fncts/base/data/Interval";
|
168
|
+
/**
|
169
|
+
* @tsplus global
|
170
|
+
*/
|
171
|
+
import { Intervals } from "@fncts/base/data/Intervals";
|
172
|
+
/**
|
173
|
+
* @tsplus global
|
174
|
+
*/
|
175
|
+
import { Just, Maybe, MaybeTag, Nothing } from "@fncts/base/data/Maybe/definition";
|
176
|
+
/**
|
177
|
+
* @tsplus global
|
178
|
+
*/
|
179
|
+
import { Newtype, NewtypeIso } from "@fncts/base/data/Newtype";
|
180
|
+
/**
|
181
|
+
* @tsplus global
|
182
|
+
*/
|
183
|
+
import {} from "@fncts/base/data/number/definition";
|
184
|
+
import {} from "@fncts/base/data/object/definition";
|
185
|
+
/**
|
186
|
+
* @tsplus global
|
187
|
+
*/
|
188
|
+
import {} from "@fncts/base/data/object/definition";
|
189
|
+
/**
|
190
|
+
* @tsplus global
|
191
|
+
*/
|
192
|
+
import { Predicate, PredicateWithIndex } from "@fncts/base/data/Predicate/definition";
|
193
|
+
/**
|
194
|
+
* @tsplus global
|
195
|
+
*/
|
196
|
+
import { Refinement, RefinementWithIndex } from "@fncts/base/data/Refinement/definition";
|
197
|
+
/**
|
198
|
+
* @tsplus global
|
199
|
+
*/
|
200
|
+
import {} from "@fncts/base/data/string/definition";
|
201
|
+
/**
|
202
|
+
* @tsplus global
|
203
|
+
*/
|
204
|
+
import { Struct } from "@fncts/base/data/Struct/definition";
|
205
|
+
/**
|
206
|
+
* @tsplus global
|
207
|
+
*/
|
208
|
+
import { Tag } from "@fncts/base/data/Tag/definition";
|
209
|
+
/**
|
210
|
+
* @tsplus global
|
211
|
+
*/
|
212
|
+
import { These } from "@fncts/base/data/These";
|
213
|
+
/**
|
214
|
+
* @tsplus global
|
215
|
+
*/
|
216
|
+
import { Trace } from "@fncts/base/data/Trace/definition";
|
217
|
+
/**
|
218
|
+
* @tsplus global
|
219
|
+
*/
|
220
|
+
import { TraceElement } from "@fncts/base/data/TraceElement/definition";
|
221
|
+
/**
|
222
|
+
* @tsplus global
|
223
|
+
*/
|
224
|
+
import { Zipped } from "@fncts/base/data/Zipped";
|
225
|
+
/**
|
226
|
+
* @tsplus global
|
227
|
+
*/
|
228
|
+
import { Stack } from "@fncts/base/internal/Stack";
|
229
|
+
/**
|
230
|
+
* @tsplus global
|
231
|
+
*/
|
232
|
+
import { Equatable } from "@fncts/base/typeclass/Equatable";
|
233
|
+
/**
|
234
|
+
* @tsplus global
|
235
|
+
*/
|
236
|
+
import { Guard } from "@fncts/base/typeclass/Guard";
|
237
|
+
/**
|
238
|
+
* @tsplus global
|
239
|
+
*/
|
240
|
+
import { Has } from "@fncts/base/typeclass/Has";
|
241
|
+
/**
|
242
|
+
* @tsplus global
|
243
|
+
*/
|
244
|
+
import { Hashable } from "@fncts/base/typeclass/Hashable";
|
245
|
+
/**
|
246
|
+
* @tsplus global
|
247
|
+
*/
|
248
|
+
import { hasTypeId, isByte, isObject } from "@fncts/base/util/predicates";
|
249
|
+
/**
|
250
|
+
* @tsplus global
|
251
|
+
*/
|
252
|
+
import { HKT } from "@fncts/typelevel/HKT";
|
package/_src/index.ts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
export type {} from "./collection.js";
|
2
|
+
export type {} from "./control.js";
|
3
|
+
export type {} from "./data.js";
|
4
|
+
export type {} from "./json.js";
|
5
|
+
export type {} from "./optics.js";
|
6
|
+
export type {} from "./typeclass.js";
|
7
|
+
export type {} from "./types.js";
|
8
|
+
export type {} from "./util.js";
|