@fncts/base 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/collection/Iterable/api/traverseConc.cjs +8 -8
- package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
- package/_cjs/collection/Iterable/api.cjs +497 -444
- package/_cjs/collection/Iterable/api.cjs.map +1 -1
- package/_cjs/collection/Iterable/constructors.cjs +7 -7
- package/_cjs/collection/Iterable/constructors.cjs.map +1 -1
- package/_cjs/collection/compat/Array/api.cjs +16 -12
- package/_cjs/collection/compat/Array/api.cjs.map +1 -1
- package/_cjs/collection/compat/Array/derivations.cjs +41 -19
- package/_cjs/collection/compat/Array/derivations.cjs.map +1 -1
- package/_cjs/collection/compat/ArrayLike/api.cjs +1 -1
- package/_cjs/collection/compat/ArrayLike/api.cjs.map +1 -1
- package/_cjs/collection/compat/Record/instances.cjs +39 -3
- package/_cjs/collection/compat/Record/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs +1 -1
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api.cjs +866 -765
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/definition.cjs +55 -53
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/derivations.cjs +13 -2
- package/_cjs/collection/immutable/Conc/derivations.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/api.cjs +57 -44
- package/_cjs/collection/immutable/Dictionary/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/api.cjs +351 -258
- package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/internal.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/api.cjs +230 -192
- package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/definition.cjs +1 -1
- package/_cjs/collection/immutable/HashSet/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs +6 -4
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs +6 -4
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs +6 -4
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs +15 -13
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api.cjs +943 -749
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs +12 -1
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs +33 -33
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +338 -273
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs +15 -4
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs +2 -2
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +12 -12
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api/foldLeft.cjs +12 -10
- package/_cjs/collection/immutable/List/api/foldLeft.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api.cjs +164 -141
- package/_cjs/collection/immutable/List/api.cjs.map +1 -1
- package/_cjs/collection/immutable/List.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/api.cjs +64 -48
- package/_cjs/collection/immutable/Queue/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/definition.cjs +1 -1
- package/_cjs/collection/immutable/Queue/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/api.cjs +50 -36
- package/_cjs/collection/immutable/RoseTree/api.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/api.cjs +408 -368
- package/_cjs/collection/immutable/SortedMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/api.cjs +723 -608
- package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/definition.cjs +18 -16
- package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/internal.cjs +40 -39
- package/_cjs/collection/immutable/Vector/internal.cjs.map +1 -1
- package/_cjs/collection/mutable/HashMap.cjs +3 -5
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/mutable/HashSet.cjs.map +1 -1
- package/_cjs/collection/mutable/ListBuffer.cjs +2 -2
- package/_cjs/collection/mutable/ListBuffer.cjs.map +1 -1
- package/_cjs/collection/mutable/internal.cjs +0 -2
- package/_cjs/collection/mutable/internal.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakMap.cjs +7 -7
- package/_cjs/collection/weak/IterableWeakMap.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakSet.cjs +7 -7
- package/_cjs/collection/weak/IterableWeakSet.cjs.map +1 -1
- package/_cjs/control/Eval/api.cjs +55 -43
- package/_cjs/control/Eval/api.cjs.map +1 -1
- package/_cjs/control/Eval/instance.cjs +4 -4
- package/_cjs/control/Eval/instance.cjs.map +1 -1
- package/_cjs/control/Eval/run.cjs +1 -1
- package/_cjs/control/Eval/run.cjs.map +1 -1
- package/_cjs/control/Z/api.cjs +241 -172
- package/_cjs/control/Z/api.cjs.map +1 -1
- package/_cjs/control/Z/instances.cjs +3 -3
- package/_cjs/control/Z/instances.cjs.map +1 -1
- package/_cjs/control/Z/runtime.cjs +250 -241
- package/_cjs/control/Z/runtime.cjs.map +1 -1
- package/_cjs/data/Branded/definition.cjs.map +1 -1
- package/_cjs/data/Branded/derivations.cjs +3 -3
- package/_cjs/data/Branded/derivations.cjs.map +1 -1
- package/_cjs/data/CaseClass.cjs.map +1 -1
- package/_cjs/data/Cause/api/fold.cjs +20 -18
- package/_cjs/data/Cause/api/fold.cjs.map +1 -1
- package/_cjs/data/Cause/api/isEmpty.cjs +1 -1
- package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
- package/_cjs/data/Cause/api/linearize.cjs +8 -8
- package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
- package/_cjs/data/Cause/api/prettyPrint.cjs +1 -1
- package/_cjs/data/Cause/api/prettyPrint.cjs.map +1 -1
- package/_cjs/data/Cause/api.cjs +160 -140
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Cause/definition.cjs +18 -18
- package/_cjs/data/Cause/definition.cjs.map +1 -1
- package/_cjs/data/Cause.cjs.map +1 -1
- package/_cjs/data/Const/api.cjs +8 -6
- package/_cjs/data/Const/api.cjs.map +1 -1
- package/_cjs/data/Const/instances.cjs +4 -4
- package/_cjs/data/Const/instances.cjs.map +1 -1
- package/_cjs/data/Datum/api.cjs +219 -176
- package/_cjs/data/Datum/api.cjs.map +1 -1
- package/_cjs/data/Datum/definition.cjs.map +1 -1
- package/_cjs/data/DatumEither/api.cjs +165 -133
- package/_cjs/data/DatumEither/api.cjs.map +1 -1
- package/_cjs/data/DecodeError/definition.cjs +14 -14
- package/_cjs/data/DecodeError/definition.cjs.map +1 -1
- package/_cjs/data/Decoder/api.cjs +9 -7
- package/_cjs/data/Decoder/api.cjs.map +1 -1
- package/_cjs/data/Duration/api.cjs +18 -12
- package/_cjs/data/Duration/api.cjs.map +1 -1
- package/_cjs/data/Either/api/align.cjs +8 -3
- package/_cjs/data/Either/api/align.cjs.map +1 -1
- package/_cjs/data/Either/api/alignWith.cjs +14 -12
- package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
- package/_cjs/data/Either/api.cjs +206 -169
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/constructors.cjs +11 -9
- package/_cjs/data/Either/constructors.cjs.map +1 -1
- package/_cjs/data/Either/destructors.cjs +16 -14
- package/_cjs/data/Either/destructors.cjs.map +1 -1
- package/_cjs/data/Either/instances.cjs +8 -8
- package/_cjs/data/Either/instances.cjs.map +1 -1
- package/_cjs/data/EitherT/api.cjs +8 -8
- package/_cjs/data/EitherT/api.cjs.map +1 -1
- package/_cjs/data/Encoder/api.cjs +134 -0
- package/_cjs/data/Encoder/api.cjs.map +1 -0
- package/_cjs/data/Encoder/definition.cjs +25 -0
- package/_cjs/data/Encoder/definition.cjs.map +1 -0
- package/_cjs/data/Encoder.cjs +32 -0
- package/_cjs/data/Encoder.cjs.map +1 -0
- package/_cjs/data/Environment/api.cjs +45 -33
- package/_cjs/data/Environment/api.cjs.map +1 -1
- package/_cjs/data/EnvironmentPatch.cjs +17 -13
- package/_cjs/data/EnvironmentPatch.cjs.map +1 -1
- package/_cjs/data/ExecutionStrategy.cjs +21 -29
- package/_cjs/data/ExecutionStrategy.cjs.map +1 -1
- package/_cjs/data/Exit/api.cjs +159 -127
- package/_cjs/data/Exit/api.cjs.map +1 -1
- package/_cjs/data/Exit/constructors.cjs +4 -4
- package/_cjs/data/Exit/constructors.cjs.map +1 -1
- package/_cjs/data/FiberId/api.cjs +23 -21
- package/_cjs/data/FiberId/api.cjs.map +1 -1
- package/_cjs/data/FiberId/constructors.cjs.map +1 -1
- package/_cjs/data/Identity/api.cjs +26 -18
- package/_cjs/data/Identity/api.cjs.map +1 -1
- package/_cjs/data/Identity/instances.cjs +3 -3
- package/_cjs/data/Identity/instances.cjs.map +1 -1
- package/_cjs/data/Interval.cjs +43 -33
- package/_cjs/data/Interval.cjs.map +1 -1
- package/_cjs/data/Intervals.cjs +35 -27
- package/_cjs/data/Intervals.cjs.map +1 -1
- package/_cjs/data/Maybe/api.cjs +160 -125
- package/_cjs/data/Maybe/api.cjs.map +1 -1
- package/_cjs/data/Maybe/constructors.cjs +2 -2
- package/_cjs/data/Maybe/constructors.cjs.map +1 -1
- package/_cjs/data/Maybe/definition.cjs.map +1 -1
- package/_cjs/data/Maybe/destructors.cjs +9 -7
- package/_cjs/data/Maybe/destructors.cjs.map +1 -1
- package/_cjs/data/Maybe/instances.cjs +11 -11
- package/_cjs/data/Maybe/instances.cjs.map +1 -1
- package/_cjs/data/Predicate/api.cjs +10 -8
- package/_cjs/data/Predicate/api.cjs.map +1 -1
- package/_cjs/data/Refinement/api.cjs +15 -9
- package/_cjs/data/Refinement/api.cjs.map +1 -1
- package/_cjs/data/Struct/api.cjs +62 -50
- package/_cjs/data/Struct/api.cjs.map +1 -1
- package/_cjs/data/Tag/constructors.cjs +3 -2
- package/_cjs/data/Tag/constructors.cjs.map +1 -1
- package/_cjs/data/Tag/definition.cjs +0 -3
- package/_cjs/data/Tag/definition.cjs.map +1 -1
- package/_cjs/data/These/api.cjs +188 -170
- package/_cjs/data/These/api.cjs.map +1 -1
- package/_cjs/data/These/constructors.cjs +1 -1
- package/_cjs/data/These/constructors.cjs.map +1 -1
- package/_cjs/data/These/destructors.cjs +39 -35
- package/_cjs/data/These/destructors.cjs.map +1 -1
- package/_cjs/data/These/instances.cjs +1 -1
- package/_cjs/data/These/instances.cjs.map +1 -1
- package/_cjs/data/Trace/api.cjs +7 -5
- package/_cjs/data/Trace/api.cjs.map +1 -1
- package/_cjs/data/Zipped.cjs.map +1 -1
- package/_cjs/data/function/api.cjs +6 -4
- package/_cjs/data/function/api.cjs.map +1 -1
- package/_cjs/data/function/pipe.cjs +9 -0
- package/_cjs/data/function/pipe.cjs.map +1 -1
- package/_cjs/data/string/api.cjs +53 -96
- package/_cjs/data/string/api.cjs.map +1 -1
- package/_cjs/global/api.cjs +4 -2
- package/_cjs/global/api.cjs.map +1 -1
- package/_cjs/internal/AtomicBoolean.cjs.map +1 -1
- package/_cjs/internal/AtomicNumber.cjs.map +1 -1
- package/_cjs/internal/AtomicReference.cjs.map +1 -1
- package/_cjs/internal/Stack.cjs +2 -2
- package/_cjs/internal/Stack.cjs.map +1 -1
- package/_cjs/optics/At/api.cjs +1 -1
- package/_cjs/optics/At/api.cjs.map +1 -1
- package/_cjs/optics/At/definition.cjs +2 -2
- package/_cjs/optics/At/definition.cjs.map +1 -1
- package/_cjs/optics/Fold/definition.cjs +3 -4
- package/_cjs/optics/Fold/definition.cjs.map +1 -1
- package/_cjs/optics/Getter/definition.cjs +2 -3
- package/_cjs/optics/Getter/definition.cjs.map +1 -1
- package/_cjs/optics/Index/api.cjs +4 -4
- package/_cjs/optics/Index/api.cjs.map +1 -1
- package/_cjs/optics/Index/definition.cjs +2 -2
- package/_cjs/optics/Index/definition.cjs.map +1 -1
- package/_cjs/optics/Iso/api.cjs +9 -7
- package/_cjs/optics/Iso/api.cjs.map +1 -1
- package/_cjs/optics/Iso/definition.cjs +12 -12
- package/_cjs/optics/Iso/definition.cjs.map +1 -1
- package/_cjs/optics/Lens/api.cjs +54 -44
- package/_cjs/optics/Lens/api.cjs.map +1 -1
- package/_cjs/optics/Lens/definition.cjs +10 -10
- package/_cjs/optics/Lens/definition.cjs.map +1 -1
- package/_cjs/optics/Optional/api/compose.cjs +9 -7
- package/_cjs/optics/Optional/api/compose.cjs.map +1 -1
- package/_cjs/optics/Optional/definition.cjs +12 -13
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Optional.cjs.map +1 -1
- package/_cjs/optics/Prism/api/compose.cjs +9 -7
- package/_cjs/optics/Prism/api/compose.cjs.map +1 -1
- package/_cjs/optics/Prism/api/fromNullable.cjs +2 -2
- package/_cjs/optics/Prism/api/fromNullable.cjs.map +1 -1
- package/_cjs/optics/Prism/api/just.cjs +2 -2
- package/_cjs/optics/Prism/api/just.cjs.map +1 -1
- package/_cjs/optics/Prism/definition.cjs +9 -9
- package/_cjs/optics/Prism/definition.cjs.map +1 -1
- package/_cjs/optics/Prism.cjs.map +1 -1
- package/_cjs/optics/Setter/definition.cjs +8 -13
- package/_cjs/optics/Setter/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/compose.cjs +8 -6
- package/_cjs/optics/Traversal/api/compose.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/fromTraversable.cjs +2 -2
- package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
- package/_cjs/optics/Traversal/definition.cjs +12 -12
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal.cjs.map +1 -1
- package/_cjs/typeclass/Align.cjs.map +1 -1
- package/_cjs/typeclass/Alt.cjs.map +1 -1
- package/_cjs/typeclass/Applicative.cjs.map +1 -1
- package/_cjs/typeclass/ApplicativeExcept.cjs +5 -10
- package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
- package/_cjs/typeclass/Apply.cjs +8 -8
- package/_cjs/typeclass/Apply.cjs.map +1 -1
- package/_cjs/typeclass/Chain.cjs +4 -4
- package/_cjs/typeclass/Chain.cjs.map +1 -1
- package/_cjs/typeclass/Eq/definition.cjs.map +1 -1
- package/_cjs/typeclass/Eq/derivations.cjs.map +1 -1
- package/_cjs/typeclass/Equatable/api.cjs.map +1 -1
- package/_cjs/typeclass/Equatable/definition.cjs.map +1 -1
- package/_cjs/typeclass/Equatable/fast-equals.cjs.map +1 -1
- package/_cjs/typeclass/Filterable.cjs.map +1 -1
- package/_cjs/typeclass/FilterableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Foldable.cjs +1 -1
- package/_cjs/typeclass/Foldable.cjs.map +1 -1
- package/_cjs/typeclass/FoldableWithIndex.cjs +1 -1
- package/_cjs/typeclass/FoldableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Functor.cjs.map +1 -1
- package/_cjs/typeclass/FunctorWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Guard/api.cjs +18 -10
- package/_cjs/typeclass/Guard/api.cjs.map +1 -1
- package/_cjs/typeclass/Guard/definition.cjs.map +1 -1
- package/_cjs/typeclass/Guard/derivations.cjs.map +1 -1
- package/_cjs/typeclass/Has.cjs +7 -5
- package/_cjs/typeclass/Has.cjs.map +1 -1
- package/_cjs/typeclass/HashEq.cjs.map +1 -1
- package/_cjs/typeclass/Hashable/definition.cjs.map +1 -1
- package/_cjs/typeclass/Hashable/hash.cjs.map +1 -1
- package/_cjs/typeclass/MonadExcept.cjs +1 -1
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
- package/_cjs/typeclass/Ord/api/contramap.cjs +7 -5
- package/_cjs/typeclass/Ord/api/contramap.cjs.map +1 -1
- package/_cjs/typeclass/Ord/api/max.cjs.map +1 -1
- package/_cjs/typeclass/Ord/api/min.cjs.map +1 -1
- package/_cjs/typeclass/Ord/definition.cjs.map +1 -1
- package/_cjs/typeclass/Ord/instances.cjs.map +1 -1
- package/_cjs/typeclass/Ordering.cjs.map +1 -1
- package/_cjs/typeclass/Semialign.cjs +7 -7
- package/_cjs/typeclass/Semialign.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/api.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/definition.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/derivations.cjs.map +1 -1
- package/_cjs/typeclass/Semimonoidal.cjs.map +1 -1
- package/_cjs/typeclass/Showable/definition.cjs.map +1 -1
- package/_cjs/typeclass/Showable/show.cjs +107 -107
- package/_cjs/typeclass/Showable/show.cjs.map +1 -1
- package/_cjs/typeclass/Showable/styles.cjs.map +1 -1
- package/_cjs/typeclass/Showable/util.cjs +1 -1
- package/_cjs/typeclass/Showable/util.cjs.map +1 -1
- package/_cjs/typeclass/Traversable.cjs +1 -2
- package/_cjs/typeclass/Traversable.cjs.map +1 -1
- package/_cjs/typeclass/TraversableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Witherable.cjs +3 -1
- package/_cjs/typeclass/Witherable.cjs.map +1 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs +3 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
- package/_cjs/util/AnsiFormat.cjs +11 -11
- package/_cjs/util/AnsiFormat.cjs.map +1 -1
- package/_cjs/util/PCGRandom.cjs.map +1 -1
- package/_cjs/util/assert.cjs.map +1 -1
- package/_cjs/util/pattern.cjs.map +1 -1
- package/_cjs/util/predicates.cjs.map +1 -1
- package/_cjs/util/rand/Random.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformArrayIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformBigIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/ArrayInt.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/UniformIntDistributionInternal.cjs.map +1 -1
- package/_cjs/util/rand/generator/MersenneTwister.cjs.map +1 -1
- package/_cjs/util/rand/generator/RandomGenerator.cjs.map +1 -1
- package/_cjs/util/rand.cjs.map +1 -1
- package/_mjs/collection/Iterable/api/traverseConc.mjs +5 -5
- package/_mjs/collection/Iterable/api/traverseConc.mjs.map +1 -1
- package/_mjs/collection/Iterable/api.mjs +465 -411
- package/_mjs/collection/Iterable/api.mjs.map +1 -1
- package/_mjs/collection/Iterable/constructors.mjs +5 -5
- package/_mjs/collection/Iterable/constructors.mjs.map +1 -1
- package/_mjs/collection/compat/Array/api.mjs +16 -12
- package/_mjs/collection/compat/Array/api.mjs.map +1 -1
- package/_mjs/collection/compat/Array/derivations.mjs +35 -19
- package/_mjs/collection/compat/Array/derivations.mjs.map +1 -1
- package/_mjs/collection/compat/ArrayLike/api.mjs +1 -1
- package/_mjs/collection/compat/ArrayLike/api.mjs.map +1 -1
- package/_mjs/collection/compat/Record/instances.mjs +34 -3
- package/_mjs/collection/compat/Record/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs +1 -1
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api.mjs +795 -697
- package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs +53 -51
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/derivations.mjs +10 -2
- package/_mjs/collection/immutable/Conc/derivations.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary/api.mjs +47 -35
- package/_mjs/collection/immutable/Dictionary/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/api.mjs +295 -217
- package/_mjs/collection/immutable/HashMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/definition.mjs +1 -1
- package/_mjs/collection/immutable/HashMap/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/internal.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/api.mjs +206 -168
- package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/definition.mjs +1 -1
- package/_mjs/collection/immutable/HashSet/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs +5 -3
- package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs +5 -3
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs +5 -3
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs +13 -11
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +816 -629
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs +9 -1
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs +34 -34
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +301 -239
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs +12 -4
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs +2 -2
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +13 -13
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api/foldLeft.mjs +11 -9
- package/_mjs/collection/immutable/List/api/foldLeft.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api.mjs +157 -133
- package/_mjs/collection/immutable/List/api.mjs.map +1 -1
- package/_mjs/collection/immutable/List.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/api.mjs +55 -39
- package/_mjs/collection/immutable/Queue/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/definition.mjs +1 -1
- package/_mjs/collection/immutable/Queue/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/api.mjs +50 -36
- package/_mjs/collection/immutable/RoseTree/api.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/api.mjs +398 -358
- package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/api.mjs +650 -538
- package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/definition.mjs +16 -14
- package/_mjs/collection/immutable/Vector/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/internal.mjs +40 -39
- package/_mjs/collection/immutable/Vector/internal.mjs.map +1 -1
- package/_mjs/collection/mutable/HashMap.mjs +3 -5
- package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/mutable/HashSet.mjs.map +1 -1
- package/_mjs/collection/mutable/ListBuffer.mjs +2 -2
- package/_mjs/collection/mutable/ListBuffer.mjs.map +1 -1
- package/_mjs/collection/mutable/internal.mjs +0 -2
- package/_mjs/collection/mutable/internal.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakMap.mjs +7 -7
- package/_mjs/collection/weak/IterableWeakMap.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakSet.mjs +7 -7
- package/_mjs/collection/weak/IterableWeakSet.mjs.map +1 -1
- package/_mjs/control/Eval/api.mjs +40 -28
- package/_mjs/control/Eval/api.mjs.map +1 -1
- package/_mjs/control/Eval/instance.mjs +5 -5
- package/_mjs/control/Eval/instance.mjs.map +1 -1
- package/_mjs/control/Eval/run.mjs +1 -1
- package/_mjs/control/Eval/run.mjs.map +1 -1
- package/_mjs/control/Z/api.mjs +196 -128
- package/_mjs/control/Z/api.mjs.map +1 -1
- package/_mjs/control/Z/instances.mjs +4 -4
- package/_mjs/control/Z/instances.mjs.map +1 -1
- package/_mjs/control/Z/runtime.mjs +244 -234
- package/_mjs/control/Z/runtime.mjs.map +1 -1
- package/_mjs/data/Branded/definition.mjs.map +1 -1
- package/_mjs/data/Branded/derivations.mjs +3 -3
- package/_mjs/data/Branded/derivations.mjs.map +1 -1
- package/_mjs/data/CaseClass.mjs.map +1 -1
- package/_mjs/data/Cause/api/fold.mjs +19 -17
- package/_mjs/data/Cause/api/fold.mjs.map +1 -1
- package/_mjs/data/Cause/api/isEmpty.mjs +1 -1
- package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -1
- package/_mjs/data/Cause/api/linearize.mjs +8 -8
- package/_mjs/data/Cause/api/linearize.mjs.map +1 -1
- package/_mjs/data/Cause/api/prettyPrint.mjs +1 -1
- package/_mjs/data/Cause/api/prettyPrint.mjs.map +1 -1
- package/_mjs/data/Cause/api.mjs +149 -129
- package/_mjs/data/Cause/api.mjs.map +1 -1
- package/_mjs/data/Cause/definition.mjs +18 -18
- package/_mjs/data/Cause/definition.mjs.map +1 -1
- package/_mjs/data/Cause.mjs.map +1 -1
- package/_mjs/data/Const/api.mjs +6 -4
- package/_mjs/data/Const/api.mjs.map +1 -1
- package/_mjs/data/Const/instances.mjs +4 -4
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/Datum/api.mjs +220 -179
- package/_mjs/data/Datum/api.mjs.map +1 -1
- package/_mjs/data/Datum/definition.mjs.map +1 -1
- package/_mjs/data/DatumEither/api.mjs +163 -132
- package/_mjs/data/DatumEither/api.mjs.map +1 -1
- package/_mjs/data/DecodeError/definition.mjs +14 -14
- package/_mjs/data/DecodeError/definition.mjs.map +1 -1
- package/_mjs/data/Decoder/api.mjs +9 -7
- package/_mjs/data/Decoder/api.mjs.map +1 -1
- package/_mjs/data/Duration/api.mjs +16 -10
- package/_mjs/data/Duration/api.mjs.map +1 -1
- package/_mjs/data/Either/api/align.mjs +8 -2
- package/_mjs/data/Either/api/align.mjs.map +1 -1
- package/_mjs/data/Either/api/alignWith.mjs +13 -11
- package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
- package/_mjs/data/Either/api.mjs +175 -136
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/constructors.mjs +7 -5
- package/_mjs/data/Either/constructors.mjs.map +1 -1
- package/_mjs/data/Either/destructors.mjs +15 -13
- package/_mjs/data/Either/destructors.mjs.map +1 -1
- package/_mjs/data/Either/instances.mjs +9 -9
- package/_mjs/data/Either/instances.mjs.map +1 -1
- package/_mjs/data/EitherT/api.mjs +8 -8
- package/_mjs/data/EitherT/api.mjs.map +1 -1
- package/_mjs/data/Encoder/api.mjs +102 -0
- package/_mjs/data/Encoder/api.mjs.map +1 -0
- package/_mjs/data/Encoder/definition.mjs +15 -0
- package/_mjs/data/Encoder/definition.mjs.map +1 -0
- package/_mjs/data/Encoder.mjs +4 -0
- package/_mjs/data/Encoder.mjs.map +1 -0
- package/_mjs/data/Environment/api.mjs +45 -33
- package/_mjs/data/Environment/api.mjs.map +1 -1
- package/_mjs/data/EnvironmentPatch.mjs +17 -13
- package/_mjs/data/EnvironmentPatch.mjs.map +1 -1
- package/_mjs/data/ExecutionStrategy.mjs +19 -27
- package/_mjs/data/ExecutionStrategy.mjs.map +1 -1
- package/_mjs/data/Exit/api.mjs +140 -108
- package/_mjs/data/Exit/api.mjs.map +1 -1
- package/_mjs/data/Exit/constructors.mjs +3 -3
- package/_mjs/data/Exit/constructors.mjs.map +1 -1
- package/_mjs/data/FiberId/api.mjs +22 -20
- package/_mjs/data/FiberId/api.mjs.map +1 -1
- package/_mjs/data/FiberId/constructors.mjs.map +1 -1
- package/_mjs/data/Identity/api.mjs +21 -13
- package/_mjs/data/Identity/api.mjs.map +1 -1
- package/_mjs/data/Identity/instances.mjs +4 -4
- package/_mjs/data/Identity/instances.mjs.map +1 -1
- package/_mjs/data/Interval.mjs +38 -28
- package/_mjs/data/Interval.mjs.map +1 -1
- package/_mjs/data/Intervals.mjs +35 -27
- package/_mjs/data/Intervals.mjs.map +1 -1
- package/_mjs/data/Maybe/api.mjs +141 -106
- package/_mjs/data/Maybe/api.mjs.map +1 -1
- package/_mjs/data/Maybe/constructors.mjs +1 -1
- package/_mjs/data/Maybe/constructors.mjs.map +1 -1
- package/_mjs/data/Maybe/definition.mjs.map +1 -1
- package/_mjs/data/Maybe/destructors.mjs +8 -6
- package/_mjs/data/Maybe/destructors.mjs.map +1 -1
- package/_mjs/data/Maybe/instances.mjs +12 -12
- package/_mjs/data/Maybe/instances.mjs.map +1 -1
- package/_mjs/data/Predicate/api.mjs +10 -8
- package/_mjs/data/Predicate/api.mjs.map +1 -1
- package/_mjs/data/Refinement/api.mjs +15 -9
- package/_mjs/data/Refinement/api.mjs.map +1 -1
- package/_mjs/data/Struct/api.mjs +56 -44
- package/_mjs/data/Struct/api.mjs.map +1 -1
- package/_mjs/data/Tag/constructors.mjs +3 -2
- package/_mjs/data/Tag/constructors.mjs.map +1 -1
- package/_mjs/data/Tag/definition.mjs +0 -2
- package/_mjs/data/Tag/definition.mjs.map +1 -1
- package/_mjs/data/These/api.mjs +187 -169
- package/_mjs/data/These/api.mjs.map +1 -1
- package/_mjs/data/These/constructors.mjs +1 -1
- package/_mjs/data/These/constructors.mjs.map +1 -1
- package/_mjs/data/These/destructors.mjs +35 -31
- package/_mjs/data/These/destructors.mjs.map +1 -1
- package/_mjs/data/These/instances.mjs +1 -1
- package/_mjs/data/These/instances.mjs.map +1 -1
- package/_mjs/data/Trace/api.mjs +6 -4
- package/_mjs/data/Trace/api.mjs.map +1 -1
- package/_mjs/data/Zipped.mjs.map +1 -1
- package/_mjs/data/function/api.mjs +5 -3
- package/_mjs/data/function/api.mjs.map +1 -1
- package/_mjs/data/function/pipe.mjs +7 -0
- package/_mjs/data/function/pipe.mjs.map +1 -1
- package/_mjs/data/string/api.mjs +46 -66
- package/_mjs/data/string/api.mjs.map +1 -1
- package/_mjs/global/api.mjs +4 -2
- package/_mjs/global/api.mjs.map +1 -1
- package/_mjs/internal/AtomicBoolean.mjs.map +1 -1
- package/_mjs/internal/AtomicNumber.mjs.map +1 -1
- package/_mjs/internal/AtomicReference.mjs.map +1 -1
- package/_mjs/internal/Stack.mjs +1 -1
- package/_mjs/internal/Stack.mjs.map +1 -1
- package/_mjs/optics/At/api.mjs +1 -1
- package/_mjs/optics/At/api.mjs.map +1 -1
- package/_mjs/optics/At/definition.mjs +2 -2
- package/_mjs/optics/At/definition.mjs.map +1 -1
- package/_mjs/optics/Fold/definition.mjs +2 -3
- package/_mjs/optics/Fold/definition.mjs.map +1 -1
- package/_mjs/optics/Getter/definition.mjs +1 -2
- package/_mjs/optics/Getter/definition.mjs.map +1 -1
- package/_mjs/optics/Index/api.mjs +4 -4
- package/_mjs/optics/Index/api.mjs.map +1 -1
- package/_mjs/optics/Index/definition.mjs +1 -1
- package/_mjs/optics/Index/definition.mjs.map +1 -1
- package/_mjs/optics/Iso/api.mjs +8 -6
- package/_mjs/optics/Iso/api.mjs.map +1 -1
- package/_mjs/optics/Iso/definition.mjs +9 -9
- package/_mjs/optics/Iso/definition.mjs.map +1 -1
- package/_mjs/optics/Lens/api.mjs +49 -39
- package/_mjs/optics/Lens/api.mjs.map +1 -1
- package/_mjs/optics/Lens/definition.mjs +7 -7
- package/_mjs/optics/Lens/definition.mjs.map +1 -1
- package/_mjs/optics/Optional/api/compose.mjs +8 -6
- package/_mjs/optics/Optional/api/compose.mjs.map +1 -1
- package/_mjs/optics/Optional/definition.mjs +8 -10
- package/_mjs/optics/Optional/definition.mjs.map +1 -1
- package/_mjs/optics/Optional.mjs.map +1 -1
- package/_mjs/optics/Prism/api/compose.mjs +8 -6
- package/_mjs/optics/Prism/api/compose.mjs.map +1 -1
- package/_mjs/optics/Prism/api/fromNullable.mjs +2 -2
- package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -1
- package/_mjs/optics/Prism/api/just.mjs +2 -2
- package/_mjs/optics/Prism/api/just.mjs.map +1 -1
- package/_mjs/optics/Prism/definition.mjs +6 -6
- package/_mjs/optics/Prism/definition.mjs.map +1 -1
- package/_mjs/optics/Prism.mjs.map +1 -1
- package/_mjs/optics/Setter/definition.mjs +5 -10
- package/_mjs/optics/Setter/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs +7 -5
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +2 -2
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
- package/_mjs/optics/Traversal/definition.mjs +9 -9
- package/_mjs/optics/Traversal/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal.mjs.map +1 -1
- package/_mjs/typeclass/Align.mjs.map +1 -1
- package/_mjs/typeclass/Alt.mjs.map +1 -1
- package/_mjs/typeclass/Applicative.mjs.map +1 -1
- package/_mjs/typeclass/ApplicativeExcept.mjs +6 -10
- package/_mjs/typeclass/ApplicativeExcept.mjs.map +1 -1
- package/_mjs/typeclass/Apply.mjs +9 -9
- package/_mjs/typeclass/Apply.mjs.map +1 -1
- package/_mjs/typeclass/Chain.mjs +5 -5
- package/_mjs/typeclass/Chain.mjs.map +1 -1
- package/_mjs/typeclass/Eq/definition.mjs.map +1 -1
- package/_mjs/typeclass/Eq/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Equatable/api.mjs.map +1 -1
- package/_mjs/typeclass/Equatable/definition.mjs.map +1 -1
- package/_mjs/typeclass/Equatable/fast-equals.mjs.map +1 -1
- package/_mjs/typeclass/Filterable.mjs.map +1 -1
- package/_mjs/typeclass/FilterableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Foldable.mjs +1 -1
- package/_mjs/typeclass/Foldable.mjs.map +1 -1
- package/_mjs/typeclass/FoldableWithIndex.mjs +1 -1
- package/_mjs/typeclass/FoldableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Functor.mjs.map +1 -1
- package/_mjs/typeclass/FunctorWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Guard/api.mjs +18 -10
- package/_mjs/typeclass/Guard/api.mjs.map +1 -1
- package/_mjs/typeclass/Guard/definition.mjs.map +1 -1
- package/_mjs/typeclass/Guard/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Has.mjs +7 -5
- package/_mjs/typeclass/Has.mjs.map +1 -1
- package/_mjs/typeclass/HashEq.mjs.map +1 -1
- package/_mjs/typeclass/Hashable/definition.mjs.map +1 -1
- package/_mjs/typeclass/Hashable/hash.mjs.map +1 -1
- package/_mjs/typeclass/MonadExcept.mjs +1 -1
- package/_mjs/typeclass/MonadExcept.mjs.map +1 -1
- package/_mjs/typeclass/Ord/api/contramap.mjs +7 -5
- package/_mjs/typeclass/Ord/api/contramap.mjs.map +1 -1
- package/_mjs/typeclass/Ord/api/max.mjs.map +1 -1
- package/_mjs/typeclass/Ord/api/min.mjs.map +1 -1
- package/_mjs/typeclass/Ord/definition.mjs.map +1 -1
- package/_mjs/typeclass/Ord/instances.mjs.map +1 -1
- package/_mjs/typeclass/Ordering.mjs.map +1 -1
- package/_mjs/typeclass/Semialign.mjs +7 -7
- package/_mjs/typeclass/Semialign.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/definition.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Semimonoidal.mjs.map +1 -1
- package/_mjs/typeclass/Showable/definition.mjs.map +1 -1
- package/_mjs/typeclass/Showable/show.mjs +107 -107
- package/_mjs/typeclass/Showable/show.mjs.map +1 -1
- package/_mjs/typeclass/Showable/styles.mjs.map +1 -1
- package/_mjs/typeclass/Showable/util.mjs +1 -1
- package/_mjs/typeclass/Showable/util.mjs.map +1 -1
- package/_mjs/typeclass/Traversable.mjs +1 -2
- package/_mjs/typeclass/Traversable.mjs.map +1 -1
- package/_mjs/typeclass/TraversableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Witherable.mjs +2 -1
- package/_mjs/typeclass/Witherable.mjs.map +1 -1
- package/_mjs/typeclass/WitherableWithIndex.mjs +2 -1
- package/_mjs/typeclass/WitherableWithIndex.mjs.map +1 -1
- package/_mjs/util/AnsiFormat.mjs +11 -11
- package/_mjs/util/AnsiFormat.mjs.map +1 -1
- package/_mjs/util/PCGRandom.mjs.map +1 -1
- package/_mjs/util/assert.mjs.map +1 -1
- package/_mjs/util/pattern.mjs.map +1 -1
- package/_mjs/util/predicates.mjs.map +1 -1
- package/_mjs/util/rand/Random.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformArrayIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformBigIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/ArrayInt.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/UniformIntDistributionInternal.mjs.map +1 -1
- package/_mjs/util/rand/generator/MersenneTwister.mjs.map +1 -1
- package/_mjs/util/rand/generator/RandomGenerator.mjs.map +1 -1
- package/_mjs/util/rand.mjs.map +1 -1
- package/_src/collection/Iterable/api/traverseConc.ts +3 -3
- package/_src/collection/Iterable/api.ts +445 -408
- package/_src/collection/Iterable/constructors.ts +1 -1
- package/_src/collection/compat/Array/api.ts +16 -13
- package/_src/collection/compat/Array/derivations.ts +27 -1
- package/_src/collection/compat/Record/instances.ts +51 -2
- package/_src/collection/immutable/Conc/api.ts +716 -607
- package/_src/collection/immutable/Conc/definition.ts +60 -68
- package/_src/collection/immutable/Conc/derivations.ts +13 -0
- package/_src/collection/immutable/Conc.ts +0 -1
- package/_src/collection/immutable/Dictionary/api.ts +44 -32
- package/_src/collection/immutable/HashMap/api.ts +338 -224
- package/_src/collection/immutable/HashMap/internal.ts +3 -7
- package/_src/collection/immutable/HashSet/api.ts +193 -158
- package/_src/collection/immutable/ImmutableArray/api/chunksOf.ts +5 -3
- package/_src/collection/immutable/ImmutableArray/api/slice.ts +5 -3
- package/_src/collection/immutable/ImmutableArray/api/splitAt.ts +5 -3
- package/_src/collection/immutable/ImmutableArray/api/splitWhere.ts +13 -14
- package/_src/collection/immutable/ImmutableArray/api.ts +870 -722
- package/_src/collection/immutable/ImmutableArray/derivations.ts +13 -0
- package/_src/collection/immutable/ImmutableArray/instances.ts +54 -73
- package/_src/collection/immutable/ImmutableArray.ts +0 -1
- package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +311 -273
- package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +19 -4
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +0 -1
- package/_src/collection/immutable/ImmutableNonEmptyArray/derivations.ts +13 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/instances.ts +22 -23
- package/_src/collection/immutable/List/api/foldLeft.ts +11 -9
- package/_src/collection/immutable/List/api.ts +147 -133
- package/_src/collection/immutable/List.ts +0 -1
- package/_src/collection/immutable/Queue/api.ts +53 -37
- package/_src/collection/immutable/Queue/definition.ts +0 -1
- package/_src/collection/immutable/RoseTree/api.ts +38 -32
- package/_src/collection/immutable/RoseTree/definition.ts +2 -0
- package/_src/collection/immutable/SortedMap/api.ts +364 -332
- package/_src/collection/immutable/Vector/api.ts +608 -482
- package/_src/collection/immutable/Vector/definition.ts +11 -12
- package/_src/collection/immutable/Vector/internal.ts +37 -38
- package/_src/collection/mutable/HashMap.ts +1 -4
- package/_src/collection/mutable/HashSet.ts +1 -2
- package/_src/collection/mutable/ListBuffer.ts +1 -1
- package/_src/collection/mutable/internal.ts +0 -2
- package/_src/collection/weak/IterableWeakMap.ts +11 -7
- package/_src/collection/weak/IterableWeakSet.ts +10 -5
- package/_src/control/Eval/api.ts +35 -19
- package/_src/control/Eval/instance.ts +5 -5
- package/_src/control/Z/api.ts +191 -208
- package/_src/control/Z/instances.ts +4 -5
- package/_src/control/Z/runtime.ts +190 -189
- package/_src/data/Branded/definition.ts +11 -12
- package/_src/data/Branded/derivations.ts +2 -2
- package/_src/data/CaseClass.ts +4 -1
- package/_src/data/Cause/api/fold.ts +13 -14
- package/_src/data/Cause/api.ts +125 -105
- package/_src/data/Cause.ts +0 -1
- package/_src/data/Const/api.ts +6 -4
- package/_src/data/Const/instances.ts +3 -3
- package/_src/data/Datum/api.ts +229 -197
- package/_src/data/Datum/definition.ts +2 -5
- package/_src/data/DatumEither/api.ts +208 -193
- package/_src/data/Decoder/api.ts +5 -3
- package/_src/data/Duration/api.ts +19 -15
- package/_src/data/Either/api/align.ts +7 -2
- package/_src/data/Either/api/alignWith.ts +13 -15
- package/_src/data/Either/api.ts +141 -119
- package/_src/data/Either/constructors.ts +12 -10
- package/_src/data/Either/destructors.ts +11 -9
- package/_src/data/Either/instances.ts +24 -20
- package/_src/data/EitherT/api.ts +43 -49
- package/_src/data/Encoder/api.ts +123 -0
- package/_src/data/Encoder/definition.ts +12 -0
- package/_src/data/Encoder.ts +4 -0
- package/_src/data/Environment/api.ts +52 -44
- package/_src/data/EnvironmentPatch.ts +10 -9
- package/_src/data/ExecutionStrategy.ts +14 -24
- package/_src/data/Exit/api.ts +104 -73
- package/_src/data/Exit/constructors.ts +2 -2
- package/_src/data/FiberId/api.ts +19 -17
- package/_src/data/FiberId/constructors.ts +1 -2
- package/_src/data/Identity/api.ts +20 -12
- package/_src/data/Identity/instances.ts +4 -7
- package/_src/data/Interval.ts +39 -29
- package/_src/data/Intervals.ts +31 -23
- package/_src/data/Maybe/api.ts +112 -79
- package/_src/data/Maybe/constructors.ts +3 -3
- package/_src/data/Maybe/definition.ts +11 -1
- package/_src/data/Maybe/destructors.ts +6 -4
- package/_src/data/Maybe/instances.ts +10 -21
- package/_src/data/Predicate/api.ts +14 -8
- package/_src/data/Refinement/api.ts +19 -13
- package/_src/data/Struct/api.ts +75 -55
- package/_src/data/Tag/constructors.ts +1 -2
- package/_src/data/Tag/definition.ts +0 -1
- package/_src/data/These/api.ts +114 -114
- package/_src/data/These/destructors.ts +23 -24
- package/_src/data/Trace/api.ts +5 -3
- package/_src/data/Zipped.ts +3 -4
- package/_src/data/function/api.ts +6 -7
- package/_src/data/function/pipe.ts +9 -1
- package/_src/data/string/api.ts +40 -60
- package/_src/data.ts +1 -0
- package/_src/global/api.ts +7 -12
- package/_src/global.ts +4 -0
- package/_src/internal/AtomicBoolean.ts +0 -1
- package/_src/internal/AtomicNumber.ts +0 -7
- package/_src/internal/AtomicReference.ts +0 -4
- package/_src/internal/Stack.ts +1 -7
- package/_src/optics/At/definition.ts +5 -3
- package/_src/optics/Fold/definition.ts +3 -10
- package/_src/optics/Getter/definition.ts +1 -2
- package/_src/optics/Index/definition.ts +1 -1
- package/_src/optics/Iso/api.ts +8 -6
- package/_src/optics/Iso/definition.ts +3 -3
- package/_src/optics/Lens/api.ts +44 -42
- package/_src/optics/Lens/definition.ts +5 -5
- package/_src/optics/Optional/api/compose.ts +9 -9
- package/_src/optics/Optional/definition.ts +9 -16
- package/_src/optics/Optional.ts +0 -1
- package/_src/optics/Prism/api/compose.ts +9 -6
- package/_src/optics/Prism/definition.ts +3 -3
- package/_src/optics/Prism.ts +0 -1
- package/_src/optics/Setter/definition.ts +3 -23
- package/_src/optics/Traversal/api/compose.ts +7 -8
- package/_src/optics/Traversal/api/fromTraversable.ts +1 -1
- package/_src/optics/Traversal/definition.ts +10 -15
- package/_src/optics/Traversal.ts +0 -1
- package/_src/typeclass/Align.ts +0 -3
- package/_src/typeclass/Alt.ts +2 -1
- package/_src/typeclass/Applicative.ts +0 -1
- package/_src/typeclass/ApplicativeExcept.ts +15 -10
- package/_src/typeclass/Apply.ts +30 -33
- package/_src/typeclass/Chain.ts +9 -12
- package/_src/typeclass/Eq/definition.ts +0 -3
- package/_src/typeclass/Eq/derivations.ts +0 -2
- package/_src/typeclass/Equatable/api.ts +0 -2
- package/_src/typeclass/Equatable/definition.ts +0 -4
- package/_src/typeclass/Equatable/fast-equals.ts +11 -93
- package/_src/typeclass/Filterable.ts +19 -13
- package/_src/typeclass/FilterableWithIndex.ts +19 -13
- package/_src/typeclass/Foldable.ts +7 -10
- package/_src/typeclass/FoldableWithIndex.ts +7 -10
- package/_src/typeclass/Functor.ts +6 -4
- package/_src/typeclass/FunctorWithIndex.ts +3 -2
- package/_src/typeclass/Guard/api.ts +21 -16
- package/_src/typeclass/Guard/definition.ts +0 -3
- package/_src/typeclass/Guard/derivations.ts +5 -6
- package/_src/typeclass/Has.ts +6 -4
- package/_src/typeclass/HashEq.ts +0 -7
- package/_src/typeclass/Hashable/definition.ts +0 -4
- package/_src/typeclass/Hashable/hash.ts +0 -26
- package/_src/typeclass/MonadExcept.ts +1 -1
- package/_src/typeclass/Ord/api/contramap.ts +7 -6
- package/_src/typeclass/Ord/api/max.ts +0 -1
- package/_src/typeclass/Ord/api/min.ts +0 -1
- package/_src/typeclass/Ord/definition.ts +0 -4
- package/_src/typeclass/Ord/instances.ts +0 -2
- package/_src/typeclass/Ordering.ts +2 -0
- package/_src/typeclass/Semialign.ts +43 -32
- package/_src/typeclass/Semigroup/api.ts +0 -2
- package/_src/typeclass/Semigroup/definition.ts +0 -4
- package/_src/typeclass/Semigroup/derivations.ts +0 -2
- package/_src/typeclass/Semimonoidal.ts +3 -2
- package/_src/typeclass/Showable/definition.ts +0 -6
- package/_src/typeclass/Showable/show.ts +1 -57
- package/_src/typeclass/Showable/styles.ts +0 -8
- package/_src/typeclass/Showable/util.ts +22 -57
- package/_src/typeclass/Traversable.ts +13 -18
- package/_src/typeclass/TraversableWithIndex.ts +5 -7
- package/_src/typeclass/Witherable.ts +21 -13
- package/_src/typeclass/WitherableWithIndex.ts +26 -17
- package/_src/typeclass/builtin/Symbol.ts +0 -1
- package/_src/types/extractions.ts +12 -3
- package/_src/types/utility.ts +3 -5
- package/_src/util/AnsiFormat.ts +0 -25
- package/_src/util/PCGRandom.ts +4 -9
- package/_src/util/assert.ts +1 -2
- package/_src/util/pattern.ts +91 -12
- package/_src/util/predicates.ts +3 -1
- package/_src/util/rand/Random.ts +12 -16
- package/_src/util/rand/distribution/Distribution.ts +0 -1
- package/_src/util/rand/distribution/UniformArrayIntDistribution.ts +0 -3
- package/_src/util/rand/distribution/UniformBigIntDistribution.ts +0 -5
- package/_src/util/rand/distribution/UniformIntDistribution.ts +0 -7
- package/_src/util/rand/distribution/internals/ArrayInt.ts +3 -13
- package/_src/util/rand/distribution/internals/UniformArrayIntDistributionInternal.ts +0 -3
- package/_src/util/rand/distribution/internals/UniformIntDistributionInternal.ts +0 -4
- package/_src/util/rand/generator/MersenneTwister.ts +6 -29
- package/_src/util/rand/generator/RandomGenerator.ts +0 -3
- package/_src/util/rand.ts +0 -2
- package/collection/Iterable/api/traverseConc.d.ts +2 -2
- package/collection/Iterable/api.d.ts +64 -64
- package/collection/Iterable/constructors.d.ts +1 -1
- package/collection/compat/Array/api.d.ts +6 -6
- package/collection/compat/Array/derivations.d.ts +11 -0
- package/collection/compat/Record/instances.d.ts +30 -6
- package/collection/immutable/Conc/api.d.ts +108 -105
- package/collection/immutable/Conc/definition.d.ts +2 -2
- package/collection/immutable/Conc/derivations.d.ts +6 -0
- package/collection/immutable/Dictionary/api.d.ts +12 -12
- package/collection/immutable/HashMap/api.d.ts +76 -70
- package/collection/immutable/HashSet/api.d.ts +45 -41
- package/collection/immutable/ImmutableArray/api/chunksOf.d.ts +2 -2
- package/collection/immutable/ImmutableArray/api/slice.d.ts +2 -2
- package/collection/immutable/ImmutableArray/api/splitAt.d.ts +2 -2
- package/collection/immutable/ImmutableArray/api/splitWhere.d.ts +3 -3
- package/collection/immutable/ImmutableArray/api.d.ts +206 -206
- package/collection/immutable/ImmutableArray/derivations.d.ts +6 -0
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +64 -63
- package/collection/immutable/ImmutableNonEmptyArray/derivations.d.ts +6 -0
- package/collection/immutable/List/api/foldLeft.d.ts +2 -2
- package/collection/immutable/List/api.d.ts +24 -24
- package/collection/immutable/Queue/api.d.ts +16 -16
- package/collection/immutable/RoseTree/api.d.ts +14 -14
- package/collection/immutable/SortedMap/api.d.ts +41 -41
- package/collection/immutable/Vector/api.d.ts +121 -117
- package/collection/immutable/Vector/definition.d.ts +2 -2
- package/collection/immutable/Vector/internal.d.ts +2 -2
- package/collection/mutable/ListBuffer.d.ts +1 -1
- package/control/Eval/api.d.ts +12 -12
- package/control/Z/api.d.ts +68 -68
- package/control/Z/runtime.d.ts +10 -10
- package/data/Branded/derivations.d.ts +2 -2
- package/data/Cause/api/fold.d.ts +3 -3
- package/data/Cause/api.d.ts +20 -20
- package/data/Const/api.d.ts +3 -3
- package/data/Datum/api.d.ts +43 -41
- package/data/DatumEither/api.d.ts +48 -46
- package/data/Decoder/api.d.ts +2 -2
- package/data/Duration/api.d.ts +7 -7
- package/data/Either/api/align.d.ts +5 -1
- package/data/Either/api/alignWith.d.ts +2 -2
- package/data/Either/api.d.ts +40 -46
- package/data/Either/constructors.d.ts +6 -6
- package/data/Either/destructors.d.ts +2 -2
- package/data/EitherT/api.d.ts +6 -6
- package/data/Encoder/api.d.ts +73 -0
- package/data/Encoder/definition.d.ts +12 -0
- package/data/Encoder.d.ts +2 -0
- package/data/Environment/api.d.ts +14 -14
- package/data/EnvironmentPatch.d.ts +4 -4
- package/data/ExecutionStrategy.d.ts +1 -6
- package/data/Exit/api.d.ts +32 -32
- package/data/Exit/constructors.d.ts +2 -2
- package/data/FiberId/api.d.ts +2 -2
- package/data/Identity/api.d.ts +8 -8
- package/data/Interval.d.ts +11 -11
- package/data/Intervals.d.ts +11 -11
- package/data/Maybe/api.d.ts +36 -37
- package/data/Maybe/constructors.d.ts +2 -2
- package/data/Maybe/definition.d.ts +7 -3
- package/data/Maybe/destructors.d.ts +2 -2
- package/data/Predicate/api.d.ts +5 -5
- package/data/Refinement/api.d.ts +9 -9
- package/data/Struct/api.d.ts +13 -23
- package/data/Tag/constructors.d.ts +1 -2
- package/data/Tag/definition.d.ts +0 -1
- package/data/These/api.d.ts +18 -22
- package/data/These/destructors.d.ts +4 -4
- package/data/Trace/api.d.ts +2 -2
- package/data/function/api.d.ts +3 -3
- package/data/function/pipe.d.ts +7 -1
- package/data/string/api.d.ts +9 -49
- package/data.d.ts +1 -0
- package/global/api.d.ts +3 -3
- package/global.d.ts +4 -0
- package/internal/Stack.d.ts +1 -1
- package/optics/At/definition.d.ts +1 -1
- package/optics/Fold/definition.d.ts +2 -6
- package/optics/Getter/definition.d.ts +1 -1
- package/optics/Index/definition.d.ts +1 -1
- package/optics/Iso/api.d.ts +2 -2
- package/optics/Iso/definition.d.ts +2 -2
- package/optics/Lens/api.d.ts +10 -10
- package/optics/Lens/definition.d.ts +4 -4
- package/optics/Optional/api/compose.d.ts +2 -2
- package/optics/Optional/definition.d.ts +4 -8
- package/optics/Prism/api/compose.d.ts +2 -2
- package/optics/Prism/definition.d.ts +2 -2
- package/optics/Setter/definition.d.ts +2 -14
- package/optics/Traversal/api/compose.d.ts +2 -2
- package/optics/Traversal/definition.d.ts +4 -4
- package/package.json +1 -1
- package/typeclass/Alt.d.ts +1 -1
- package/typeclass/ApplicativeExcept.d.ts +2 -6
- package/typeclass/Apply.d.ts +5 -5
- package/typeclass/Chain.d.ts +4 -4
- package/typeclass/Filterable.d.ts +6 -6
- package/typeclass/FilterableWithIndex.d.ts +6 -6
- package/typeclass/Foldable.d.ts +4 -4
- package/typeclass/FoldableWithIndex.d.ts +4 -4
- package/typeclass/Functor.d.ts +2 -2
- package/typeclass/FunctorWithIndex.d.ts +1 -1
- package/typeclass/Guard/api.d.ts +7 -7
- package/typeclass/Has.d.ts +3 -3
- package/typeclass/Ord/api/contramap.d.ts +2 -2
- package/typeclass/Semialign.d.ts +14 -14
- package/typeclass/Semimonoidal.d.ts +1 -1
- package/typeclass/Traversable.d.ts +4 -6
- package/typeclass/TraversableWithIndex.d.ts +2 -2
- package/typeclass/Witherable.d.ts +3 -3
- package/typeclass/WitherableWithIndex.d.ts +5 -5
- package/types/extractions.d.ts +10 -6
- package/util/assert.d.ts +1 -1
package/_cjs/data/Cause/api.cjs
CHANGED
|
@@ -5,18 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.as_ = as_;
|
|
7
7
|
exports.both = void 0;
|
|
8
|
-
exports.
|
|
8
|
+
exports.contains = contains;
|
|
9
9
|
exports.failureMaybe = exports.failed = exports.fail = exports.empty = exports.defects = void 0;
|
|
10
10
|
exports.failureOrCause = failureOrCause;
|
|
11
11
|
exports.failureTraceMaybe = void 0;
|
|
12
12
|
exports.failureTraceOrCause = failureTraceOrCause;
|
|
13
13
|
exports.failures = failures;
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
14
|
+
exports.filterDefects = filterDefects;
|
|
15
|
+
exports.flatMap = exports.find = void 0;
|
|
16
16
|
exports.flatten = flatten;
|
|
17
17
|
exports.flipCauseEither = flipCauseEither;
|
|
18
18
|
exports.flipCauseOption = flipCauseOption;
|
|
19
|
-
exports.interruptOption = exports.interrupt = exports.halted = exports.haltMaybe = exports.halt = exports.
|
|
19
|
+
exports.interruptOption = exports.interrupt = exports.halted = exports.haltMaybe = exports.halt = exports.foldLeft = void 0;
|
|
20
20
|
exports.interrupted = interrupted;
|
|
21
21
|
exports.interruptedOnly = interruptedOnly;
|
|
22
22
|
exports.interruptors = void 0;
|
|
@@ -25,10 +25,10 @@ exports.isInterrupted = exports.isInterrupt = exports.isHalt = exports.isFail =
|
|
|
25
25
|
exports.isThen = isThen;
|
|
26
26
|
exports.isTraced = isTraced;
|
|
27
27
|
exports.keepDefects = keepDefects;
|
|
28
|
-
exports.
|
|
28
|
+
exports.mapTrace = exports.map = void 0;
|
|
29
29
|
exports.sequenceCauseEither = sequenceCauseEither;
|
|
30
30
|
exports.sequenceCauseMaybe = sequenceCauseMaybe;
|
|
31
|
-
exports.
|
|
31
|
+
exports.squashWith = squashWith;
|
|
32
32
|
exports.stackless = void 0;
|
|
33
33
|
exports.stripFailures = stripFailures;
|
|
34
34
|
exports.stripSomeDefects = stripSomeDefects;
|
|
@@ -91,8 +91,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
91
91
|
|
|
92
92
|
const both = both_1;
|
|
93
93
|
exports.both = both;
|
|
94
|
-
const
|
|
95
|
-
exports.
|
|
94
|
+
const flatMap = flatMap_1;
|
|
95
|
+
exports.flatMap = flatMap;
|
|
96
96
|
const defects = defects_1;
|
|
97
97
|
exports.defects = defects;
|
|
98
98
|
const empty = empty_1;
|
|
@@ -105,10 +105,10 @@ const failureTraceMaybe = failureTraceMaybe_1;
|
|
|
105
105
|
exports.failureTraceMaybe = failureTraceMaybe;
|
|
106
106
|
const failureMaybe = failureMaybe_1;
|
|
107
107
|
exports.failureMaybe = failureMaybe;
|
|
108
|
-
const
|
|
109
|
-
exports.
|
|
110
|
-
const
|
|
111
|
-
exports.
|
|
108
|
+
const find = find_1;
|
|
109
|
+
exports.find = find;
|
|
110
|
+
const foldLeft = foldLeft_1;
|
|
111
|
+
exports.foldLeft = foldLeft;
|
|
112
112
|
const halt = halt_1;
|
|
113
113
|
exports.halt = halt;
|
|
114
114
|
const halted = halted_1;
|
|
@@ -129,10 +129,10 @@ const interruptOption = interruptOption_1;
|
|
|
129
129
|
exports.interruptOption = interruptOption;
|
|
130
130
|
const interruptors = interruptors_1;
|
|
131
131
|
exports.interruptors = interruptors;
|
|
132
|
-
const
|
|
133
|
-
exports.
|
|
134
|
-
const
|
|
135
|
-
exports.
|
|
132
|
+
const map = map_1;
|
|
133
|
+
exports.map = map;
|
|
134
|
+
const mapTrace = mapTrace_1;
|
|
135
|
+
exports.mapTrace = mapTrace;
|
|
136
136
|
const stackless = stackless_1;
|
|
137
137
|
exports.stackless = stackless;
|
|
138
138
|
const then = then_1;
|
|
@@ -141,10 +141,12 @@ const traced = traced_1;
|
|
|
141
141
|
exports.traced = traced;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* @tsplus
|
|
144
|
+
* @tsplus pipeable fncts.Cause as
|
|
145
145
|
*/
|
|
146
|
-
function as_(
|
|
147
|
-
return
|
|
146
|
+
function as_(b) {
|
|
147
|
+
return self => {
|
|
148
|
+
return map_1(() => b())(self);
|
|
149
|
+
};
|
|
148
150
|
}
|
|
149
151
|
/**
|
|
150
152
|
* @internal
|
|
@@ -176,12 +178,12 @@ function chainEval(self, f) {
|
|
|
176
178
|
case "Then"
|
|
177
179
|
/* CauseTag.Then */
|
|
178
180
|
:
|
|
179
|
-
return tsplus_module_2.
|
|
181
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => chainEval(self.right, f)), then_1)(tsplus_module_1.defer(() => chainEval(self.left, f)));
|
|
180
182
|
|
|
181
183
|
case "Both"
|
|
182
184
|
/* CauseTag.Both */
|
|
183
185
|
:
|
|
184
|
-
return tsplus_module_2.
|
|
186
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => chainEval(self.right, f)), both_1)(tsplus_module_1.defer(() => chainEval(self.left, f)));
|
|
185
187
|
|
|
186
188
|
case "Stackless"
|
|
187
189
|
/* CauseTag.Stackless */
|
|
@@ -205,22 +207,26 @@ function both_1(left, right) {
|
|
|
205
207
|
/**
|
|
206
208
|
* Composes computations in sequence, using the return value of one computation as input for the next
|
|
207
209
|
*
|
|
208
|
-
* @tsplus
|
|
210
|
+
* @tsplus pipeable fncts.Cause flatMap
|
|
209
211
|
*/
|
|
210
212
|
|
|
211
213
|
|
|
212
|
-
function flatMap_1(
|
|
213
|
-
return
|
|
214
|
+
function flatMap_1(f) {
|
|
215
|
+
return self => {
|
|
216
|
+
return tsplus_module_4.run(chainEval(self, f));
|
|
217
|
+
};
|
|
214
218
|
}
|
|
215
219
|
/**
|
|
216
220
|
* Determines whether a `Cause` contains or is equal to the specified cause.
|
|
217
221
|
*
|
|
218
|
-
* @tsplus
|
|
222
|
+
* @tsplus pipeable fncts.Cause contains
|
|
219
223
|
*/
|
|
220
224
|
|
|
221
225
|
|
|
222
|
-
function
|
|
223
|
-
return
|
|
226
|
+
function contains(that) {
|
|
227
|
+
return self => {
|
|
228
|
+
return tsplus_module_4.run(containsEval(self, that));
|
|
229
|
+
};
|
|
224
230
|
}
|
|
225
231
|
/**
|
|
226
232
|
* @internal
|
|
@@ -233,7 +239,7 @@ function containsEval(self, that) {
|
|
|
233
239
|
return true;
|
|
234
240
|
}
|
|
235
241
|
|
|
236
|
-
return yield* _(foldLeft_1(
|
|
242
|
+
return yield* _(foldLeft_1(tsplus_module_1.now(false), (computation, c) => tsplus_module_5.just(tsplus_module_2.flatMap(b => b ? tsplus_module_1.now(b) : c.equalsEval(that))(computation)))(self));
|
|
237
243
|
});
|
|
238
244
|
}
|
|
239
245
|
/**
|
|
@@ -244,7 +250,7 @@ function containsEval(self, that) {
|
|
|
244
250
|
|
|
245
251
|
|
|
246
252
|
function defects_1(self) {
|
|
247
|
-
return tsplus_module_7.reverse(foldLeft_1(
|
|
253
|
+
return tsplus_module_7.reverse(foldLeft_1(tsplus_module_6.empty(), (z, c) => isHalt_1(c) ? tsplus_module_5.just(tsplus_module_7.prependOperator(c.value, z)) : tsplus_module_5.nothing())(self));
|
|
248
254
|
}
|
|
249
255
|
/**
|
|
250
256
|
* The empty `Cause`
|
|
@@ -276,7 +282,7 @@ function fail_1(value, trace = tsplus_module_8.none) {
|
|
|
276
282
|
|
|
277
283
|
|
|
278
284
|
function failed_1(self) {
|
|
279
|
-
return tsplus_module_9.
|
|
285
|
+
return tsplus_module_9.match(() => false, () => true)(failureMaybe_1(self));
|
|
280
286
|
}
|
|
281
287
|
/**
|
|
282
288
|
* Produces a list of all recoverable errors `E` in the `Cause`.
|
|
@@ -286,7 +292,7 @@ function failed_1(self) {
|
|
|
286
292
|
|
|
287
293
|
|
|
288
294
|
function failures(self) {
|
|
289
|
-
return tsplus_module_7.reverse(foldLeft_1(
|
|
295
|
+
return tsplus_module_7.reverse(foldLeft_1(tsplus_module_6.empty(), (z, c) => isFail_1(c) ? tsplus_module_5.just(tsplus_module_7.prependOperator(c.value, z)) : tsplus_module_5.nothing())(self));
|
|
290
296
|
}
|
|
291
297
|
/**
|
|
292
298
|
* Retrieve the first checked error on the `Left` if available,
|
|
@@ -298,7 +304,7 @@ function failures(self) {
|
|
|
298
304
|
|
|
299
305
|
|
|
300
306
|
function failureOrCause(self) {
|
|
301
|
-
return tsplus_module_9.
|
|
307
|
+
return tsplus_module_9.match(() => tsplus_module_10.right(self), tsplus_module_10.left)(failureMaybe_1(self));
|
|
302
308
|
}
|
|
303
309
|
/**
|
|
304
310
|
* Returns the `E` associated with the first `Fail` in this `Cause` if one
|
|
@@ -309,7 +315,7 @@ function failureOrCause(self) {
|
|
|
309
315
|
|
|
310
316
|
|
|
311
317
|
function failureTraceMaybe_1(self) {
|
|
312
|
-
return find_1(
|
|
318
|
+
return find_1(c => isFail_1(c) ? tsplus_module_5.just([c.value, c.trace]) : tsplus_module_5.nothing())(self);
|
|
313
319
|
}
|
|
314
320
|
/**
|
|
315
321
|
* Retrieve the first checked error and its trace on the `Left` if available,
|
|
@@ -321,7 +327,7 @@ function failureTraceMaybe_1(self) {
|
|
|
321
327
|
|
|
322
328
|
|
|
323
329
|
function failureTraceOrCause(self) {
|
|
324
|
-
return tsplus_module_9.
|
|
330
|
+
return tsplus_module_9.match(() => tsplus_module_10.right(self), tsplus_module_10.left)(failureTraceMaybe_1(self));
|
|
325
331
|
}
|
|
326
332
|
/**
|
|
327
333
|
* Returns the `E` associated with the first `Fail` in this `Cause` if one exists.
|
|
@@ -331,49 +337,51 @@ function failureTraceOrCause(self) {
|
|
|
331
337
|
|
|
332
338
|
|
|
333
339
|
function failureMaybe_1(self) {
|
|
334
|
-
return find_1(
|
|
340
|
+
return find_1(c => c._tag === "Fail"
|
|
335
341
|
/* CauseTag.Fail */
|
|
336
|
-
? tsplus_module_5.just(c.value) : tsplus_module_5.nothing());
|
|
342
|
+
? tsplus_module_5.just(c.value) : tsplus_module_5.nothing())(self);
|
|
337
343
|
}
|
|
338
344
|
/**
|
|
339
345
|
* Remove all `Halt` causes that the specified partial function is defined at,
|
|
340
346
|
* returning `Just` with the remaining causes or `Nothing` if there are no
|
|
341
347
|
* remaining causes.
|
|
342
348
|
*
|
|
343
|
-
* @tsplus
|
|
349
|
+
* @tsplus pipeable fncts.Cause filterDefects
|
|
344
350
|
*/
|
|
345
351
|
|
|
346
352
|
|
|
347
|
-
function
|
|
348
|
-
return
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
353
|
+
function filterDefects(p) {
|
|
354
|
+
return self => {
|
|
355
|
+
return tsplus_module_13.fold({
|
|
356
|
+
Empty: () => tsplus_module_5.just(empty_1()),
|
|
357
|
+
Fail: (e, trace) => tsplus_module_5.just(fail_1(e, trace)),
|
|
358
|
+
Halt: (u, trace) => p(u) ? tsplus_module_5.nothing() : tsplus_module_5.just(halt_1(u, trace)),
|
|
359
|
+
Interrupt: (fiberId, trace) => tsplus_module_5.just(interrupt_1(fiberId, trace)),
|
|
360
|
+
Then: (l, r) => {
|
|
361
|
+
if (tsplus_module_11.isJust(l) && tsplus_module_11.isJust(r)) {
|
|
362
|
+
return tsplus_module_5.just(then_1(l.value, r.value));
|
|
363
|
+
} else if (tsplus_module_11.isJust(l) && tsplus_module_11.isNothing(r)) {
|
|
364
|
+
return tsplus_module_5.just(l.value);
|
|
365
|
+
} else if (tsplus_module_11.isNothing(l) && tsplus_module_11.isJust(r)) {
|
|
366
|
+
return tsplus_module_5.just(r.value);
|
|
367
|
+
} else {
|
|
368
|
+
return tsplus_module_5.nothing();
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
Both: (l, r) => {
|
|
372
|
+
if (tsplus_module_11.isJust(l) && tsplus_module_11.isJust(r)) {
|
|
373
|
+
return tsplus_module_5.just(both_1(l.value, r.value));
|
|
374
|
+
} else if (tsplus_module_11.isJust(l) && tsplus_module_11.isNothing(r)) {
|
|
375
|
+
return tsplus_module_5.just(l.value);
|
|
376
|
+
} else if (tsplus_module_11.isNothing(l) && tsplus_module_11.isJust(r)) {
|
|
377
|
+
return tsplus_module_5.just(r.value);
|
|
378
|
+
} else {
|
|
379
|
+
return tsplus_module_5.nothing();
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
Stackless: (causeOption, stackless) => tsplus_module_12.map(cause => stackless_1(cause, stackless))(causeOption)
|
|
383
|
+
})(self);
|
|
384
|
+
};
|
|
377
385
|
}
|
|
378
386
|
/**
|
|
379
387
|
* @tsplus tailRec
|
|
@@ -407,7 +415,7 @@ function findLoop(self, f, stack) {
|
|
|
407
415
|
{
|
|
408
416
|
self_2 = self_1.left;
|
|
409
417
|
f_2 = f_1;
|
|
410
|
-
stack_2 = tsplus_module_7.
|
|
418
|
+
stack_2 = tsplus_module_7.prepend(self_1.right)(stack_1);
|
|
411
419
|
self_1 = self_2;
|
|
412
420
|
f_1 = f_2;
|
|
413
421
|
stack_1 = stack_2;
|
|
@@ -443,12 +451,14 @@ function findLoop(self, f, stack) {
|
|
|
443
451
|
/**
|
|
444
452
|
* Finds the first result matching `f`
|
|
445
453
|
*
|
|
446
|
-
* @tsplus
|
|
454
|
+
* @tsplus pipeable fncts.Cause find
|
|
447
455
|
*/
|
|
448
456
|
|
|
449
457
|
|
|
450
|
-
function find_1(
|
|
451
|
-
return
|
|
458
|
+
function find_1(f) {
|
|
459
|
+
return self => {
|
|
460
|
+
return findLoop(self, f, tsplus_module_6.nil());
|
|
461
|
+
};
|
|
452
462
|
}
|
|
453
463
|
/**
|
|
454
464
|
* @tsplus getter fncts.Cause flatten
|
|
@@ -456,7 +466,7 @@ function find_1(self, f) {
|
|
|
456
466
|
|
|
457
467
|
|
|
458
468
|
function flatten(self) {
|
|
459
|
-
return flatMap_1(
|
|
469
|
+
return flatMap_1(_function.identity)(self);
|
|
460
470
|
}
|
|
461
471
|
|
|
462
472
|
class FCEStackFrameDone {
|
|
@@ -508,7 +518,7 @@ class FCEStackFrameBothRight {
|
|
|
508
518
|
|
|
509
519
|
|
|
510
520
|
function flipCauseEither(self) {
|
|
511
|
-
const stack = tsplus_module_16.
|
|
521
|
+
const stack = tsplus_module_16.makeStack();
|
|
512
522
|
stack.push(new FCEStackFrameDone());
|
|
513
523
|
let result;
|
|
514
524
|
let c = self;
|
|
@@ -538,7 +548,7 @@ function flipCauseEither(self) {
|
|
|
538
548
|
case "Fail"
|
|
539
549
|
/* CauseTag.Fail */
|
|
540
550
|
:
|
|
541
|
-
result = tsplus_module_17.
|
|
551
|
+
result = tsplus_module_17.match(l => tsplus_module_10.left(fail_1(l, tsplus_module_8.none)), r => tsplus_module_10.right(r))(c.value);
|
|
542
552
|
break pushing;
|
|
543
553
|
|
|
544
554
|
case "Then"
|
|
@@ -668,7 +678,7 @@ class FCOStackFrameBothRight {
|
|
|
668
678
|
|
|
669
679
|
|
|
670
680
|
function flipCauseOption(self) {
|
|
671
|
-
const stack = tsplus_module_16.
|
|
681
|
+
const stack = tsplus_module_16.makeStack();
|
|
672
682
|
stack.push(new FCOStackFrameDone());
|
|
673
683
|
let result;
|
|
674
684
|
let c = self;
|
|
@@ -698,7 +708,7 @@ function flipCauseOption(self) {
|
|
|
698
708
|
case "Fail"
|
|
699
709
|
/* CauseTag.Fail */
|
|
700
710
|
:
|
|
701
|
-
result = tsplus_module_9.
|
|
711
|
+
result = tsplus_module_9.match(() => tsplus_module_5.nothing(), r => tsplus_module_5.just(fail_1(r, tsplus_module_8.none)))(c.value);
|
|
702
712
|
break pushing;
|
|
703
713
|
|
|
704
714
|
case "Then"
|
|
@@ -783,12 +793,14 @@ function flipCauseOption(self) {
|
|
|
783
793
|
/**
|
|
784
794
|
* Accumulates a state over a `Cause`
|
|
785
795
|
*
|
|
786
|
-
* @tsplus
|
|
796
|
+
* @tsplus pipeable fncts.Cause foldLeft
|
|
787
797
|
*/
|
|
788
798
|
|
|
789
799
|
|
|
790
|
-
function foldLeft_1(
|
|
791
|
-
return
|
|
800
|
+
function foldLeft_1(b, f) {
|
|
801
|
+
return self => {
|
|
802
|
+
return foldLeftLoop(self, b, f, tsplus_module_6.nil());
|
|
803
|
+
};
|
|
792
804
|
}
|
|
793
805
|
/**
|
|
794
806
|
* @internal
|
|
@@ -807,7 +819,7 @@ function foldLeftLoop(self, b, f, stack) {
|
|
|
807
819
|
stack_4 = stack;
|
|
808
820
|
|
|
809
821
|
while (1) {
|
|
810
|
-
const z = tsplus_module_12.
|
|
822
|
+
const z = tsplus_module_12.getOrElse(() => b_1)(f_3(b_1, self_3));
|
|
811
823
|
|
|
812
824
|
switch (self_3._tag) {
|
|
813
825
|
case "Both"
|
|
@@ -820,7 +832,7 @@ function foldLeftLoop(self, b, f, stack) {
|
|
|
820
832
|
self_4 = self_3.left;
|
|
821
833
|
b_2 = z;
|
|
822
834
|
f_4 = f_3;
|
|
823
|
-
stack_4 = tsplus_module_7.
|
|
835
|
+
stack_4 = tsplus_module_7.prepend(self_3.right)(stack_3);
|
|
824
836
|
self_3 = self_4;
|
|
825
837
|
b_1 = b_2;
|
|
826
838
|
f_3 = f_4;
|
|
@@ -866,7 +878,7 @@ function halt_1(value, trace = tsplus_module_8.none) {
|
|
|
866
878
|
|
|
867
879
|
|
|
868
880
|
function halted_1(self) {
|
|
869
|
-
return tsplus_module_9.
|
|
881
|
+
return tsplus_module_9.match(() => false, () => true)(haltMaybe_1(self));
|
|
870
882
|
}
|
|
871
883
|
/**
|
|
872
884
|
* Returns the `unknown` associated with the first `Halt` in this `Cause` if one exists.
|
|
@@ -876,9 +888,9 @@ function halted_1(self) {
|
|
|
876
888
|
|
|
877
889
|
|
|
878
890
|
function haltMaybe_1(self) {
|
|
879
|
-
return find_1(
|
|
891
|
+
return find_1(c => c._tag === "Halt"
|
|
880
892
|
/* CauseTag.Halt */
|
|
881
|
-
? tsplus_module_5.just(c.value) : tsplus_module_5.nothing());
|
|
893
|
+
? tsplus_module_5.just(c.value) : tsplus_module_5.nothing())(self);
|
|
882
894
|
}
|
|
883
895
|
/**
|
|
884
896
|
* Constructs a `Cause` from an `Id`, representing an interruption of asynchronous computation
|
|
@@ -957,7 +969,7 @@ function isInterrupt_1(self) {
|
|
|
957
969
|
|
|
958
970
|
|
|
959
971
|
function isInterrupted_1(self) {
|
|
960
|
-
return tsplus_module_11.isJust(find_1(
|
|
972
|
+
return tsplus_module_11.isJust(find_1(cause => isInterrupt_1(cause) ? tsplus_module_5.just(cause) : tsplus_module_5.nothing())(self));
|
|
961
973
|
}
|
|
962
974
|
/**
|
|
963
975
|
* A type-guard matching `Traced`
|
|
@@ -967,7 +979,7 @@ function isInterrupted_1(self) {
|
|
|
967
979
|
|
|
968
980
|
|
|
969
981
|
function isTraced(self) {
|
|
970
|
-
return tsplus_module_11.isJust(find_1(
|
|
982
|
+
return tsplus_module_11.isJust(find_1(cause => {
|
|
971
983
|
switch (cause._tag) {
|
|
972
984
|
case "Halt"
|
|
973
985
|
/* CauseTag.Halt */
|
|
@@ -983,7 +995,7 @@ function isTraced(self) {
|
|
|
983
995
|
default:
|
|
984
996
|
return tsplus_module_5.nothing();
|
|
985
997
|
}
|
|
986
|
-
}));
|
|
998
|
+
})(self));
|
|
987
999
|
}
|
|
988
1000
|
/**
|
|
989
1001
|
* Determines whether the `Cause` contains an interruption
|
|
@@ -993,7 +1005,7 @@ function isTraced(self) {
|
|
|
993
1005
|
|
|
994
1006
|
|
|
995
1007
|
function interrupted(self) {
|
|
996
|
-
return tsplus_module_9.
|
|
1008
|
+
return tsplus_module_9.match(() => false, () => true)(interruptOption_1(self));
|
|
997
1009
|
}
|
|
998
1010
|
/**
|
|
999
1011
|
* Returns the `FiberId` associated with the first `Interrupt` in this `Cause` if one exists.
|
|
@@ -1003,9 +1015,9 @@ function interrupted(self) {
|
|
|
1003
1015
|
|
|
1004
1016
|
|
|
1005
1017
|
function interruptOption_1(self) {
|
|
1006
|
-
return find_1(
|
|
1018
|
+
return find_1(c => c._tag === "Interrupt"
|
|
1007
1019
|
/* CauseTag.Interrupt */
|
|
1008
|
-
? tsplus_module_5.just(c.id) : tsplus_module_5.nothing());
|
|
1020
|
+
? tsplus_module_5.just(c.id) : tsplus_module_5.nothing())(self);
|
|
1009
1021
|
}
|
|
1010
1022
|
/**
|
|
1011
1023
|
* Returns a set of interruptors, fibers that interrupted the fiber described
|
|
@@ -1016,9 +1028,9 @@ function interruptOption_1(self) {
|
|
|
1016
1028
|
|
|
1017
1029
|
|
|
1018
1030
|
function interruptors_1(self) {
|
|
1019
|
-
return foldLeft_1(
|
|
1031
|
+
return foldLeft_1(tsplus_module_19.makeDefault(), (s, c) => c._tag === "Interrupt"
|
|
1020
1032
|
/* CauseTag.Interrupt */
|
|
1021
|
-
? tsplus_module_5.just(tsplus_module_19.
|
|
1033
|
+
? tsplus_module_5.just(tsplus_module_19.add(c.id)(s)) : tsplus_module_5.nothing())(self);
|
|
1022
1034
|
}
|
|
1023
1035
|
/**
|
|
1024
1036
|
* Determines if the `Cause` contains only interruptions and not any `Halt` or
|
|
@@ -1029,7 +1041,7 @@ function interruptors_1(self) {
|
|
|
1029
1041
|
|
|
1030
1042
|
|
|
1031
1043
|
function interruptedOnly(self) {
|
|
1032
|
-
return tsplus_module_12.
|
|
1044
|
+
return tsplus_module_12.getOrElse(() => true)(find_1(c => halted_1(c) || failed_1(c) ? tsplus_module_5.just(false) : tsplus_module_5.nothing())(self));
|
|
1033
1045
|
}
|
|
1034
1046
|
/**
|
|
1035
1047
|
* Remove all `Fail` and `Interrupt` nodes from this `Cause`,
|
|
@@ -1040,7 +1052,7 @@ function interruptedOnly(self) {
|
|
|
1040
1052
|
|
|
1041
1053
|
|
|
1042
1054
|
function keepDefects(self) {
|
|
1043
|
-
return tsplus_module_13.
|
|
1055
|
+
return tsplus_module_13.fold({
|
|
1044
1056
|
Empty: () => tsplus_module_5.nothing(),
|
|
1045
1057
|
Fail: () => tsplus_module_5.nothing(),
|
|
1046
1058
|
Halt: (t, trace) => tsplus_module_5.just(halt_1(t, trace)),
|
|
@@ -1067,32 +1079,36 @@ function keepDefects(self) {
|
|
|
1067
1079
|
return tsplus_module_5.nothing();
|
|
1068
1080
|
}
|
|
1069
1081
|
},
|
|
1070
|
-
Stackless: (maybeCause, stackless) => tsplus_module_12.
|
|
1071
|
-
});
|
|
1082
|
+
Stackless: (maybeCause, stackless) => tsplus_module_12.map(cause => stackless_1(cause, stackless))(maybeCause)
|
|
1083
|
+
})(self);
|
|
1072
1084
|
}
|
|
1073
1085
|
/**
|
|
1074
|
-
* @tsplus
|
|
1086
|
+
* @tsplus pipeable fncts.Cause map
|
|
1075
1087
|
*/
|
|
1076
1088
|
|
|
1077
1089
|
|
|
1078
|
-
function map_1(
|
|
1079
|
-
return
|
|
1090
|
+
function map_1(f) {
|
|
1091
|
+
return self => {
|
|
1092
|
+
return flatMap_1(e => fail_1(f(e), tsplus_module_8.none))(self);
|
|
1093
|
+
};
|
|
1080
1094
|
}
|
|
1081
1095
|
/**
|
|
1082
|
-
* @tsplus
|
|
1096
|
+
* @tsplus pipeable fncts.Cause mapTrace
|
|
1083
1097
|
*/
|
|
1084
1098
|
|
|
1085
1099
|
|
|
1086
|
-
function mapTrace_1(
|
|
1087
|
-
return
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1100
|
+
function mapTrace_1(f) {
|
|
1101
|
+
return self => {
|
|
1102
|
+
return tsplus_module_13.fold({
|
|
1103
|
+
Empty: () => empty_1(),
|
|
1104
|
+
Fail: (e, trace) => fail_1(e, f(trace)),
|
|
1105
|
+
Halt: (u, trace) => halt_1(u, f(trace)),
|
|
1106
|
+
Interrupt: (id, trace) => interrupt_1(id, f(trace)),
|
|
1107
|
+
Then: then_1,
|
|
1108
|
+
Both: both_1,
|
|
1109
|
+
Stackless: stackless_1
|
|
1110
|
+
})(self);
|
|
1111
|
+
};
|
|
1096
1112
|
}
|
|
1097
1113
|
/**
|
|
1098
1114
|
* @tsplus static fncts.CauseOps stackless
|
|
@@ -1111,7 +1127,7 @@ function stackless_1(cause, stackless) {
|
|
|
1111
1127
|
|
|
1112
1128
|
|
|
1113
1129
|
function stripFailures(self) {
|
|
1114
|
-
return tsplus_module_13.
|
|
1130
|
+
return tsplus_module_13.fold({
|
|
1115
1131
|
Empty: () => empty_1(),
|
|
1116
1132
|
Fail: () => empty_1(),
|
|
1117
1133
|
Halt: (u, trace) => halt_1(u, trace),
|
|
@@ -1119,27 +1135,29 @@ function stripFailures(self) {
|
|
|
1119
1135
|
Then: (l, r) => then_1(l, r),
|
|
1120
1136
|
Both: (l, r) => both_1(l, r),
|
|
1121
1137
|
Stackless: (c, stackless) => stackless_1(c, stackless)
|
|
1122
|
-
});
|
|
1138
|
+
})(self);
|
|
1123
1139
|
}
|
|
1124
1140
|
/**
|
|
1125
1141
|
* Remove all `Halt` causes that the specified partial function is defined at,
|
|
1126
1142
|
* returning `Just` with the remaining causes or `Nothing` if there are no
|
|
1127
1143
|
* remaining causes.
|
|
1128
1144
|
*
|
|
1129
|
-
* @tsplus
|
|
1145
|
+
* @tsplus pipeable fncts.Cause stripSomeDefects
|
|
1130
1146
|
*/
|
|
1131
1147
|
|
|
1132
1148
|
|
|
1133
|
-
function stripSomeDefects(
|
|
1134
|
-
return
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1149
|
+
function stripSomeDefects(p) {
|
|
1150
|
+
return self => {
|
|
1151
|
+
return tsplus_module_13.fold({
|
|
1152
|
+
Empty: () => tsplus_module_5.just(empty_1()),
|
|
1153
|
+
Fail: (e, trace) => tsplus_module_5.just(fail_1(e, trace)),
|
|
1154
|
+
Halt: (t, trace) => p(t) ? tsplus_module_5.nothing() : tsplus_module_5.just(halt_1(t, trace)),
|
|
1155
|
+
Interrupt: (fiberId, trace) => tsplus_module_5.just(interrupt_1(fiberId, trace)),
|
|
1156
|
+
Then: (l, r) => tsplus_module_11.isJust(l) && tsplus_module_11.isJust(r) ? tsplus_module_5.just(then_1(l.value, r.value)) : tsplus_module_11.isJust(l) ? tsplus_module_5.just(l.value) : tsplus_module_11.isJust(r) ? tsplus_module_5.just(r.value) : tsplus_module_5.nothing(),
|
|
1157
|
+
Both: (l, r) => tsplus_module_11.isJust(l) && tsplus_module_11.isJust(r) ? tsplus_module_5.just(then_1(l.value, r.value)) : tsplus_module_11.isJust(l) ? tsplus_module_5.just(l.value) : tsplus_module_11.isJust(r) ? tsplus_module_5.just(r.value) : tsplus_module_5.nothing(),
|
|
1158
|
+
Stackless: (causeOption, stackless) => tsplus_module_12.map(cause => stackless_1(cause, stackless))(causeOption)
|
|
1159
|
+
})(self);
|
|
1160
|
+
};
|
|
1143
1161
|
}
|
|
1144
1162
|
|
|
1145
1163
|
function sequenceCauseEitherEval(self) {
|
|
@@ -1162,7 +1180,7 @@ function sequenceCauseEitherEval(self) {
|
|
|
1162
1180
|
/* CauseTag.Fail */
|
|
1163
1181
|
:
|
|
1164
1182
|
{
|
|
1165
|
-
return tsplus_module_1.now(tsplus_module_17.
|
|
1183
|
+
return tsplus_module_1.now(tsplus_module_17.match(e => tsplus_module_10.left(fail_1(e, tsplus_module_8.none)), a => tsplus_module_10.right(a))(self.value));
|
|
1166
1184
|
}
|
|
1167
1185
|
|
|
1168
1186
|
case "Halt"
|
|
@@ -1176,7 +1194,7 @@ function sequenceCauseEitherEval(self) {
|
|
|
1176
1194
|
/* CauseTag.Then */
|
|
1177
1195
|
:
|
|
1178
1196
|
{
|
|
1179
|
-
return tsplus_module_2.
|
|
1197
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.right)), (lefts, rights) => {
|
|
1180
1198
|
void 0;
|
|
1181
1199
|
void 0;
|
|
1182
1200
|
return lefts._tag === "Left"
|
|
@@ -1184,14 +1202,14 @@ function sequenceCauseEitherEval(self) {
|
|
|
1184
1202
|
? rights._tag === "Right"
|
|
1185
1203
|
/* EitherTag.Right */
|
|
1186
1204
|
? tsplus_module_10.right(rights.right) : tsplus_module_10.left(then_1(lefts.left, rights.left)) : tsplus_module_10.right(lefts.right);
|
|
1187
|
-
});
|
|
1205
|
+
})(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.left)));
|
|
1188
1206
|
}
|
|
1189
1207
|
|
|
1190
1208
|
case "Both"
|
|
1191
1209
|
/* CauseTag.Both */
|
|
1192
1210
|
:
|
|
1193
1211
|
{
|
|
1194
|
-
return tsplus_module_2.
|
|
1212
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.right)), (lefts, rights) => {
|
|
1195
1213
|
void 0;
|
|
1196
1214
|
void 0;
|
|
1197
1215
|
return lefts._tag === "Left"
|
|
@@ -1199,14 +1217,14 @@ function sequenceCauseEitherEval(self) {
|
|
|
1199
1217
|
? rights._tag === "Right"
|
|
1200
1218
|
/* EitherTag.Right */
|
|
1201
1219
|
? tsplus_module_10.right(rights.right) : tsplus_module_10.left(both_1(lefts.left, rights.left)) : tsplus_module_10.right(lefts.right);
|
|
1202
|
-
});
|
|
1220
|
+
})(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.left)));
|
|
1203
1221
|
}
|
|
1204
1222
|
|
|
1205
1223
|
case "Stackless"
|
|
1206
1224
|
/* CauseTag.Stackless */
|
|
1207
1225
|
:
|
|
1208
1226
|
{
|
|
1209
|
-
return tsplus_module_2.
|
|
1227
|
+
return tsplus_module_2.map(_ => tsplus_module_18.mapLeft(cause => stackless_1(cause, self.stackless))(_))(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.cause)));
|
|
1210
1228
|
}
|
|
1211
1229
|
}
|
|
1212
1230
|
}
|
|
@@ -1241,7 +1259,7 @@ function sequenceCauseMaybeEval(self) {
|
|
|
1241
1259
|
/* CauseTag.Fail */
|
|
1242
1260
|
:
|
|
1243
1261
|
{
|
|
1244
|
-
return tsplus_module_1.now(tsplus_module_12.
|
|
1262
|
+
return tsplus_module_1.now(tsplus_module_12.map(e => fail_1(e, tsplus_module_8.none))(self.value));
|
|
1245
1263
|
}
|
|
1246
1264
|
|
|
1247
1265
|
case "Halt"
|
|
@@ -1255,7 +1273,7 @@ function sequenceCauseMaybeEval(self) {
|
|
|
1255
1273
|
/* CauseTag.Then */
|
|
1256
1274
|
:
|
|
1257
1275
|
{
|
|
1258
|
-
return tsplus_module_2.
|
|
1276
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.right)), (lefts, rights) => {
|
|
1259
1277
|
void 0;
|
|
1260
1278
|
void 0;
|
|
1261
1279
|
return lefts._tag === "Just"
|
|
@@ -1265,14 +1283,14 @@ function sequenceCauseMaybeEval(self) {
|
|
|
1265
1283
|
? tsplus_module_5.just(then_1(lefts.value, rights.value)) : lefts : rights._tag === "Just"
|
|
1266
1284
|
/* MaybeTag.Just */
|
|
1267
1285
|
? rights : tsplus_module_5.nothing();
|
|
1268
|
-
});
|
|
1286
|
+
})(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.left)));
|
|
1269
1287
|
}
|
|
1270
1288
|
|
|
1271
1289
|
case "Both"
|
|
1272
1290
|
/* CauseTag.Both */
|
|
1273
1291
|
:
|
|
1274
1292
|
{
|
|
1275
|
-
return tsplus_module_2.
|
|
1293
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.right)), (lefts, rights) => {
|
|
1276
1294
|
void 0;
|
|
1277
1295
|
void 0;
|
|
1278
1296
|
return lefts._tag === "Just"
|
|
@@ -1282,14 +1300,14 @@ function sequenceCauseMaybeEval(self) {
|
|
|
1282
1300
|
? tsplus_module_5.just(both_1(lefts.value, rights.value)) : lefts : rights._tag === "Just"
|
|
1283
1301
|
/* MaybeTag.Just */
|
|
1284
1302
|
? rights : tsplus_module_5.nothing();
|
|
1285
|
-
});
|
|
1303
|
+
})(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.left)));
|
|
1286
1304
|
}
|
|
1287
1305
|
|
|
1288
1306
|
case "Stackless"
|
|
1289
1307
|
/* CauseTag.Stackless */
|
|
1290
1308
|
:
|
|
1291
1309
|
{
|
|
1292
|
-
return tsplus_module_2.
|
|
1310
|
+
return tsplus_module_2.map(_ => tsplus_module_12.map(cause => stackless_1(cause, self.stackless))(_))(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.cause)));
|
|
1293
1311
|
}
|
|
1294
1312
|
}
|
|
1295
1313
|
}
|
|
@@ -1307,12 +1325,14 @@ function sequenceCauseMaybe(self) {
|
|
|
1307
1325
|
* Squashes a `Cause` down to a single `Error`, chosen to be the
|
|
1308
1326
|
* "most important" `Error`.
|
|
1309
1327
|
*
|
|
1310
|
-
* @tsplus
|
|
1328
|
+
* @tsplus pipeable fncts.Cause squashWith
|
|
1311
1329
|
*/
|
|
1312
1330
|
|
|
1313
1331
|
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1332
|
+
function squashWith(f) {
|
|
1333
|
+
return self => {
|
|
1334
|
+
return tsplus_module_12.getOrElse(() => new tsplus_module_20.InterruptedException())(tsplus_module_12.orElse(() => tsplus_module_7.head(defects_1(self)))(tsplus_module_12.orElse(() => isInterrupted_1(self) ? tsplus_module_5.just(new tsplus_module_20.InterruptedException("Interrupted by fibers: " + tsplus_module_19.join(", ")(tsplus_module_19.mapDefault(id => `#${id}`)(tsplus_module_19.flatMapDefault(id => tsplus_module_21.ids(id))(interruptors_1(self)))))) : tsplus_module_5.nothing())(tsplus_module_12.map(f)(failureMaybe_1(self)))));
|
|
1335
|
+
};
|
|
1316
1336
|
}
|
|
1317
1337
|
/**
|
|
1318
1338
|
* Constructs a `Cause` from two `Cause`s, representing sequential failures.
|
|
@@ -1338,7 +1358,7 @@ function then_1(left, right) {
|
|
|
1338
1358
|
|
|
1339
1359
|
|
|
1340
1360
|
function traced_1(cause, trace) {
|
|
1341
|
-
return mapTrace_1(
|
|
1361
|
+
return mapTrace_1(t => tsplus_module_22.combine(trace)(t))(cause);
|
|
1342
1362
|
}
|
|
1343
1363
|
/**
|
|
1344
1364
|
* Returns a `Cause` that has been stripped of all tracing information.
|
|
@@ -1348,6 +1368,6 @@ function traced_1(cause, trace) {
|
|
|
1348
1368
|
|
|
1349
1369
|
|
|
1350
1370
|
function untraced(self) {
|
|
1351
|
-
return mapTrace_1(
|
|
1371
|
+
return mapTrace_1(() => tsplus_module_8.none)(self);
|
|
1352
1372
|
}
|
|
1353
1373
|
//# sourceMappingURL=api.cjs.map
|