@fncts/base 0.0.20 → 0.0.22
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 -19
- package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
- package/_cjs/collection/Iterable/api.cjs +500 -610
- package/_cjs/collection/Iterable/api.cjs.map +1 -1
- package/_cjs/collection/Iterable/constructors.cjs +7 -25
- package/_cjs/collection/Iterable/constructors.cjs.map +1 -1
- package/_cjs/collection/Iterable/definition.cjs.map +1 -1
- package/_cjs/collection/Iterable.cjs +0 -6
- package/_cjs/collection/Iterable.cjs.map +1 -1
- package/_cjs/collection/compat/Array/api.cjs +17 -26
- package/_cjs/collection/compat/Array/api.cjs.map +1 -1
- package/_cjs/collection/compat/Array/definition.cjs.map +1 -1
- package/_cjs/collection/compat/Array.cjs +0 -17
- package/_cjs/collection/compat/Array.cjs.map +1 -1
- package/_cjs/collection/compat/ArrayLike/api.cjs +4 -13
- package/_cjs/collection/compat/ArrayLike/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api/empty.cjs +0 -2
- package/_cjs/collection/immutable/Conc/api/empty.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs +1 -9
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api/replicate.cjs +0 -4
- package/_cjs/collection/immutable/Conc/api/replicate.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api.cjs +801 -1039
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/constructors.cjs +0 -14
- package/_cjs/collection/immutable/Conc/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/definition.cjs +76 -273
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs +0 -25
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/api.cjs +57 -70
- package/_cjs/collection/immutable/Dictionary/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/definition.cjs +0 -4
- package/_cjs/collection/immutable/Dictionary/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary.cjs +28 -0
- package/_cjs/collection/immutable/Dictionary.cjs.map +1 -0
- package/_cjs/collection/immutable/HashMap/api.cjs +371 -432
- package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs +20 -43
- package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/internal.cjs +3 -88
- package/_cjs/collection/immutable/HashMap/internal.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap.cjs +0 -4
- package/_cjs/collection/immutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/api.cjs +283 -339
- package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/definition.cjs +18 -92
- package/_cjs/collection/immutable/HashSet/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet.cjs +0 -4
- package/_cjs/collection/immutable/HashSet.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs +6 -9
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs +6 -8
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs +6 -8
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs +14 -19
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api.cjs +939 -1138
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs +0 -18
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs +4 -21
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs +49 -63
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray.cjs +0 -29
- package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +335 -420
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs +0 -24
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs +0 -9
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs +2 -19
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +24 -33
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs +0 -23
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api/foldLeft.cjs +12 -16
- package/_cjs/collection/immutable/List/api/foldLeft.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api/unsafeTail.cjs +0 -6
- package/_cjs/collection/immutable/List/api/unsafeTail.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api.cjs +167 -239
- package/_cjs/collection/immutable/List/api.cjs.map +1 -1
- package/_cjs/collection/immutable/List/constructors.cjs +1 -19
- package/_cjs/collection/immutable/List/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/List/definition.cjs +2 -25
- package/_cjs/collection/immutable/List/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/List.cjs +0 -10
- package/_cjs/collection/immutable/List.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/api.cjs +87 -118
- package/_cjs/collection/immutable/Queue/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/constructors.cjs +0 -8
- package/_cjs/collection/immutable/Queue/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/definition.cjs +3 -13
- package/_cjs/collection/immutable/Queue/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/guards.cjs +2 -6
- package/_cjs/collection/immutable/Queue/guards.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue.cjs +0 -8
- package/_cjs/collection/immutable/Queue.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/api.cjs +76 -118
- package/_cjs/collection/immutable/RoseTree/api.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/definition.cjs +4 -19
- package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree.cjs +0 -4
- package/_cjs/collection/immutable/RoseTree.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/api.cjs +439 -536
- package/_cjs/collection/immutable/SortedMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/definition.cjs +4 -6
- package/_cjs/collection/immutable/SortedMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/internal.cjs +55 -226
- package/_cjs/collection/immutable/SortedMap/internal.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/iterator.cjs +16 -107
- package/_cjs/collection/immutable/SortedMap/iterator.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/node.cjs +0 -3
- package/_cjs/collection/immutable/SortedMap/node.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap.cjs +0 -10
- package/_cjs/collection/immutable/SortedMap.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/api.cjs +751 -885
- package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/definition.cjs +27 -50
- package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/internal.cjs +79 -398
- package/_cjs/collection/immutable/Vector/internal.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector.cjs +0 -4
- package/_cjs/collection/immutable/Vector.cjs.map +1 -1
- package/_cjs/collection/mutable/HashMap.cjs +10 -89
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/mutable/HashSet.cjs +6 -67
- package/_cjs/collection/mutable/HashSet.cjs.map +1 -1
- package/_cjs/collection/mutable/ListBuffer.cjs +3 -35
- package/_cjs/collection/mutable/ListBuffer.cjs.map +1 -1
- package/_cjs/collection/mutable/internal.cjs +0 -8
- package/_cjs/collection/mutable/internal.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakMap.cjs +6 -32
- package/_cjs/collection/weak/IterableWeakMap.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakSet.cjs +6 -28
- package/_cjs/collection/weak/IterableWeakSet.cjs.map +1 -1
- package/_cjs/control/Eval/api/sequenceArray.cjs +0 -5
- package/_cjs/control/Eval/api/sequenceArray.cjs.map +1 -1
- package/_cjs/control/Eval/api.cjs +56 -76
- package/_cjs/control/Eval/api.cjs.map +1 -1
- package/_cjs/control/Eval/constructors.cjs +0 -9
- package/_cjs/control/Eval/constructors.cjs.map +1 -1
- package/_cjs/control/Eval/definition.cjs +5 -23
- package/_cjs/control/Eval/definition.cjs.map +1 -1
- package/_cjs/control/Eval/instance.cjs +6 -13
- package/_cjs/control/Eval/instance.cjs.map +1 -1
- package/_cjs/control/Eval/run.cjs +5 -28
- package/_cjs/control/Eval/run.cjs.map +1 -1
- package/_cjs/control/Eval.cjs +0 -10
- package/_cjs/control/Eval.cjs.map +1 -1
- package/_cjs/control/LazyValue.cjs +0 -6
- package/_cjs/control/LazyValue.cjs.map +1 -1
- package/_cjs/control/Z/api.cjs +241 -306
- package/_cjs/control/Z/api.cjs.map +1 -1
- package/_cjs/control/Z/definition.cjs +13 -84
- package/_cjs/control/Z/definition.cjs.map +1 -1
- package/_cjs/control/Z/instances.cjs +3 -8
- package/_cjs/control/Z/instances.cjs.map +1 -1
- package/_cjs/control/Z/runtime.cjs +206 -290
- package/_cjs/control/Z/runtime.cjs.map +1 -1
- package/_cjs/control/Z.cjs +0 -8
- package/_cjs/control/Z.cjs.map +1 -1
- package/_cjs/data/Branded/definition.cjs +0 -5
- package/_cjs/data/Branded/definition.cjs.map +1 -1
- package/_cjs/data/Branded.cjs +0 -15
- package/_cjs/data/Branded.cjs.map +1 -1
- package/_cjs/data/CaseClass.cjs +13 -45
- package/_cjs/data/CaseClass.cjs.map +1 -1
- package/_cjs/data/Cause/api/fold.cjs +31 -75
- package/_cjs/data/Cause/api/fold.cjs.map +1 -1
- package/_cjs/data/Cause/api/isEmpty.cjs +7 -33
- package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
- package/_cjs/data/Cause/api/linearize.cjs +9 -16
- package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
- package/_cjs/data/Cause/api/prettyPrint.cjs +1 -14
- package/_cjs/data/Cause/api/prettyPrint.cjs.map +1 -1
- package/_cjs/data/Cause/api/unified.cjs +14 -54
- package/_cjs/data/Cause/api/unified.cjs.map +1 -1
- package/_cjs/data/Cause/api.cjs +221 -543
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Cause/definition.cjs +63 -300
- package/_cjs/data/Cause/definition.cjs.map +1 -1
- package/_cjs/data/Cause.cjs +0 -14
- package/_cjs/data/Cause.cjs.map +1 -1
- package/_cjs/data/Const/api.cjs +8 -10
- package/_cjs/data/Const/api.cjs.map +1 -1
- package/_cjs/data/Const/definition.cjs +0 -3
- package/_cjs/data/Const/definition.cjs.map +1 -1
- package/_cjs/data/Const/instances.cjs +6 -14
- package/_cjs/data/Const/instances.cjs.map +1 -1
- package/_cjs/data/Const.cjs +0 -6
- package/_cjs/data/Const.cjs.map +1 -1
- package/_cjs/data/Datum/api.cjs +200 -279
- package/_cjs/data/Datum/api.cjs.map +1 -1
- package/_cjs/data/Datum/definition.cjs +10 -50
- package/_cjs/data/Datum/definition.cjs.map +1 -1
- package/_cjs/data/Datum/instances.cjs +0 -9
- package/_cjs/data/Datum/instances.cjs.map +1 -1
- package/_cjs/data/DatumEither/api.cjs +161 -224
- package/_cjs/data/DatumEither/api.cjs.map +1 -1
- package/_cjs/data/DatumEither/definition.cjs.map +1 -1
- package/_cjs/data/DecodeError/definition.cjs +15 -96
- package/_cjs/data/DecodeError/definition.cjs.map +1 -1
- package/_cjs/data/DecodeError.cjs +0 -4
- package/_cjs/data/DecodeError.cjs.map +1 -1
- package/_cjs/data/Decoder/api.cjs +431 -76
- package/_cjs/data/Decoder/api.cjs.map +1 -1
- package/_cjs/data/Decoder/definition.cjs +0 -6
- package/_cjs/data/Decoder/definition.cjs.map +1 -1
- package/_cjs/data/Decoder.cjs +0 -4
- package/_cjs/data/Decoder.cjs.map +1 -1
- package/_cjs/data/Duration/api.cjs +24 -36
- package/_cjs/data/Duration/api.cjs.map +1 -1
- package/_cjs/data/Duration/definition.cjs +3 -17
- package/_cjs/data/Duration/definition.cjs.map +1 -1
- package/_cjs/data/Duration.cjs +0 -4
- package/_cjs/data/Duration.cjs.map +1 -1
- package/_cjs/data/Either/api/align.cjs +8 -8
- package/_cjs/data/Either/api/align.cjs.map +1 -1
- package/_cjs/data/Either/api/alignWith.cjs +8 -18
- package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
- package/_cjs/data/Either/api.cjs +171 -262
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/constructors.cjs +11 -28
- package/_cjs/data/Either/constructors.cjs.map +1 -1
- package/_cjs/data/Either/definition.cjs +4 -23
- package/_cjs/data/Either/definition.cjs.map +1 -1
- package/_cjs/data/Either/destructors.cjs +12 -17
- package/_cjs/data/Either/destructors.cjs.map +1 -1
- package/_cjs/data/Either/instances.cjs +21 -74
- package/_cjs/data/Either/instances.cjs.map +1 -1
- package/_cjs/data/Either.cjs +0 -10
- package/_cjs/data/Either.cjs.map +1 -1
- package/_cjs/data/EitherT/api.cjs +8 -32
- package/_cjs/data/EitherT/api.cjs.map +1 -1
- package/_cjs/data/EitherT/definition.cjs.map +1 -1
- package/_cjs/data/Encoder/api.cjs +324 -0
- package/_cjs/data/Encoder/api.cjs.map +1 -0
- package/_cjs/data/Encoder/definition.cjs +21 -0
- package/_cjs/data/Encoder/definition.cjs.map +1 -0
- package/_cjs/data/Encoder.cjs +28 -0
- package/_cjs/data/Encoder.cjs.map +1 -0
- package/_cjs/data/Environment/api.cjs +47 -65
- package/_cjs/data/Environment/api.cjs.map +1 -1
- package/_cjs/data/Environment/definition.cjs +5 -21
- package/_cjs/data/Environment/definition.cjs.map +1 -1
- package/_cjs/data/Environment.cjs +0 -4
- package/_cjs/data/Environment.cjs.map +1 -1
- package/_cjs/data/EnvironmentPatch.cjs +31 -93
- package/_cjs/data/EnvironmentPatch.cjs.map +1 -1
- package/_cjs/{typeclass → data}/Eq/definition.cjs +2 -4
- package/_cjs/data/Eq/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Eq/derivations.cjs +9 -18
- package/_cjs/data/Eq/derivations.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Eq.cjs +0 -2
- package/_cjs/data/Eq.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Equatable/api.cjs +2 -10
- package/_cjs/data/Equatable/api.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Equatable/definition.cjs +0 -6
- package/_cjs/data/Equatable/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Equatable/fast-equals.cjs +1 -83
- package/_cjs/data/Equatable/fast-equals.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Equatable.cjs +0 -6
- package/_cjs/data/Equatable.cjs.map +1 -0
- package/_cjs/data/ExecutionStrategy.cjs +20 -37
- package/_cjs/data/ExecutionStrategy.cjs.map +1 -1
- package/_cjs/data/Exit/api.cjs +143 -178
- package/_cjs/data/Exit/api.cjs.map +1 -1
- package/_cjs/data/Exit/constructors.cjs +4 -26
- package/_cjs/data/Exit/constructors.cjs.map +1 -1
- package/_cjs/data/Exit/definition.cjs +8 -48
- package/_cjs/data/Exit/definition.cjs.map +1 -1
- package/_cjs/data/Exit.cjs +0 -6
- package/_cjs/data/Exit.cjs.map +1 -1
- package/_cjs/data/FiberId/api.cjs +24 -38
- package/_cjs/data/FiberId/api.cjs.map +1 -1
- package/_cjs/data/FiberId/constructors.cjs +5 -19
- package/_cjs/data/FiberId/constructors.cjs.map +1 -1
- package/_cjs/data/FiberId/definition.cjs +7 -38
- package/_cjs/data/FiberId/definition.cjs.map +1 -1
- package/_cjs/data/FiberId.cjs +0 -6
- package/_cjs/data/FiberId.cjs.map +1 -1
- package/_cjs/data/Guard/api.cjs +419 -0
- package/_cjs/data/Guard/api.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Guard/definition.cjs +0 -6
- package/_cjs/data/Guard/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Guard.cjs +0 -4
- package/_cjs/data/Guard.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Hash.cjs +0 -2
- package/_cjs/data/Hash.cjs.map +1 -0
- package/_cjs/{typeclass → data}/HashEq.cjs +14 -25
- package/_cjs/data/HashEq.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Hashable/definition.cjs +0 -6
- package/_cjs/data/Hashable/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Hashable/hash.cjs +3 -65
- package/_cjs/data/Hashable/hash.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Hashable.cjs +0 -4
- package/_cjs/data/Hashable.cjs.map +1 -0
- package/_cjs/data/Identity/api.cjs +26 -35
- package/_cjs/data/Identity/api.cjs.map +1 -1
- package/_cjs/data/Identity/definition.cjs +0 -4
- package/_cjs/data/Identity/definition.cjs.map +1 -1
- package/_cjs/data/Identity/instances.cjs +7 -12
- package/_cjs/data/Identity/instances.cjs.map +1 -1
- package/_cjs/data/Identity.cjs +0 -6
- package/_cjs/data/Identity.cjs.map +1 -1
- package/_cjs/data/Interval.cjs +46 -67
- package/_cjs/data/Interval.cjs.map +1 -1
- package/_cjs/data/Intervals.cjs +45 -76
- package/_cjs/data/Intervals.cjs.map +1 -1
- package/_cjs/data/Maybe/api.cjs +126 -171
- package/_cjs/data/Maybe/api.cjs.map +1 -1
- package/_cjs/data/Maybe/constructors.cjs +2 -26
- package/_cjs/data/Maybe/constructors.cjs.map +1 -1
- package/_cjs/data/Maybe/definition.cjs +10 -51
- package/_cjs/data/Maybe/definition.cjs.map +1 -1
- package/_cjs/data/Maybe/destructors.cjs +7 -8
- package/_cjs/data/Maybe/destructors.cjs.map +1 -1
- package/_cjs/data/Maybe/instances.cjs +41 -35
- package/_cjs/data/Maybe/instances.cjs.map +1 -1
- package/_cjs/data/Maybe.cjs +0 -10
- package/_cjs/data/Maybe.cjs.map +1 -1
- package/_cjs/data/Newtype.cjs +0 -7
- package/_cjs/data/Newtype.cjs.map +1 -1
- package/_cjs/data/Ord/api/contramap.cjs +18 -0
- package/_cjs/data/Ord/api/contramap.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/api/max.cjs +3 -4
- package/_cjs/data/Ord/api/max.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/api/min.cjs +3 -4
- package/_cjs/data/Ord/api/min.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/api.cjs +0 -6
- package/_cjs/data/Ord/api.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/definition.cjs +5 -12
- package/_cjs/data/Ord/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/instances.cjs +13 -23
- package/_cjs/data/Ord/instances.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord.cjs +0 -6
- package/_cjs/data/Ord.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ordering.cjs +0 -9
- package/_cjs/data/Ordering.cjs.map +1 -0
- package/_cjs/data/Predicate/api.cjs +10 -15
- package/_cjs/data/Predicate/api.cjs.map +1 -1
- package/_cjs/data/Predicate.cjs +0 -4
- package/_cjs/data/Predicate.cjs.map +1 -1
- package/_cjs/data/Refinement/api.cjs +15 -16
- package/_cjs/data/Refinement/api.cjs.map +1 -1
- package/_cjs/data/Refinement.cjs +0 -4
- package/_cjs/data/Refinement.cjs.map +1 -1
- package/_cjs/{typeclass → data}/Showable/definition.cjs +4 -11
- package/_cjs/data/Showable/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Showable/show.cjs +118 -271
- package/_cjs/data/Showable/show.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Showable/styles.cjs +0 -6
- package/_cjs/data/Showable/styles.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Showable/util.cjs +51 -113
- package/_cjs/data/Showable/util.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Showable.cjs +0 -4
- package/_cjs/data/Showable.cjs.map +1 -0
- package/_cjs/data/Struct/api.cjs +65 -85
- package/_cjs/data/Struct/api.cjs.map +1 -1
- package/_cjs/data/Struct/definition.cjs +0 -4
- package/_cjs/data/Struct/definition.cjs.map +1 -1
- package/_cjs/data/Tag/constructors.cjs +1 -7
- package/_cjs/data/Tag/constructors.cjs.map +1 -1
- package/_cjs/data/Tag/definition.cjs +3 -21
- package/_cjs/data/Tag/definition.cjs.map +1 -1
- package/_cjs/data/Tag.cjs +0 -4
- package/_cjs/data/Tag.cjs.map +1 -1
- package/_cjs/data/These/api.cjs +119 -226
- package/_cjs/data/These/api.cjs.map +1 -1
- package/_cjs/data/These/constructors.cjs +1 -13
- package/_cjs/data/These/constructors.cjs.map +1 -1
- package/_cjs/data/These/definition.cjs +3 -27
- package/_cjs/data/These/definition.cjs.map +1 -1
- package/_cjs/data/These/destructors.cjs +24 -52
- package/_cjs/data/These/destructors.cjs.map +1 -1
- package/_cjs/data/These/instances.cjs +2 -16
- package/_cjs/data/These/instances.cjs.map +1 -1
- package/_cjs/data/These.cjs +0 -10
- package/_cjs/data/These.cjs.map +1 -1
- package/_cjs/data/Trace/api.cjs +7 -14
- package/_cjs/data/Trace/api.cjs.map +1 -1
- package/_cjs/data/Trace/constructors.cjs +0 -8
- package/_cjs/data/Trace/constructors.cjs.map +1 -1
- package/_cjs/data/Trace/definition.cjs +0 -3
- package/_cjs/data/Trace/definition.cjs.map +1 -1
- package/_cjs/data/Trace.cjs +0 -6
- package/_cjs/data/Trace.cjs.map +1 -1
- package/_cjs/data/TraceElement/definition.cjs +0 -11
- package/_cjs/data/TraceElement/definition.cjs.map +1 -1
- package/_cjs/data/TraceElement.cjs +0 -2
- package/_cjs/data/TraceElement.cjs.map +1 -1
- package/_cjs/data/Zipped.cjs +2 -13
- package/_cjs/data/Zipped.cjs.map +1 -1
- package/_cjs/data/bigint/instances.cjs +2 -7
- package/_cjs/data/bigint/instances.cjs.map +1 -1
- package/_cjs/data/bigint.cjs +0 -4
- package/_cjs/data/bigint.cjs.map +1 -1
- package/_cjs/data/boolean/instances.cjs +2 -7
- package/_cjs/data/boolean/instances.cjs.map +1 -1
- package/_cjs/data/boolean.cjs +0 -4
- package/_cjs/data/boolean.cjs.map +1 -1
- package/_cjs/data/exceptions/ArrayIndexOutOfBoundsError.cjs +0 -3
- package/_cjs/data/exceptions/ArrayIndexOutOfBoundsError.cjs.map +1 -1
- package/_cjs/data/exceptions/IllegalArgumentError.cjs +0 -3
- package/_cjs/data/exceptions/IllegalArgumentError.cjs.map +1 -1
- package/_cjs/data/exceptions/IllegalStateError.cjs +0 -3
- package/_cjs/data/exceptions/IllegalStateError.cjs.map +1 -1
- package/_cjs/data/exceptions/IndexOutOfBoundsError.cjs +0 -3
- package/_cjs/data/exceptions/IndexOutOfBoundsError.cjs.map +1 -1
- package/_cjs/data/exceptions/InterruptedException.cjs +0 -6
- package/_cjs/data/exceptions/InterruptedException.cjs.map +1 -1
- package/_cjs/data/exceptions/InvalidCapacityError.cjs +0 -4
- package/_cjs/data/exceptions/InvalidCapacityError.cjs.map +1 -1
- package/_cjs/data/exceptions/NoSuchElementError.cjs +0 -3
- package/_cjs/data/exceptions/NoSuchElementError.cjs.map +1 -1
- package/_cjs/data/exceptions.cjs +0 -16
- package/_cjs/data/exceptions.cjs.map +1 -1
- package/_cjs/data/function/api.cjs +6 -15
- package/_cjs/data/function/api.cjs.map +1 -1
- package/_cjs/data/function/pipe.cjs +8 -21
- package/_cjs/data/function/pipe.cjs.map +1 -1
- package/_cjs/data/function.cjs +0 -6
- package/_cjs/data/function.cjs.map +1 -1
- package/_cjs/data/number/api.cjs +0 -1
- package/_cjs/data/number/api.cjs.map +1 -1
- package/_cjs/data/number/instances.cjs +10 -19
- package/_cjs/data/number/instances.cjs.map +1 -1
- package/_cjs/data/number.cjs +0 -6
- package/_cjs/data/number.cjs.map +1 -1
- package/_cjs/data/object/instances.cjs +1 -16
- package/_cjs/data/object/instances.cjs.map +1 -1
- package/_cjs/data/object.cjs +0 -4
- package/_cjs/data/object.cjs.map +1 -1
- package/_cjs/data/string/api.cjs +54 -130
- package/_cjs/data/string/api.cjs.map +1 -1
- package/_cjs/data/string/instances.cjs +11 -24
- package/_cjs/data/string/instances.cjs.map +1 -1
- package/_cjs/data/string.cjs +0 -6
- package/_cjs/data/string.cjs.map +1 -1
- package/_cjs/global/api.cjs +4 -3
- package/_cjs/global/api.cjs.map +1 -1
- package/_cjs/internal/AtomicBoolean.cjs +0 -4
- package/_cjs/internal/AtomicBoolean.cjs.map +1 -1
- package/_cjs/internal/AtomicNumber.cjs +0 -7
- package/_cjs/internal/AtomicNumber.cjs.map +1 -1
- package/_cjs/internal/AtomicReference.cjs +0 -8
- package/_cjs/internal/AtomicReference.cjs.map +1 -1
- package/_cjs/internal/Stack.cjs +2 -15
- package/_cjs/internal/Stack.cjs.map +1 -1
- package/_cjs/json/EitherJson.cjs +1 -7
- package/_cjs/json/EitherJson.cjs.map +1 -1
- package/_cjs/json/MaybeJson.cjs +1 -7
- package/_cjs/json/MaybeJson.cjs.map +1 -1
- package/_cjs/json/TheseJson.cjs +1 -7
- package/_cjs/json/TheseJson.cjs.map +1 -1
- package/_cjs/optics/At/api.cjs +1 -6
- package/_cjs/optics/At/api.cjs.map +1 -1
- package/_cjs/optics/At/definition.cjs +2 -9
- package/_cjs/optics/At/definition.cjs.map +1 -1
- package/_cjs/optics/At.cjs +0 -4
- package/_cjs/optics/At.cjs.map +1 -1
- package/_cjs/optics/Fold/definition.cjs +3 -6
- package/_cjs/optics/Fold/definition.cjs.map +1 -1
- package/_cjs/optics/Fold.cjs +0 -2
- package/_cjs/optics/Fold.cjs.map +1 -1
- package/_cjs/optics/Getter/definition.cjs +2 -5
- package/_cjs/optics/Getter/definition.cjs.map +1 -1
- package/_cjs/optics/Getter.cjs +0 -2
- package/_cjs/optics/Getter.cjs.map +1 -1
- package/_cjs/optics/Index/api.cjs +4 -12
- package/_cjs/optics/Index/api.cjs.map +1 -1
- package/_cjs/optics/Index/definition.cjs +2 -4
- package/_cjs/optics/Index/definition.cjs.map +1 -1
- package/_cjs/optics/Index.cjs +0 -4
- package/_cjs/optics/Index.cjs.map +1 -1
- package/_cjs/optics/Iso/api.cjs +9 -12
- package/_cjs/optics/Iso/api.cjs.map +1 -1
- package/_cjs/optics/Iso/definition.cjs +13 -25
- package/_cjs/optics/Iso/definition.cjs.map +1 -1
- package/_cjs/optics/Iso.cjs +0 -4
- package/_cjs/optics/Iso.cjs.map +1 -1
- package/_cjs/optics/Lens/api.cjs +53 -78
- package/_cjs/optics/Lens/api.cjs.map +1 -1
- package/_cjs/optics/Lens/definition.cjs +11 -23
- package/_cjs/optics/Lens/definition.cjs.map +1 -1
- package/_cjs/optics/Lens.cjs +0 -4
- package/_cjs/optics/Lens.cjs.map +1 -1
- package/_cjs/optics/Optional/api/compose.cjs +9 -13
- package/_cjs/optics/Optional/api/compose.cjs.map +1 -1
- package/_cjs/optics/Optional/definition.cjs +11 -27
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Optional.cjs +0 -4
- package/_cjs/optics/Optional.cjs.map +1 -1
- package/_cjs/optics/Prism/api/compose.cjs +9 -14
- package/_cjs/optics/Prism/api/compose.cjs.map +1 -1
- package/_cjs/optics/Prism/api/fromNullable.cjs +2 -8
- package/_cjs/optics/Prism/api/fromNullable.cjs.map +1 -1
- package/_cjs/optics/Prism/api/just.cjs +2 -9
- package/_cjs/optics/Prism/api/just.cjs.map +1 -1
- package/_cjs/optics/Prism/definition.cjs +9 -21
- package/_cjs/optics/Prism/definition.cjs.map +1 -1
- package/_cjs/optics/Prism.cjs +0 -8
- package/_cjs/optics/Prism.cjs.map +1 -1
- package/_cjs/optics/Setter/definition.cjs +8 -17
- package/_cjs/optics/Setter/definition.cjs.map +1 -1
- package/_cjs/optics/Setter.cjs +0 -2
- package/_cjs/optics/Setter.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/compose.cjs +8 -10
- package/_cjs/optics/Traversal/api/compose.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/fromTraversable.cjs +2 -6
- package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
- package/_cjs/optics/Traversal/definition.cjs +12 -28
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal.cjs +0 -6
- 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/Alternative.cjs.map +1 -1
- package/_cjs/typeclass/Applicative.cjs.map +1 -1
- package/_cjs/typeclass/ApplicativeExcept.cjs +5 -18
- package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
- package/_cjs/typeclass/Apply.cjs +15 -47
- package/_cjs/typeclass/Apply.cjs.map +1 -1
- package/_cjs/typeclass/Chain.cjs +4 -13
- package/_cjs/typeclass/Chain.cjs.map +1 -1
- package/_cjs/typeclass/Closure.cjs +2 -4
- package/_cjs/typeclass/Closure.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 -3
- package/_cjs/typeclass/Foldable.cjs.map +1 -1
- package/_cjs/typeclass/FoldableWithIndex.cjs +1 -3
- package/_cjs/typeclass/FoldableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Functor.cjs +0 -2
- package/_cjs/typeclass/Functor.cjs.map +1 -1
- package/_cjs/typeclass/FunctorWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Has.cjs +8 -6
- package/_cjs/typeclass/Has.cjs.map +1 -1
- package/_cjs/typeclass/Monad.cjs.map +1 -1
- package/_cjs/typeclass/MonadExcept.cjs +1 -6
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
- package/_cjs/typeclass/Monoid.cjs +6 -23
- package/_cjs/typeclass/Monoid.cjs.map +1 -1
- package/_cjs/typeclass/Pointed.cjs.map +1 -1
- package/_cjs/typeclass/Semialign.cjs +7 -25
- package/_cjs/typeclass/Semialign.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/api.cjs +6 -14
- package/_cjs/typeclass/Semigroup/api.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/definition.cjs +3 -6
- package/_cjs/typeclass/Semigroup/definition.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/derivations.cjs +7 -18
- package/_cjs/typeclass/Semigroup/derivations.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup.cjs +0 -4
- package/_cjs/typeclass/Semigroup.cjs.map +1 -1
- package/_cjs/typeclass/Semimonoidal.cjs.map +1 -1
- package/_cjs/typeclass/Traversable.cjs +1 -7
- package/_cjs/typeclass/Traversable.cjs.map +1 -1
- package/_cjs/typeclass/TraversableWithIndex.cjs +0 -1
- package/_cjs/typeclass/TraversableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Witherable.cjs +2 -7
- package/_cjs/typeclass/Witherable.cjs.map +1 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs +2 -8
- package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/builtin.cjs +0 -2
- package/_cjs/typeclass/builtin.cjs.map +1 -1
- package/_cjs/typeclass.cjs +95 -162
- package/_cjs/typeclass.cjs.map +1 -1
- package/_cjs/types.cjs +0 -6
- package/_cjs/types.cjs.map +1 -1
- package/_cjs/util/AnsiFormat.cjs +15 -57
- package/_cjs/util/AnsiFormat.cjs.map +1 -1
- package/_cjs/util/PCGRandom.cjs +16 -46
- package/_cjs/util/PCGRandom.cjs.map +1 -1
- package/_cjs/util/assert.cjs +0 -4
- package/_cjs/util/assert.cjs.map +1 -1
- package/_cjs/util/pattern.cjs +0 -4
- package/_cjs/util/pattern.cjs.map +1 -1
- package/_cjs/util/predicates.cjs +0 -32
- package/_cjs/util/predicates.cjs.map +1 -1
- package/_cjs/util/rand/Random.cjs +0 -21
- package/_cjs/util/rand/Random.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformArrayIntDistribution.cjs +0 -5
- package/_cjs/util/rand/distribution/UniformArrayIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformBigIntDistribution.cjs +4 -12
- package/_cjs/util/rand/distribution/UniformBigIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformIntDistribution.cjs +0 -12
- package/_cjs/util/rand/distribution/UniformIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/ArrayInt.cjs +6 -42
- package/_cjs/util/rand/distribution/internals/ArrayInt.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.cjs +6 -10
- package/_cjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/UniformIntDistributionInternal.cjs +8 -14
- package/_cjs/util/rand/distribution/internals/UniformIntDistributionInternal.cjs.map +1 -1
- package/_cjs/util/rand/generator/MersenneTwister.cjs +5 -25
- package/_cjs/util/rand/generator/MersenneTwister.cjs.map +1 -1
- package/_cjs/util/rand/generator/RandomGenerator.cjs +0 -4
- package/_cjs/util/rand/generator/RandomGenerator.cjs.map +1 -1
- package/_cjs/util/rand.cjs +0 -9
- package/_cjs/util/rand.cjs.map +1 -1
- package/_mjs/collection/Iterable/api/traverseConc.mjs +5 -10
- package/_mjs/collection/Iterable/api/traverseConc.mjs.map +1 -1
- package/_mjs/collection/Iterable/api.mjs +466 -551
- package/_mjs/collection/Iterable/api.mjs.map +1 -1
- package/_mjs/collection/Iterable/constructors.mjs +5 -20
- package/_mjs/collection/Iterable/constructors.mjs.map +1 -1
- package/_mjs/collection/Iterable/definition.mjs.map +1 -1
- package/_mjs/collection/Iterable.mjs.map +1 -1
- package/_mjs/collection/compat/Array/api.mjs +17 -21
- package/_mjs/collection/compat/Array/api.mjs.map +1 -1
- package/_mjs/collection/compat/Array/definition.mjs.map +1 -1
- package/_mjs/collection/compat/Array.mjs +0 -1
- package/_mjs/collection/compat/Array.mjs.map +1 -1
- package/_mjs/collection/compat/ArrayLike/api.mjs +3 -9
- package/_mjs/collection/compat/ArrayLike/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api/empty.mjs +0 -1
- package/_mjs/collection/immutable/Conc/api/empty.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs +1 -5
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api/replicate.mjs +0 -1
- package/_mjs/collection/immutable/Conc/api/replicate.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api.mjs +733 -919
- package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/constructors.mjs +0 -5
- package/_mjs/collection/immutable/Conc/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs +74 -242
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs +1 -2
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary/api.mjs +47 -50
- package/_mjs/collection/immutable/Dictionary/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary.mjs +4 -0
- package/_mjs/collection/immutable/Dictionary.mjs.map +1 -0
- package/_mjs/collection/immutable/HashMap/api.mjs +328 -352
- package/_mjs/collection/immutable/HashMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/definition.mjs +17 -28
- package/_mjs/collection/immutable/HashMap/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/internal.mjs +4 -66
- package/_mjs/collection/immutable/HashMap/internal.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/api.mjs +249 -275
- package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/definition.mjs +14 -67
- package/_mjs/collection/immutable/HashSet/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs +5 -4
- package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs +5 -4
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs +5 -4
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs +13 -14
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +826 -942
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs +0 -10
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs +4 -10
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs +50 -59
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray.mjs +2 -3
- package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +303 -355
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs +0 -12
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs +0 -5
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs +2 -12
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +25 -29
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api/foldLeft.mjs +11 -12
- package/_mjs/collection/immutable/List/api/foldLeft.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api/unsafeTail.mjs +0 -2
- package/_mjs/collection/immutable/List/api/unsafeTail.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api.mjs +155 -203
- package/_mjs/collection/immutable/List/api.mjs.map +1 -1
- package/_mjs/collection/immutable/List/constructors.mjs +1 -11
- package/_mjs/collection/immutable/List/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/List/definition.mjs +2 -18
- package/_mjs/collection/immutable/List/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/List.mjs +2 -2
- package/_mjs/collection/immutable/List.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/api.mjs +78 -88
- package/_mjs/collection/immutable/Queue/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/constructors.mjs +0 -2
- package/_mjs/collection/immutable/Queue/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/definition.mjs +3 -9
- package/_mjs/collection/immutable/Queue/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/guards.mjs +2 -3
- package/_mjs/collection/immutable/Queue/guards.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/api.mjs +76 -103
- package/_mjs/collection/immutable/RoseTree/api.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/definition.mjs +4 -8
- package/_mjs/collection/immutable/RoseTree/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/api.mjs +423 -493
- package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/definition.mjs +2 -3
- package/_mjs/collection/immutable/SortedMap/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/internal.mjs +56 -222
- package/_mjs/collection/immutable/SortedMap/internal.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/iterator.mjs +16 -97
- package/_mjs/collection/immutable/SortedMap/iterator.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/node.mjs +0 -1
- package/_mjs/collection/immutable/SortedMap/node.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/api.mjs +682 -756
- package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/definition.mjs +25 -35
- package/_mjs/collection/immutable/Vector/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/internal.mjs +79 -350
- package/_mjs/collection/immutable/Vector/internal.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector.mjs.map +1 -1
- package/_mjs/collection/mutable/HashMap.mjs +9 -79
- package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/mutable/HashSet.mjs +5 -59
- package/_mjs/collection/mutable/HashSet.mjs.map +1 -1
- package/_mjs/collection/mutable/ListBuffer.mjs +2 -28
- package/_mjs/collection/mutable/ListBuffer.mjs.map +1 -1
- package/_mjs/collection/mutable/internal.mjs +0 -4
- package/_mjs/collection/mutable/internal.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakMap.mjs +6 -28
- package/_mjs/collection/weak/IterableWeakMap.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakSet.mjs +6 -26
- package/_mjs/collection/weak/IterableWeakSet.mjs.map +1 -1
- package/_mjs/control/Eval/api/sequenceArray.mjs +0 -1
- package/_mjs/control/Eval/api/sequenceArray.mjs.map +1 -1
- package/_mjs/control/Eval/api.mjs +41 -48
- package/_mjs/control/Eval/api.mjs.map +1 -1
- package/_mjs/control/Eval/constructors.mjs +0 -6
- package/_mjs/control/Eval/constructors.mjs.map +1 -1
- package/_mjs/control/Eval/definition.mjs +6 -15
- package/_mjs/control/Eval/definition.mjs.map +1 -1
- package/_mjs/control/Eval/instance.mjs +7 -9
- package/_mjs/control/Eval/instance.mjs.map +1 -1
- package/_mjs/control/Eval/run.mjs +5 -24
- package/_mjs/control/Eval/run.mjs.map +1 -1
- package/_mjs/control/Eval.mjs.map +1 -1
- package/_mjs/control/LazyValue.mjs +0 -3
- package/_mjs/control/LazyValue.mjs.map +1 -1
- package/_mjs/control/Z/api.mjs +196 -216
- package/_mjs/control/Z/api.mjs.map +1 -1
- package/_mjs/control/Z/definition.mjs +23 -51
- package/_mjs/control/Z/definition.mjs.map +1 -1
- package/_mjs/control/Z/instances.mjs +4 -5
- package/_mjs/control/Z/instances.mjs.map +1 -1
- package/_mjs/control/Z/runtime.mjs +200 -266
- package/_mjs/control/Z/runtime.mjs.map +1 -1
- package/_mjs/control/Z.mjs.map +1 -1
- package/_mjs/data/Branded/definition.mjs +0 -2
- package/_mjs/data/Branded/definition.mjs.map +1 -1
- package/_mjs/data/Branded.mjs +0 -1
- package/_mjs/data/Branded.mjs.map +1 -1
- package/_mjs/data/CaseClass.mjs +13 -32
- package/_mjs/data/CaseClass.mjs.map +1 -1
- package/_mjs/data/Cause/api/fold.mjs +30 -65
- package/_mjs/data/Cause/api/fold.mjs.map +1 -1
- package/_mjs/data/Cause/api/isEmpty.mjs +7 -29
- package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -1
- package/_mjs/data/Cause/api/linearize.mjs +9 -10
- package/_mjs/data/Cause/api/linearize.mjs.map +1 -1
- package/_mjs/data/Cause/api/prettyPrint.mjs +1 -8
- package/_mjs/data/Cause/api/prettyPrint.mjs.map +1 -1
- package/_mjs/data/Cause/api/unified.mjs +14 -44
- package/_mjs/data/Cause/api/unified.mjs.map +1 -1
- package/_mjs/data/Cause/api.mjs +212 -490
- package/_mjs/data/Cause/api.mjs.map +1 -1
- package/_mjs/data/Cause/definition.mjs +63 -262
- package/_mjs/data/Cause/definition.mjs.map +1 -1
- package/_mjs/data/Cause.mjs +2 -2
- package/_mjs/data/Cause.mjs.map +1 -1
- package/_mjs/data/Const/api.mjs +6 -6
- package/_mjs/data/Const/api.mjs.map +1 -1
- package/_mjs/data/Const/definition.mjs +0 -1
- package/_mjs/data/Const/definition.mjs.map +1 -1
- package/_mjs/data/Const/instances.mjs +6 -8
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/Const.mjs.map +1 -1
- package/_mjs/data/Datum/api.mjs +198 -250
- package/_mjs/data/Datum/api.mjs.map +1 -1
- package/_mjs/data/Datum/definition.mjs +10 -35
- package/_mjs/data/Datum/definition.mjs.map +1 -1
- package/_mjs/data/Datum/instances.mjs +0 -5
- package/_mjs/data/Datum/instances.mjs.map +1 -1
- package/_mjs/data/DatumEither/api.mjs +158 -191
- package/_mjs/data/DatumEither/api.mjs.map +1 -1
- package/_mjs/data/DatumEither/definition.mjs.map +1 -1
- package/_mjs/data/DecodeError/definition.mjs +15 -43
- package/_mjs/data/DecodeError/definition.mjs.map +1 -1
- package/_mjs/data/DecodeError.mjs.map +1 -1
- package/_mjs/data/Decoder/api.mjs +400 -53
- package/_mjs/data/Decoder/api.mjs.map +1 -1
- package/_mjs/data/Decoder/definition.mjs +0 -3
- package/_mjs/data/Decoder/definition.mjs.map +1 -1
- package/_mjs/data/Decoder.mjs.map +1 -1
- package/_mjs/data/Duration/api.mjs +20 -21
- package/_mjs/data/Duration/api.mjs.map +1 -1
- package/_mjs/data/Duration/definition.mjs +3 -7
- package/_mjs/data/Duration/definition.mjs.map +1 -1
- package/_mjs/data/Duration.mjs.map +1 -1
- package/_mjs/data/Either/api/align.mjs +7 -2
- package/_mjs/data/Either/api/align.mjs.map +1 -1
- package/_mjs/data/Either/api/alignWith.mjs +7 -12
- package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
- package/_mjs/data/Either/api.mjs +139 -188
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/constructors.mjs +7 -16
- package/_mjs/data/Either/constructors.mjs.map +1 -1
- package/_mjs/data/Either/definition.mjs +4 -15
- package/_mjs/data/Either/definition.mjs.map +1 -1
- package/_mjs/data/Either/destructors.mjs +11 -15
- package/_mjs/data/Either/destructors.mjs.map +1 -1
- package/_mjs/data/Either/instances.mjs +22 -56
- package/_mjs/data/Either/instances.mjs.map +1 -1
- package/_mjs/data/Either.mjs.map +1 -1
- package/_mjs/data/EitherT/api.mjs +8 -17
- package/_mjs/data/EitherT/api.mjs.map +1 -1
- package/_mjs/data/EitherT/definition.mjs.map +1 -1
- package/_mjs/data/Encoder/api.mjs +273 -0
- package/_mjs/data/Encoder/api.mjs.map +1 -0
- package/_mjs/data/Encoder/definition.mjs +13 -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 +47 -50
- package/_mjs/data/Environment/api.mjs.map +1 -1
- package/_mjs/data/Environment/definition.mjs +5 -10
- package/_mjs/data/Environment/definition.mjs.map +1 -1
- package/_mjs/data/Environment.mjs.map +1 -1
- package/_mjs/data/EnvironmentPatch.mjs +35 -68
- package/_mjs/data/EnvironmentPatch.mjs.map +1 -1
- package/_mjs/{typeclass → data}/Eq/definition.mjs +1 -2
- package/_mjs/data/Eq/definition.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Eq/derivations.mjs +9 -15
- package/_mjs/data/Eq/derivations.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Eq.mjs +0 -0
- package/_mjs/data/Eq.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Equatable/api.mjs +3 -6
- package/_mjs/data/Equatable/api.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Equatable/definition.mjs +0 -1
- package/_mjs/data/Equatable/definition.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Equatable/fast-equals.mjs +1 -63
- package/_mjs/data/Equatable/fast-equals.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Equatable.mjs +0 -0
- package/_mjs/data/Equatable.mjs.map +1 -0
- package/_mjs/data/ExecutionStrategy.mjs +17 -30
- package/_mjs/data/ExecutionStrategy.mjs.map +1 -1
- package/_mjs/data/Exit/api.mjs +124 -135
- package/_mjs/data/Exit/api.mjs.map +1 -1
- package/_mjs/data/Exit/constructors.mjs +3 -14
- package/_mjs/data/Exit/constructors.mjs.map +1 -1
- package/_mjs/data/Exit/definition.mjs +8 -33
- package/_mjs/data/Exit/definition.mjs.map +1 -1
- package/_mjs/data/Exit.mjs.map +1 -1
- package/_mjs/data/FiberId/api.mjs +23 -31
- package/_mjs/data/FiberId/api.mjs.map +1 -1
- package/_mjs/data/FiberId/constructors.mjs +3 -9
- package/_mjs/data/FiberId/constructors.mjs.map +1 -1
- package/_mjs/data/FiberId/definition.mjs +7 -26
- package/_mjs/data/FiberId/definition.mjs.map +1 -1
- package/_mjs/data/FiberId.mjs.map +1 -1
- package/_mjs/data/Guard/api.mjs +369 -0
- package/_mjs/data/Guard/api.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Guard/definition.mjs +0 -3
- package/_mjs/data/Guard/definition.mjs.map +1 -0
- package/_mjs/data/Guard.mjs +4 -0
- package/_mjs/data/Guard.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Hash.mjs +0 -1
- package/_mjs/data/Hash.mjs.map +1 -0
- package/_mjs/data/HashEq.mjs +30 -0
- package/_mjs/data/HashEq.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Hashable/definition.mjs +0 -1
- package/_mjs/data/Hashable/definition.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Hashable/hash.mjs +4 -59
- package/_mjs/data/Hashable/hash.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Hashable.mjs +0 -0
- package/_mjs/data/Hashable.mjs.map +1 -0
- package/_mjs/data/Identity/api.mjs +21 -20
- package/_mjs/data/Identity/api.mjs.map +1 -1
- package/_mjs/data/Identity/definition.mjs.map +1 -1
- package/_mjs/data/Identity/instances.mjs +8 -9
- package/_mjs/data/Identity/instances.mjs.map +1 -1
- package/_mjs/data/Identity.mjs.map +1 -1
- package/_mjs/data/Interval.mjs +41 -47
- package/_mjs/data/Interval.mjs.map +1 -1
- package/_mjs/data/Intervals.mjs +45 -60
- package/_mjs/data/Intervals.mjs.map +1 -1
- package/_mjs/data/Maybe/api.mjs +107 -128
- package/_mjs/data/Maybe/api.mjs.map +1 -1
- package/_mjs/data/Maybe/constructors.mjs +1 -18
- package/_mjs/data/Maybe/constructors.mjs.map +1 -1
- package/_mjs/data/Maybe/definition.mjs +10 -36
- package/_mjs/data/Maybe/definition.mjs.map +1 -1
- package/_mjs/data/Maybe/destructors.mjs +6 -6
- package/_mjs/data/Maybe/destructors.mjs.map +1 -1
- package/_mjs/data/Maybe/instances.mjs +40 -21
- package/_mjs/data/Maybe/instances.mjs.map +1 -1
- package/_mjs/data/Maybe.mjs.map +1 -1
- package/_mjs/data/Newtype.mjs +0 -1
- package/_mjs/data/Newtype.mjs.map +1 -1
- package/_mjs/data/Ord/api/contramap.mjs +12 -0
- package/_mjs/data/Ord/api/contramap.mjs.map +1 -0
- package/_mjs/data/Ord/api/max.mjs +8 -0
- package/_mjs/data/Ord/api/max.mjs.map +1 -0
- package/_mjs/data/Ord/api/min.mjs +8 -0
- package/_mjs/data/Ord/api/min.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Ord/api.mjs +0 -0
- package/_mjs/data/Ord/api.mjs.map +1 -0
- package/_mjs/data/Ord/definition.mjs +12 -0
- package/_mjs/data/Ord/definition.mjs.map +1 -0
- package/_mjs/data/Ord/instances.mjs +34 -0
- package/_mjs/data/Ord/instances.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Ord.mjs +0 -0
- package/_mjs/data/Ord.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Ordering.mjs +0 -6
- package/_mjs/data/Ordering.mjs.map +1 -0
- package/_mjs/data/Predicate/api.mjs +10 -11
- package/_mjs/data/Predicate/api.mjs.map +1 -1
- package/_mjs/data/Predicate.mjs.map +1 -1
- package/_mjs/data/Refinement/api.mjs +15 -12
- package/_mjs/data/Refinement/api.mjs.map +1 -1
- package/_mjs/data/Refinement.mjs.map +1 -1
- package/_mjs/{typeclass → data}/Showable/definition.mjs +2 -3
- package/_mjs/data/Showable/definition.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Showable/show.mjs +119 -245
- package/_mjs/data/Showable/show.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Showable/styles.mjs +0 -0
- package/_mjs/data/Showable/styles.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Showable/util.mjs +53 -93
- package/_mjs/data/Showable/util.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Showable.mjs +0 -0
- package/_mjs/data/Showable.mjs.map +1 -0
- package/_mjs/data/Struct/api.mjs +59 -63
- package/_mjs/data/Struct/api.mjs.map +1 -1
- package/_mjs/data/Struct/definition.mjs.map +1 -1
- package/_mjs/data/Tag/constructors.mjs +1 -3
- package/_mjs/data/Tag/constructors.mjs.map +1 -1
- package/_mjs/data/Tag/definition.mjs +3 -11
- package/_mjs/data/Tag/definition.mjs.map +1 -1
- package/_mjs/data/Tag.mjs.map +1 -1
- package/_mjs/data/These/api.mjs +118 -209
- package/_mjs/data/These/api.mjs.map +1 -1
- package/_mjs/data/These/constructors.mjs +1 -7
- package/_mjs/data/These/constructors.mjs.map +1 -1
- package/_mjs/data/These/definition.mjs +4 -16
- package/_mjs/data/These/definition.mjs.map +1 -1
- package/_mjs/data/These/destructors.mjs +23 -41
- package/_mjs/data/These/destructors.mjs.map +1 -1
- package/_mjs/data/These/instances.mjs +2 -7
- package/_mjs/data/These/instances.mjs.map +1 -1
- package/_mjs/data/These.mjs.map +1 -1
- package/_mjs/data/Trace/api.mjs +6 -6
- package/_mjs/data/Trace/api.mjs.map +1 -1
- package/_mjs/data/Trace/constructors.mjs +0 -2
- package/_mjs/data/Trace/constructors.mjs.map +1 -1
- package/_mjs/data/Trace/definition.mjs +0 -1
- package/_mjs/data/Trace/definition.mjs.map +1 -1
- package/_mjs/data/Trace.mjs.map +1 -1
- package/_mjs/data/TraceElement/definition.mjs +0 -9
- package/_mjs/data/TraceElement/definition.mjs.map +1 -1
- package/_mjs/data/TraceElement.mjs.map +1 -1
- package/_mjs/data/Zipped.mjs +2 -7
- package/_mjs/data/Zipped.mjs.map +1 -1
- package/_mjs/data/bigint/instances.mjs +2 -2
- package/_mjs/data/bigint/instances.mjs.map +1 -1
- package/_mjs/data/bigint.mjs.map +1 -1
- package/_mjs/data/boolean/instances.mjs +2 -2
- package/_mjs/data/boolean/instances.mjs.map +1 -1
- package/_mjs/data/boolean.mjs.map +1 -1
- package/_mjs/data/exceptions/ArrayIndexOutOfBoundsError.mjs +0 -1
- package/_mjs/data/exceptions/ArrayIndexOutOfBoundsError.mjs.map +1 -1
- package/_mjs/data/exceptions/IllegalArgumentError.mjs +0 -1
- package/_mjs/data/exceptions/IllegalArgumentError.mjs.map +1 -1
- package/_mjs/data/exceptions/IllegalStateError.mjs +0 -1
- package/_mjs/data/exceptions/IllegalStateError.mjs.map +1 -1
- package/_mjs/data/exceptions/IndexOutOfBoundsError.mjs +0 -1
- package/_mjs/data/exceptions/IndexOutOfBoundsError.mjs.map +1 -1
- package/_mjs/data/exceptions/InterruptedException.mjs +0 -1
- package/_mjs/data/exceptions/InterruptedException.mjs.map +1 -1
- package/_mjs/data/exceptions/InvalidCapacityError.mjs +0 -1
- package/_mjs/data/exceptions/InvalidCapacityError.mjs.map +1 -1
- package/_mjs/data/exceptions/NoSuchElementError.mjs +0 -1
- package/_mjs/data/exceptions/NoSuchElementError.mjs.map +1 -1
- package/_mjs/data/exceptions.mjs.map +1 -1
- package/_mjs/data/function/api.mjs +5 -8
- package/_mjs/data/function/api.mjs.map +1 -1
- package/_mjs/data/function/pipe.mjs +7 -20
- package/_mjs/data/function/pipe.mjs.map +1 -1
- package/_mjs/data/function.mjs.map +1 -1
- package/_mjs/data/number/api.mjs.map +1 -1
- package/_mjs/data/number/instances.mjs +10 -13
- package/_mjs/data/number/instances.mjs.map +1 -1
- package/_mjs/data/number.mjs.map +1 -1
- package/_mjs/data/object/instances.mjs +1 -9
- package/_mjs/data/object/instances.mjs.map +1 -1
- package/_mjs/data/object.mjs.map +1 -1
- package/_mjs/data/string/api.mjs +45 -83
- package/_mjs/data/string/api.mjs.map +1 -1
- package/_mjs/data/string/instances.mjs +11 -15
- package/_mjs/data/string/instances.mjs.map +1 -1
- package/_mjs/data/string.mjs.map +1 -1
- package/_mjs/global/api.mjs +4 -2
- package/_mjs/global/api.mjs.map +1 -1
- package/_mjs/internal/AtomicBoolean.mjs +0 -1
- package/_mjs/internal/AtomicBoolean.mjs.map +1 -1
- package/_mjs/internal/AtomicNumber.mjs +0 -4
- package/_mjs/internal/AtomicNumber.mjs.map +1 -1
- package/_mjs/internal/AtomicReference.mjs +0 -6
- package/_mjs/internal/AtomicReference.mjs.map +1 -1
- package/_mjs/internal/Stack.mjs +1 -10
- package/_mjs/internal/Stack.mjs.map +1 -1
- package/_mjs/json/EitherJson.mjs +1 -2
- package/_mjs/json/EitherJson.mjs.map +1 -1
- package/_mjs/json/MaybeJson.mjs +1 -2
- package/_mjs/json/MaybeJson.mjs.map +1 -1
- package/_mjs/json/TheseJson.mjs +1 -2
- package/_mjs/json/TheseJson.mjs.map +1 -1
- package/_mjs/optics/At/api.mjs +1 -2
- package/_mjs/optics/At/api.mjs.map +1 -1
- package/_mjs/optics/At/definition.mjs +2 -3
- package/_mjs/optics/At/definition.mjs.map +1 -1
- package/_mjs/optics/At.mjs.map +1 -1
- package/_mjs/optics/Fold/definition.mjs +2 -4
- package/_mjs/optics/Fold/definition.mjs.map +1 -1
- package/_mjs/optics/Fold.mjs.map +1 -1
- package/_mjs/optics/Getter/definition.mjs +1 -3
- package/_mjs/optics/Getter/definition.mjs.map +1 -1
- package/_mjs/optics/Getter.mjs.map +1 -1
- package/_mjs/optics/Index/api.mjs +4 -6
- package/_mjs/optics/Index/api.mjs.map +1 -1
- package/_mjs/optics/Index/definition.mjs +1 -2
- package/_mjs/optics/Index/definition.mjs.map +1 -1
- package/_mjs/optics/Index.mjs.map +1 -1
- package/_mjs/optics/Iso/api.mjs +8 -7
- package/_mjs/optics/Iso/api.mjs.map +1 -1
- package/_mjs/optics/Iso/definition.mjs +10 -12
- package/_mjs/optics/Iso/definition.mjs.map +1 -1
- package/_mjs/optics/Iso.mjs.map +1 -1
- package/_mjs/optics/Lens/api.mjs +48 -60
- package/_mjs/optics/Lens/api.mjs.map +1 -1
- package/_mjs/optics/Lens/definition.mjs +8 -10
- package/_mjs/optics/Lens/definition.mjs.map +1 -1
- package/_mjs/optics/Lens.mjs.map +1 -1
- package/_mjs/optics/Optional/api/compose.mjs +8 -7
- package/_mjs/optics/Optional/api/compose.mjs.map +1 -1
- package/_mjs/optics/Optional/definition.mjs +8 -14
- package/_mjs/optics/Optional/definition.mjs.map +1 -1
- package/_mjs/optics/Optional.mjs +2 -2
- package/_mjs/optics/Optional.mjs.map +1 -1
- package/_mjs/optics/Prism/api/compose.mjs +8 -7
- package/_mjs/optics/Prism/api/compose.mjs.map +1 -1
- package/_mjs/optics/Prism/api/fromNullable.mjs +2 -3
- package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -1
- package/_mjs/optics/Prism/api/just.mjs +2 -3
- package/_mjs/optics/Prism/api/just.mjs.map +1 -1
- package/_mjs/optics/Prism/definition.mjs +6 -9
- package/_mjs/optics/Prism/definition.mjs.map +1 -1
- package/_mjs/optics/Prism.mjs +2 -2
- package/_mjs/optics/Prism.mjs.map +1 -1
- package/_mjs/optics/Setter/definition.mjs +5 -13
- package/_mjs/optics/Setter/definition.mjs.map +1 -1
- package/_mjs/optics/Setter.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs +7 -6
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +2 -3
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
- package/_mjs/optics/Traversal/definition.mjs +9 -12
- package/_mjs/optics/Traversal/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal.mjs +2 -2
- 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/Alternative.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 +14 -35
- package/_mjs/typeclass/Apply.mjs.map +1 -1
- package/_mjs/typeclass/Chain.mjs +5 -7
- package/_mjs/typeclass/Chain.mjs.map +1 -1
- package/_mjs/typeclass/Closure.mjs +1 -2
- package/_mjs/typeclass/Closure.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 -2
- package/_mjs/typeclass/Foldable.mjs.map +1 -1
- package/_mjs/typeclass/FoldableWithIndex.mjs +1 -2
- package/_mjs/typeclass/FoldableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Functor.mjs +0 -1
- package/_mjs/typeclass/Functor.mjs.map +1 -1
- package/_mjs/typeclass/FunctorWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Has.mjs +8 -5
- package/_mjs/typeclass/Has.mjs.map +1 -1
- package/_mjs/typeclass/Monad.mjs.map +1 -1
- package/_mjs/typeclass/MonadExcept.mjs +1 -1
- package/_mjs/typeclass/MonadExcept.mjs.map +1 -1
- package/_mjs/typeclass/Monoid.mjs +6 -15
- package/_mjs/typeclass/Monoid.mjs.map +1 -1
- package/_mjs/typeclass/Pointed.mjs.map +1 -1
- package/_mjs/typeclass/Semialign.mjs +7 -14
- package/_mjs/typeclass/Semialign.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/api.mjs +6 -8
- package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/definition.mjs +2 -3
- package/_mjs/typeclass/Semigroup/definition.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/derivations.mjs +7 -14
- package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup.mjs.map +1 -1
- package/_mjs/typeclass/Semimonoidal.mjs.map +1 -1
- package/_mjs/typeclass/Traversable.mjs +1 -3
- package/_mjs/typeclass/Traversable.mjs.map +1 -1
- package/_mjs/typeclass/TraversableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Witherable.mjs +2 -2
- 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/typeclass/builtin.mjs.map +1 -1
- package/_mjs/typeclass.mjs +9 -8
- package/_mjs/typeclass.mjs.map +1 -1
- package/_mjs/types.mjs.map +1 -1
- package/_mjs/util/AnsiFormat.mjs +15 -42
- package/_mjs/util/AnsiFormat.mjs.map +1 -1
- package/_mjs/util/PCGRandom.mjs +16 -43
- package/_mjs/util/PCGRandom.mjs.map +1 -1
- package/_mjs/util/assert.mjs +0 -1
- package/_mjs/util/assert.mjs.map +1 -1
- package/_mjs/util/pattern.mjs.map +1 -1
- package/_mjs/util/predicates.mjs +0 -1
- package/_mjs/util/predicates.mjs.map +1 -1
- package/_mjs/util/rand/Random.mjs +0 -17
- package/_mjs/util/rand/Random.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformArrayIntDistribution.mjs +0 -4
- package/_mjs/util/rand/distribution/UniformArrayIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformBigIntDistribution.mjs +4 -12
- package/_mjs/util/rand/distribution/UniformBigIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformIntDistribution.mjs +0 -9
- package/_mjs/util/rand/distribution/UniformIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/ArrayInt.mjs +6 -36
- package/_mjs/util/rand/distribution/internals/ArrayInt.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.mjs +6 -9
- package/_mjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/UniformIntDistributionInternal.mjs +8 -13
- package/_mjs/util/rand/distribution/internals/UniformIntDistributionInternal.mjs.map +1 -1
- package/_mjs/util/rand/generator/MersenneTwister.mjs +5 -23
- package/_mjs/util/rand/generator/MersenneTwister.mjs.map +1 -1
- package/_mjs/util/rand/generator/RandomGenerator.mjs +0 -4
- 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 +458 -414
- package/_src/collection/Iterable/constructors.ts +3 -1
- package/_src/collection/compat/Array/api.ts +17 -14
- package/_src/collection/compat/Array.ts +0 -1
- package/_src/collection/compat/ArrayLike/api.ts +2 -2
- package/_src/collection/compat.ts +0 -1
- package/_src/collection/immutable/Conc/api.ts +716 -607
- package/_src/collection/immutable/Conc/definition.ts +62 -70
- package/_src/collection/immutable/Conc.ts +0 -1
- package/_src/collection/immutable/Dictionary/api.ts +44 -32
- package/_src/collection/immutable/Dictionary.ts +4 -0
- package/_src/collection/immutable/HashMap/api.ts +371 -263
- package/_src/collection/immutable/HashMap/definition.ts +17 -3
- package/_src/collection/immutable/HashMap/internal.ts +5 -9
- package/_src/collection/immutable/HashSet/api.ts +237 -190
- package/_src/collection/immutable/HashSet/definition.ts +23 -9
- 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 +873 -723
- 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/instances.ts +22 -23
- package/_src/collection/immutable/ImmutableNonEmptyArray.ts +0 -1
- package/_src/collection/immutable/List/api/foldLeft.ts +11 -9
- package/_src/collection/immutable/List/api.ts +156 -132
- package/_src/collection/immutable/List/constructors.ts +1 -1
- package/_src/collection/immutable/List.ts +0 -1
- package/_src/collection/immutable/Queue/api.ts +77 -61
- package/_src/collection/immutable/Queue/definition.ts +0 -1
- package/_src/collection/immutable/Queue/guards.ts +2 -2
- 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 +412 -381
- package/_src/collection/immutable/SortedMap/definition.ts +5 -0
- package/_src/collection/immutable/Vector/api.ts +640 -514
- package/_src/collection/immutable/Vector/definition.ts +11 -12
- package/_src/collection/immutable/Vector/internal.ts +37 -38
- package/_src/collection/immutable.ts +1 -0
- package/_src/collection/mutable/HashMap.ts +8 -11
- package/_src/collection/mutable/HashSet.ts +7 -8
- 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.ts +0 -1
- package/_src/data/CaseClass.ts +4 -1
- package/_src/data/Cause/api/fold.ts +13 -14
- package/_src/data/Cause/api/linearize.ts +4 -4
- package/_src/data/Cause/api/unified.ts +1 -1
- package/_src/data/Cause/api.ts +126 -108
- package/_src/data/Cause/definition.ts +2 -2
- 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 +228 -198
- package/_src/data/Datum/definition.ts +2 -5
- package/_src/data/DatumEither/api.ts +208 -193
- package/_src/data/DecodeError/definition.ts +4 -2
- package/_src/data/Decoder/api.ts +498 -11
- package/_src/data/Duration/api.ts +24 -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 +27 -23
- package/_src/data/EitherT/api.ts +43 -49
- package/_src/data/Encoder/api.ts +375 -0
- package/_src/data/Encoder/definition.ts +16 -0
- package/_src/data/Encoder.ts +4 -0
- package/_src/data/Environment/api.ts +53 -45
- package/_src/data/Environment/definition.ts +1 -4
- package/_src/data/EnvironmentPatch.ts +10 -9
- package/_src/{typeclass → data}/Eq/definition.ts +2 -2
- package/_src/{typeclass → data}/Eq/derivations.ts +6 -6
- package/_src/{typeclass → data}/Eq.ts +0 -0
- package/_src/{typeclass → data}/Equatable/api.ts +2 -2
- package/_src/{typeclass → data}/Equatable/definition.ts +0 -0
- package/_src/{typeclass → data}/Equatable/fast-equals.ts +8 -61
- package/_src/{typeclass → data}/Equatable.ts +0 -0
- package/_src/data/ExecutionStrategy.ts +14 -24
- package/_src/data/Exit/api.ts +106 -75
- package/_src/data/Exit/constructors.ts +2 -2
- package/_src/data/FiberId/api.ts +21 -19
- package/_src/data/FiberId/constructors.ts +4 -5
- package/_src/data/FiberId/definition.ts +4 -1
- package/_src/data/Guard/api.ts +457 -0
- package/_src/{typeclass → data}/Guard/definition.ts +3 -1
- package/_src/data/Guard.ts +4 -0
- package/_src/{typeclass → data}/Hash.ts +0 -0
- package/_src/{typeclass → data}/HashEq.ts +4 -6
- package/_src/{typeclass → data}/Hashable/definition.ts +0 -0
- package/_src/{typeclass → data}/Hashable/hash.ts +1 -2
- package/_src/{typeclass → data}/Hashable.ts +0 -0
- package/_src/data/Identity/api.ts +20 -12
- package/_src/data/Identity/instances.ts +4 -7
- package/_src/data/Interval.ts +41 -31
- 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 +31 -21
- package/_src/data/Ord/api/contramap.ts +11 -0
- package/_src/data/Ord/api/max.ts +7 -0
- package/_src/data/Ord/api/min.ts +7 -0
- package/_src/{typeclass → data}/Ord/api.ts +0 -0
- package/_src/{typeclass → data}/Ord/definition.ts +2 -6
- package/_src/{typeclass → data}/Ord/instances.ts +6 -8
- package/_src/{typeclass → data}/Ord.ts +0 -0
- package/_src/{typeclass → data}/Ordering.ts +2 -0
- package/_src/data/Predicate/api.ts +14 -8
- package/_src/data/Refinement/api.ts +19 -13
- package/_src/{typeclass → data}/Showable/definition.ts +4 -4
- package/_src/{typeclass → data}/Showable/show.ts +23 -38
- package/_src/{typeclass → data}/Showable/styles.ts +0 -8
- package/_src/{typeclass → data}/Showable/util.ts +22 -57
- package/_src/{typeclass → data}/Showable.ts +0 -0
- 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/bigint/instances.ts +1 -0
- package/_src/data/boolean/instances.ts +1 -0
- package/_src/data/function/api.ts +6 -7
- package/_src/data/function/pipe.ts +9 -1
- package/_src/data/number/instances.ts +5 -5
- package/_src/data/object/instances.ts +0 -11
- package/_src/data/string/api.ts +40 -62
- package/_src/data/string/instances.ts +4 -4
- package/_src/data.ts +10 -0
- package/_src/global/api.ts +7 -12
- package/_src/global.ts +28 -12
- 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 +34 -36
- package/_src/typeclass/Chain.ts +9 -12
- package/_src/typeclass/Closure.ts +2 -2
- 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/Has.ts +6 -4
- package/_src/typeclass/MonadExcept.ts +1 -1
- package/_src/typeclass/Monoid.ts +2 -2
- package/_src/typeclass/Semialign.ts +43 -32
- package/_src/typeclass/Semigroup/api.ts +0 -2
- package/_src/typeclass/Semigroup/definition.ts +2 -2
- package/_src/typeclass/Semigroup/derivations.ts +5 -5
- package/_src/typeclass/Semimonoidal.ts +3 -2
- 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/typeclass.ts +9 -8
- 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 +71 -66
- package/collection/Iterable/constructors.d.ts +1 -1
- package/collection/compat/Array/api.d.ts +6 -6
- package/collection/compat/Array.d.ts +0 -1
- package/collection/compat/ArrayLike/api.d.ts +2 -2
- package/collection/compat.d.ts +0 -1
- package/collection/immutable/Conc/api.d.ts +108 -105
- package/collection/immutable/Conc/definition.d.ts +4 -4
- package/collection/immutable/Conc.d.ts +0 -1
- package/collection/immutable/Dictionary/api.d.ts +12 -12
- package/collection/immutable/Dictionary.d.ts +2 -0
- package/collection/immutable/HashMap/api.d.ts +91 -85
- package/collection/immutable/HashMap/definition.d.ts +13 -4
- package/collection/immutable/HashSet/api.d.ts +66 -51
- package/collection/immutable/HashSet/definition.d.ts +15 -6
- 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/definition.d.ts +2 -2
- package/collection/immutable/ImmutableArray.d.ts +0 -1
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +64 -63
- package/collection/immutable/ImmutableNonEmptyArray.d.ts +0 -1
- package/collection/immutable/List/api/foldLeft.d.ts +2 -2
- package/collection/immutable/List/api.d.ts +28 -26
- package/collection/immutable/List/constructors.d.ts +1 -1
- package/collection/immutable/Queue/api.d.ts +23 -23
- package/collection/immutable/Queue/guards.d.ts +1 -1
- package/collection/immutable/RoseTree/api.d.ts +14 -14
- package/collection/immutable/RoseTree/definition.d.ts +2 -2
- package/collection/immutable/SortedMap/api.d.ts +47 -46
- package/collection/immutable/SortedMap/definition.d.ts +3 -0
- package/collection/immutable/Vector/api.d.ts +136 -132
- package/collection/immutable/Vector/definition.d.ts +4 -4
- package/collection/immutable/Vector/internal.d.ts +2 -2
- package/collection/immutable.d.ts +1 -0
- package/collection/mutable/HashMap.d.ts +2 -2
- package/collection/mutable/HashSet.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.d.ts +0 -1
- package/data/CaseClass.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 +44 -43
- package/data/Datum/definition.d.ts +2 -2
- package/data/DatumEither/api.d.ts +48 -46
- package/data/DecodeError/definition.d.ts +2 -1
- package/data/Decoder/api.d.ts +154 -6
- package/data/Duration/api.d.ts +12 -7
- package/data/Duration/definition.d.ts +2 -2
- 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/Either/instances.d.ts +1 -1
- package/data/EitherT/api.d.ts +6 -6
- package/data/Encoder/api.d.ts +214 -0
- package/data/Encoder/definition.d.ts +16 -0
- package/data/Encoder.d.ts +2 -0
- package/data/Environment/api.d.ts +14 -14
- package/data/Environment/definition.d.ts +2 -2
- package/data/EnvironmentPatch.d.ts +4 -4
- package/{typeclass → data}/Eq/definition.d.ts +3 -3
- package/{typeclass → data}/Eq/derivations.d.ts +3 -3
- package/{typeclass → data}/Eq.d.ts +0 -0
- package/{typeclass → data}/Equatable/api.d.ts +2 -2
- package/{typeclass → data}/Equatable/definition.d.ts +1 -1
- package/{typeclass → data}/Equatable/fast-equals.d.ts +0 -0
- package/{typeclass → data}/Equatable.d.ts +0 -0
- package/data/ExecutionStrategy.d.ts +1 -6
- package/data/Exit/api.d.ts +34 -34
- package/data/Exit/constructors.d.ts +2 -2
- package/data/Exit/definition.d.ts +1 -1
- package/data/FiberId/api.d.ts +2 -2
- package/data/FiberId/constructors.d.ts +1 -2
- package/data/FiberId/definition.d.ts +7 -5
- package/data/Guard/api.d.ts +242 -0
- package/{typeclass → data}/Guard/definition.d.ts +4 -2
- package/{typeclass → data}/Guard.d.ts +0 -0
- package/{typeclass → data}/Hash.d.ts +1 -1
- package/{typeclass → data}/HashEq.d.ts +6 -7
- package/{typeclass → data}/Hashable/definition.d.ts +1 -1
- package/{typeclass → data}/Hashable/hash.d.ts +11 -11
- package/{typeclass → data}/Hashable.d.ts +0 -0
- package/data/Identity/api.d.ts +8 -8
- package/data/Interval.d.ts +13 -12
- 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 +9 -5
- package/data/Maybe/destructors.d.ts +2 -2
- package/data/Maybe/instances.d.ts +7 -1
- package/data/Ord/api/contramap.d.ts +6 -0
- package/data/Ord/api/max.d.ts +7 -0
- package/data/Ord/api/min.d.ts +7 -0
- package/{typeclass → data}/Ord/api.d.ts +0 -0
- package/data/Ord/definition.d.ts +19 -0
- package/{typeclass → data}/Ord/instances.d.ts +3 -3
- package/{typeclass → data}/Ord.d.ts +0 -0
- package/{typeclass → data}/Ordering.d.ts +5 -5
- package/data/Predicate/api.d.ts +5 -5
- package/data/Refinement/api.d.ts +9 -9
- package/data/Showable/definition.d.ts +17 -0
- package/{typeclass → data}/Showable/show.d.ts +1 -1
- package/{typeclass → data}/Showable/styles.d.ts +0 -0
- package/{typeclass → data}/Showable/util.d.ts +0 -0
- package/{typeclass → data}/Showable.d.ts +0 -0
- package/data/Struct/api.d.ts +13 -23
- package/data/Tag/constructors.d.ts +1 -2
- package/data/Tag/definition.d.ts +2 -3
- package/data/These/api.d.ts +18 -22
- package/data/These/destructors.d.ts +4 -4
- package/data/These/instances.d.ts +1 -1
- package/data/Trace/api.d.ts +2 -2
- package/data/bigint/instances.d.ts +1 -0
- package/data/boolean/instances.d.ts +1 -0
- package/data/function/api.d.ts +3 -3
- package/data/function/pipe.d.ts +7 -1
- package/data/number/instances.d.ts +1 -1
- package/data/object/instances.d.ts +0 -6
- package/data/string/api.d.ts +9 -49
- package/data.d.ts +10 -0
- package/global/api.d.ts +3 -3
- package/global.d.ts +28 -12
- 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 +2 -2
- package/typeclass/Alt.d.ts +1 -1
- package/typeclass/ApplicativeExcept.d.ts +2 -6
- package/typeclass/Apply.d.ts +7 -7
- package/typeclass/Chain.d.ts +4 -4
- package/typeclass/Closure.d.ts +2 -2
- 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/Has.d.ts +3 -3
- package/typeclass/Semialign.d.ts +14 -14
- package/typeclass/Semigroup/api.d.ts +1 -1
- package/typeclass/Semigroup/definition.d.ts +2 -2
- 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/typeclass.d.ts +8 -8
- package/types/extractions.d.ts +10 -6
- package/util/assert.d.ts +1 -1
- package/_cjs/collection/compat/Array/derivations.cjs +0 -96
- package/_cjs/collection/compat/Array/derivations.cjs.map +0 -1
- package/_cjs/collection/compat/Record/instances.cjs +0 -128
- package/_cjs/collection/compat/Record/instances.cjs.map +0 -1
- package/_cjs/collection/compat/Record.cjs +0 -19
- package/_cjs/collection/compat/Record.cjs.map +0 -1
- package/_cjs/collection/immutable/Conc/derivations.cjs +0 -45
- package/_cjs/collection/immutable/Conc/derivations.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs +0 -41
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs +0 -62
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs.map +0 -1
- package/_cjs/data/Branded/derivations.cjs +0 -58
- package/_cjs/data/Branded/derivations.cjs.map +0 -1
- package/_cjs/typeclass/Eq/definition.cjs.map +0 -1
- package/_cjs/typeclass/Eq/derivations.cjs.map +0 -1
- package/_cjs/typeclass/Eq.cjs.map +0 -1
- package/_cjs/typeclass/Equatable/api.cjs.map +0 -1
- package/_cjs/typeclass/Equatable/definition.cjs.map +0 -1
- package/_cjs/typeclass/Equatable/fast-equals.cjs.map +0 -1
- package/_cjs/typeclass/Equatable.cjs.map +0 -1
- package/_cjs/typeclass/Guard/api.cjs +0 -40
- package/_cjs/typeclass/Guard/api.cjs.map +0 -1
- package/_cjs/typeclass/Guard/definition.cjs.map +0 -1
- package/_cjs/typeclass/Guard/derivations.cjs +0 -85
- package/_cjs/typeclass/Guard/derivations.cjs.map +0 -1
- package/_cjs/typeclass/Guard.cjs.map +0 -1
- package/_cjs/typeclass/Hash.cjs.map +0 -1
- package/_cjs/typeclass/HashEq.cjs.map +0 -1
- package/_cjs/typeclass/Hashable/definition.cjs.map +0 -1
- package/_cjs/typeclass/Hashable/hash.cjs.map +0 -1
- package/_cjs/typeclass/Hashable.cjs.map +0 -1
- package/_cjs/typeclass/Ord/api/contramap.cjs +0 -17
- package/_cjs/typeclass/Ord/api/contramap.cjs.map +0 -1
- package/_cjs/typeclass/Ord/api/max.cjs.map +0 -1
- package/_cjs/typeclass/Ord/api/min.cjs.map +0 -1
- package/_cjs/typeclass/Ord/api.cjs.map +0 -1
- package/_cjs/typeclass/Ord/definition.cjs.map +0 -1
- package/_cjs/typeclass/Ord/instances.cjs.map +0 -1
- package/_cjs/typeclass/Ord.cjs.map +0 -1
- package/_cjs/typeclass/Ordering.cjs.map +0 -1
- package/_cjs/typeclass/Showable/definition.cjs.map +0 -1
- package/_cjs/typeclass/Showable/show.cjs.map +0 -1
- package/_cjs/typeclass/Showable/styles.cjs.map +0 -1
- package/_cjs/typeclass/Showable/util.cjs.map +0 -1
- package/_cjs/typeclass/Showable.cjs.map +0 -1
- package/_mjs/collection/compat/Array/derivations.mjs +0 -70
- package/_mjs/collection/compat/Array/derivations.mjs.map +0 -1
- package/_mjs/collection/compat/Record/instances.mjs +0 -105
- package/_mjs/collection/compat/Record/instances.mjs.map +0 -1
- package/_mjs/collection/compat/Record.mjs +0 -3
- package/_mjs/collection/compat/Record.mjs.map +0 -1
- package/_mjs/collection/immutable/Conc/derivations.mjs +0 -27
- package/_mjs/collection/immutable/Conc/derivations.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs +0 -25
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs +0 -39
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs.map +0 -1
- package/_mjs/data/Branded/derivations.mjs +0 -40
- package/_mjs/data/Branded/derivations.mjs.map +0 -1
- package/_mjs/typeclass/Eq/definition.mjs.map +0 -1
- package/_mjs/typeclass/Eq/derivations.mjs.map +0 -1
- package/_mjs/typeclass/Eq.mjs.map +0 -1
- package/_mjs/typeclass/Equatable/api.mjs.map +0 -1
- package/_mjs/typeclass/Equatable/definition.mjs.map +0 -1
- package/_mjs/typeclass/Equatable/fast-equals.mjs.map +0 -1
- package/_mjs/typeclass/Equatable.mjs.map +0 -1
- package/_mjs/typeclass/Guard/api.mjs +0 -24
- package/_mjs/typeclass/Guard/api.mjs.map +0 -1
- package/_mjs/typeclass/Guard/definition.mjs.map +0 -1
- package/_mjs/typeclass/Guard/derivations.mjs +0 -67
- package/_mjs/typeclass/Guard/derivations.mjs.map +0 -1
- package/_mjs/typeclass/Guard.mjs +0 -4
- package/_mjs/typeclass/Guard.mjs.map +0 -1
- package/_mjs/typeclass/Hash.mjs.map +0 -1
- package/_mjs/typeclass/HashEq.mjs +0 -33
- package/_mjs/typeclass/HashEq.mjs.map +0 -1
- package/_mjs/typeclass/Hashable/definition.mjs.map +0 -1
- package/_mjs/typeclass/Hashable/hash.mjs.map +0 -1
- package/_mjs/typeclass/Hashable.mjs.map +0 -1
- package/_mjs/typeclass/Ord/api/contramap.mjs +0 -10
- package/_mjs/typeclass/Ord/api/contramap.mjs.map +0 -1
- package/_mjs/typeclass/Ord/api/max.mjs +0 -8
- package/_mjs/typeclass/Ord/api/max.mjs.map +0 -1
- package/_mjs/typeclass/Ord/api/min.mjs +0 -8
- package/_mjs/typeclass/Ord/api/min.mjs.map +0 -1
- package/_mjs/typeclass/Ord/api.mjs.map +0 -1
- package/_mjs/typeclass/Ord/definition.mjs +0 -13
- package/_mjs/typeclass/Ord/definition.mjs.map +0 -1
- package/_mjs/typeclass/Ord/instances.mjs +0 -37
- package/_mjs/typeclass/Ord/instances.mjs.map +0 -1
- package/_mjs/typeclass/Ord.mjs.map +0 -1
- package/_mjs/typeclass/Ordering.mjs.map +0 -1
- package/_mjs/typeclass/Showable/definition.mjs.map +0 -1
- package/_mjs/typeclass/Showable/show.mjs.map +0 -1
- package/_mjs/typeclass/Showable/styles.mjs.map +0 -1
- package/_mjs/typeclass/Showable/util.mjs.map +0 -1
- package/_mjs/typeclass/Showable.mjs.map +0 -1
- package/_src/collection/compat/Array/derivations.ts +0 -85
- package/_src/collection/compat/Record/instances.ts +0 -102
- package/_src/collection/compat/Record.ts +0 -3
- package/_src/collection/immutable/Conc/derivations.ts +0 -28
- package/_src/collection/immutable/ImmutableArray/derivations.ts +0 -28
- package/_src/collection/immutable/ImmutableNonEmptyArray/derivations.ts +0 -44
- package/_src/data/Branded/derivations.ts +0 -58
- package/_src/typeclass/Guard/api.ts +0 -32
- package/_src/typeclass/Guard/derivations.ts +0 -81
- package/_src/typeclass/Guard.ts +0 -4
- package/_src/typeclass/Ord/api/contramap.ts +0 -11
- package/_src/typeclass/Ord/api/max.ts +0 -9
- package/_src/typeclass/Ord/api/min.ts +0 -9
- package/collection/compat/Array/derivations.d.ts +0 -24
- package/collection/compat/Record/instances.d.ts +0 -22
- package/collection/compat/Record.d.ts +0 -1
- package/collection/immutable/Conc/derivations.d.ts +0 -14
- package/collection/immutable/ImmutableArray/derivations.d.ts +0 -14
- package/collection/immutable/ImmutableNonEmptyArray/derivations.d.ts +0 -14
- package/data/Branded/derivations.d.ts +0 -24
- package/typeclass/Guard/api.d.ts +0 -20
- package/typeclass/Guard/derivations.d.ts +0 -36
- package/typeclass/Ord/api/contramap.d.ts +0 -6
- package/typeclass/Ord/api/max.d.ts +0 -7
- package/typeclass/Ord/api/min.d.ts +0 -7
- package/typeclass/Ord/definition.d.ts +0 -19
- package/typeclass/Showable/definition.d.ts +0 -17
package/_mjs/data/Cause/api.mjs
CHANGED
|
@@ -21,15 +21,15 @@ import * as tsplus_module_20 from "@fncts/base/data/exceptions";
|
|
|
21
21
|
import * as tsplus_module_21 from "@fncts/base/data/FiberId/api";
|
|
22
22
|
import * as tsplus_module_22 from "@fncts/base/data/Trace/api";
|
|
23
23
|
export const both = both_1;
|
|
24
|
-
export const
|
|
24
|
+
export const flatMap = flatMap_1;
|
|
25
25
|
export const defects = defects_1;
|
|
26
26
|
export const empty = empty_1;
|
|
27
27
|
export const fail = fail_1;
|
|
28
28
|
export const failed = failed_1;
|
|
29
29
|
export const failureTraceMaybe = failureTraceMaybe_1;
|
|
30
30
|
export const failureMaybe = failureMaybe_1;
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
31
|
+
export const find = find_1;
|
|
32
|
+
export const foldLeft = foldLeft_1;
|
|
33
33
|
export const halt = halt_1;
|
|
34
34
|
export const halted = halted_1;
|
|
35
35
|
export const haltMaybe = haltMaybe_1;
|
|
@@ -40,8 +40,8 @@ export const isInterrupt = isInterrupt_1;
|
|
|
40
40
|
export const isInterrupted = isInterrupted_1;
|
|
41
41
|
export const interruptOption = interruptOption_1;
|
|
42
42
|
export const interruptors = interruptors_1;
|
|
43
|
-
export const
|
|
44
|
-
export const
|
|
43
|
+
export const map = map_1;
|
|
44
|
+
export const mapTrace = mapTrace_1;
|
|
45
45
|
export const stackless = stackless_1;
|
|
46
46
|
export const then = then_1;
|
|
47
47
|
export const traced = traced_1;
|
|
@@ -49,51 +49,31 @@ import { Stack } from "../../internal/Stack.mjs";
|
|
|
49
49
|
import { identity } from "../function.mjs";
|
|
50
50
|
import { _Empty, Both, Empty, Fail, Halt, Interrupt, Stackless, Then } from "./definition.mjs";
|
|
51
51
|
/**
|
|
52
|
-
* @tsplus
|
|
52
|
+
* @tsplus pipeable fncts.Cause as
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
export function as_(b) {
|
|
55
|
+
return self => {
|
|
56
|
+
return map_1(() => b())(self);
|
|
57
|
+
};
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
60
|
* @internal
|
|
60
61
|
*/
|
|
61
|
-
|
|
62
62
|
function chainEval(self, f) {
|
|
63
63
|
switch (self._tag) {
|
|
64
|
-
case "Empty"
|
|
65
|
-
/* CauseTag.Empty */
|
|
66
|
-
:
|
|
64
|
+
case "Empty" /* CauseTag.Empty */:
|
|
67
65
|
return tsplus_module_1.now(empty_1());
|
|
68
|
-
|
|
69
|
-
case "Fail"
|
|
70
|
-
/* CauseTag.Fail */
|
|
71
|
-
:
|
|
66
|
+
case "Fail" /* CauseTag.Fail */:
|
|
72
67
|
return tsplus_module_1.now(traced_1(f(self.value), self.trace));
|
|
73
|
-
|
|
74
|
-
case "Halt"
|
|
75
|
-
/* CauseTag.Halt */
|
|
76
|
-
:
|
|
68
|
+
case "Halt" /* CauseTag.Halt */:
|
|
77
69
|
return tsplus_module_1.now(self);
|
|
78
|
-
|
|
79
|
-
case "Interrupt"
|
|
80
|
-
/* CauseTag.Interrupt */
|
|
81
|
-
:
|
|
70
|
+
case "Interrupt" /* CauseTag.Interrupt */:
|
|
82
71
|
return tsplus_module_1.now(self);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
/* CauseTag.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
case "Both"
|
|
90
|
-
/* CauseTag.Both */
|
|
91
|
-
:
|
|
92
|
-
return tsplus_module_2.zipWith_(tsplus_module_1.defer(() => chainEval(self.left, f)), tsplus_module_1.defer(() => chainEval(self.right, f)), both_1);
|
|
93
|
-
|
|
94
|
-
case "Stackless"
|
|
95
|
-
/* CauseTag.Stackless */
|
|
96
|
-
:
|
|
72
|
+
case "Then" /* CauseTag.Then */:
|
|
73
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => chainEval(self.right, f)), then_1)(tsplus_module_1.defer(() => chainEval(self.left, f)));
|
|
74
|
+
case "Both" /* CauseTag.Both */:
|
|
75
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => chainEval(self.right, f)), both_1)(tsplus_module_1.defer(() => chainEval(self.left, f)));
|
|
76
|
+
case "Stackless" /* CauseTag.Stackless */:
|
|
97
77
|
return tsplus_module_1.defer(() => chainEval(self.cause, f));
|
|
98
78
|
}
|
|
99
79
|
}
|
|
@@ -105,42 +85,38 @@ function chainEval(self, f) {
|
|
|
105
85
|
* @tsplus static fncts.CauseOps both
|
|
106
86
|
* @tsplus static fncts.Cause.BothOps __call
|
|
107
87
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
110
88
|
function both_1(left, right) {
|
|
111
89
|
return tsplus_module_3.isEmpty(left) ? right : tsplus_module_3.isEmpty(right) ? left : new Both(left, right);
|
|
112
90
|
}
|
|
113
91
|
/**
|
|
114
92
|
* Composes computations in sequence, using the return value of one computation as input for the next
|
|
115
93
|
*
|
|
116
|
-
* @tsplus
|
|
94
|
+
* @tsplus pipeable fncts.Cause flatMap
|
|
117
95
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
96
|
+
function flatMap_1(f) {
|
|
97
|
+
return self => {
|
|
98
|
+
return tsplus_module_4.run(chainEval(self, f));
|
|
99
|
+
};
|
|
122
100
|
}
|
|
123
101
|
/**
|
|
124
102
|
* Determines whether a `Cause` contains or is equal to the specified cause.
|
|
125
103
|
*
|
|
126
|
-
* @tsplus
|
|
104
|
+
* @tsplus pipeable fncts.Cause contains
|
|
127
105
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
106
|
+
export function contains(that) {
|
|
107
|
+
return self => {
|
|
108
|
+
return tsplus_module_4.run(containsEval(self, that));
|
|
109
|
+
};
|
|
132
110
|
}
|
|
133
111
|
/**
|
|
134
112
|
* @internal
|
|
135
113
|
*/
|
|
136
|
-
|
|
137
114
|
function containsEval(self, that) {
|
|
138
115
|
return tsplus_module_2.gen(function* (_) {
|
|
139
116
|
if (yield* _(self.equalsEval(that))) {
|
|
140
117
|
return true;
|
|
141
118
|
}
|
|
142
|
-
|
|
143
|
-
return yield* _(foldLeft_1(self, tsplus_module_1.now(false), (computation, c) => tsplus_module_5.just(tsplus_module_2.flatMap_(computation, b => b ? tsplus_module_1.now(b) : c.equalsEval(that)))));
|
|
119
|
+
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));
|
|
144
120
|
});
|
|
145
121
|
}
|
|
146
122
|
/**
|
|
@@ -148,10 +124,8 @@ function containsEval(self, that) {
|
|
|
148
124
|
*
|
|
149
125
|
* @tsplus getter fncts.Cause defects
|
|
150
126
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
127
|
function defects_1(self) {
|
|
154
|
-
return tsplus_module_7.reverse(foldLeft_1(
|
|
128
|
+
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));
|
|
155
129
|
}
|
|
156
130
|
/**
|
|
157
131
|
* The empty `Cause`
|
|
@@ -159,8 +133,6 @@ function defects_1(self) {
|
|
|
159
133
|
* @tsplus static fncts.CauseOps empty
|
|
160
134
|
* @tsplus static fncts.Cause.EmptyOps __call
|
|
161
135
|
*/
|
|
162
|
-
|
|
163
|
-
|
|
164
136
|
function empty_1() {
|
|
165
137
|
return _Empty;
|
|
166
138
|
}
|
|
@@ -170,8 +142,6 @@ function empty_1() {
|
|
|
170
142
|
* @tsplus static fncts.CauseOps fail
|
|
171
143
|
* @tsplus static fncts.Cause.FailOps __call
|
|
172
144
|
*/
|
|
173
|
-
|
|
174
|
-
|
|
175
145
|
function fail_1(value, trace = tsplus_module_8.none) {
|
|
176
146
|
return new Fail(value, trace);
|
|
177
147
|
}
|
|
@@ -180,20 +150,16 @@ function fail_1(value, trace = tsplus_module_8.none) {
|
|
|
180
150
|
*
|
|
181
151
|
* @tsplus getter Cause failed
|
|
182
152
|
*/
|
|
183
|
-
|
|
184
|
-
|
|
185
153
|
function failed_1(self) {
|
|
186
|
-
return tsplus_module_9.
|
|
154
|
+
return tsplus_module_9.match(() => false, () => true)(failureMaybe_1(self));
|
|
187
155
|
}
|
|
188
156
|
/**
|
|
189
157
|
* Produces a list of all recoverable errors `E` in the `Cause`.
|
|
190
158
|
*
|
|
191
159
|
* @tsplus getter fncts.Cause failures
|
|
192
160
|
*/
|
|
193
|
-
|
|
194
|
-
|
|
195
161
|
export function failures(self) {
|
|
196
|
-
return tsplus_module_7.reverse(foldLeft_1(
|
|
162
|
+
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));
|
|
197
163
|
}
|
|
198
164
|
/**
|
|
199
165
|
* Retrieve the first checked error on the `Left` if available,
|
|
@@ -202,9 +168,8 @@ export function failures(self) {
|
|
|
202
168
|
*
|
|
203
169
|
* @tsplus getter fncts.Cause failureOrCause
|
|
204
170
|
*/
|
|
205
|
-
|
|
206
171
|
export function failureOrCause(self) {
|
|
207
|
-
return tsplus_module_9.
|
|
172
|
+
return tsplus_module_9.match(() => tsplus_module_10.right(self), tsplus_module_10.left)(failureMaybe_1(self));
|
|
208
173
|
}
|
|
209
174
|
/**
|
|
210
175
|
* Returns the `E` associated with the first `Fail` in this `Cause` if one
|
|
@@ -212,9 +177,8 @@ export function failureOrCause(self) {
|
|
|
212
177
|
*
|
|
213
178
|
* @tsplus getter fncts.Cause failureTraceMaybe
|
|
214
179
|
*/
|
|
215
|
-
|
|
216
180
|
function failureTraceMaybe_1(self) {
|
|
217
|
-
return find_1(
|
|
181
|
+
return find_1(c => isFail_1(c) ? tsplus_module_5.just([c.value, c.trace]) : tsplus_module_5.nothing())(self);
|
|
218
182
|
}
|
|
219
183
|
/**
|
|
220
184
|
* Retrieve the first checked error and its trace on the `Left` if available,
|
|
@@ -223,100 +187,85 @@ function failureTraceMaybe_1(self) {
|
|
|
223
187
|
*
|
|
224
188
|
* @tsplus getter fncts.Cause failureTraceOrCause
|
|
225
189
|
*/
|
|
226
|
-
|
|
227
|
-
|
|
228
190
|
export function failureTraceOrCause(self) {
|
|
229
|
-
return tsplus_module_9.
|
|
191
|
+
return tsplus_module_9.match(() => tsplus_module_10.right(self), tsplus_module_10.left)(failureTraceMaybe_1(self));
|
|
230
192
|
}
|
|
231
193
|
/**
|
|
232
194
|
* Returns the `E` associated with the first `Fail` in this `Cause` if one exists.
|
|
233
195
|
*
|
|
234
196
|
* @tsplus getter fncts.Cause failureMaybe
|
|
235
197
|
*/
|
|
236
|
-
|
|
237
198
|
function failureMaybe_1(self) {
|
|
238
|
-
return find_1(
|
|
239
|
-
/* CauseTag.Fail */
|
|
240
|
-
? tsplus_module_5.just(c.value) : tsplus_module_5.nothing());
|
|
199
|
+
return find_1(c => c._tag === "Fail" /* CauseTag.Fail */ ? tsplus_module_5.just(c.value) : tsplus_module_5.nothing())(self);
|
|
241
200
|
}
|
|
242
201
|
/**
|
|
243
202
|
* Remove all `Halt` causes that the specified partial function is defined at,
|
|
244
203
|
* returning `Just` with the remaining causes or `Nothing` if there are no
|
|
245
204
|
* remaining causes.
|
|
246
205
|
*
|
|
247
|
-
* @tsplus
|
|
248
|
-
*/
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
206
|
+
* @tsplus pipeable fncts.Cause filterDefects
|
|
207
|
+
*/
|
|
208
|
+
export function filterDefects(p) {
|
|
209
|
+
return self => {
|
|
210
|
+
return tsplus_module_13.fold({
|
|
211
|
+
Empty: () => tsplus_module_5.just(empty_1()),
|
|
212
|
+
Fail: (e, trace) => tsplus_module_5.just(fail_1(e, trace)),
|
|
213
|
+
Halt: (u, trace) => p(u) ? tsplus_module_5.nothing() : tsplus_module_5.just(halt_1(u, trace)),
|
|
214
|
+
Interrupt: (fiberId, trace) => tsplus_module_5.just(interrupt_1(fiberId, trace)),
|
|
215
|
+
Then: (l, r) => {
|
|
216
|
+
if (tsplus_module_11.isJust(l) && tsplus_module_11.isJust(r)) {
|
|
217
|
+
return tsplus_module_5.just(then_1(l.value, r.value));
|
|
218
|
+
} else if (tsplus_module_11.isJust(l) && tsplus_module_11.isNothing(r)) {
|
|
219
|
+
return tsplus_module_5.just(l.value);
|
|
220
|
+
} else if (tsplus_module_11.isNothing(l) && tsplus_module_11.isJust(r)) {
|
|
221
|
+
return tsplus_module_5.just(r.value);
|
|
222
|
+
} else {
|
|
223
|
+
return tsplus_module_5.nothing();
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
Both: (l, r) => {
|
|
227
|
+
if (tsplus_module_11.isJust(l) && tsplus_module_11.isJust(r)) {
|
|
228
|
+
return tsplus_module_5.just(both_1(l.value, r.value));
|
|
229
|
+
} else if (tsplus_module_11.isJust(l) && tsplus_module_11.isNothing(r)) {
|
|
230
|
+
return tsplus_module_5.just(l.value);
|
|
231
|
+
} else if (tsplus_module_11.isNothing(l) && tsplus_module_11.isJust(r)) {
|
|
232
|
+
return tsplus_module_5.just(r.value);
|
|
233
|
+
} else {
|
|
234
|
+
return tsplus_module_5.nothing();
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
Stackless: (causeOption, stackless) => tsplus_module_12.map(cause => stackless_1(cause, stackless))(causeOption)
|
|
238
|
+
})(self);
|
|
239
|
+
};
|
|
281
240
|
}
|
|
282
241
|
/**
|
|
283
242
|
* @tsplus tailRec
|
|
284
243
|
*/
|
|
285
|
-
|
|
286
244
|
function findLoop(self, f, stack) {
|
|
287
245
|
var self_1 = self,
|
|
288
|
-
|
|
289
|
-
|
|
246
|
+
f_1 = f,
|
|
247
|
+
stack_1 = stack;
|
|
290
248
|
var self_2 = self,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
249
|
+
f_2 = f,
|
|
250
|
+
stack_2 = stack;
|
|
294
251
|
while (1) {
|
|
295
252
|
const r = f_1(self_1);
|
|
296
253
|
void 0;
|
|
297
|
-
|
|
298
254
|
switch (r._tag) {
|
|
299
|
-
case "Nothing"
|
|
300
|
-
/* MaybeTag.Nothing */
|
|
301
|
-
:
|
|
255
|
+
case "Nothing" /* MaybeTag.Nothing */:
|
|
302
256
|
{
|
|
303
257
|
switch (self_1._tag) {
|
|
304
|
-
case "Both"
|
|
305
|
-
/* CauseTag.
|
|
306
|
-
:
|
|
307
|
-
case "Then"
|
|
308
|
-
/* CauseTag.Then */
|
|
309
|
-
:
|
|
258
|
+
case "Both" /* CauseTag.Both */:
|
|
259
|
+
case "Then" /* CauseTag.Then */:
|
|
310
260
|
{
|
|
311
261
|
self_2 = self_1.left;
|
|
312
262
|
f_2 = f_1;
|
|
313
|
-
stack_2 = tsplus_module_7.
|
|
263
|
+
stack_2 = tsplus_module_7.prepend(self_1.right)(stack_1);
|
|
314
264
|
self_1 = self_2;
|
|
315
265
|
f_1 = f_2;
|
|
316
266
|
stack_1 = stack_2;
|
|
317
267
|
continue;
|
|
318
268
|
}
|
|
319
|
-
|
|
320
269
|
default:
|
|
321
270
|
{
|
|
322
271
|
if (tsplus_module_14.isNonEmpty(stack_1)) {
|
|
@@ -328,15 +277,11 @@ function findLoop(self, f, stack) {
|
|
|
328
277
|
stack_1 = stack_2;
|
|
329
278
|
continue;
|
|
330
279
|
}
|
|
331
|
-
|
|
332
280
|
return tsplus_module_5.nothing();
|
|
333
281
|
}
|
|
334
282
|
}
|
|
335
283
|
}
|
|
336
|
-
|
|
337
|
-
case "Just"
|
|
338
|
-
/* MaybeTag.Just */
|
|
339
|
-
:
|
|
284
|
+
case "Just" /* MaybeTag.Just */:
|
|
340
285
|
{
|
|
341
286
|
return r;
|
|
342
287
|
}
|
|
@@ -346,61 +291,49 @@ function findLoop(self, f, stack) {
|
|
|
346
291
|
/**
|
|
347
292
|
* Finds the first result matching `f`
|
|
348
293
|
*
|
|
349
|
-
* @tsplus
|
|
294
|
+
* @tsplus pipeable fncts.Cause find
|
|
350
295
|
*/
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
296
|
+
function find_1(f) {
|
|
297
|
+
return self => {
|
|
298
|
+
return findLoop(self, f, tsplus_module_6.nil());
|
|
299
|
+
};
|
|
355
300
|
}
|
|
356
301
|
/**
|
|
357
302
|
* @tsplus getter fncts.Cause flatten
|
|
358
303
|
*/
|
|
359
|
-
|
|
360
|
-
|
|
361
304
|
export function flatten(self) {
|
|
362
|
-
return flatMap_1(
|
|
305
|
+
return flatMap_1(identity)(self);
|
|
363
306
|
}
|
|
364
|
-
|
|
365
307
|
class FCEStackFrameDone {
|
|
366
308
|
constructor() {
|
|
367
309
|
this._tag = "FCEStackFrameDone";
|
|
368
310
|
}
|
|
369
|
-
|
|
370
311
|
}
|
|
371
|
-
|
|
372
312
|
class FCEStackFrameThenLeft {
|
|
373
313
|
constructor(cause) {
|
|
374
314
|
this.cause = cause;
|
|
375
315
|
this._tag = "FCEStackFrameThenLeft";
|
|
376
316
|
}
|
|
377
|
-
|
|
378
317
|
}
|
|
379
|
-
|
|
380
318
|
class FCEStackFrameThenRight {
|
|
381
319
|
constructor(cause, leftResult) {
|
|
382
320
|
this.cause = cause;
|
|
383
321
|
this.leftResult = leftResult;
|
|
384
322
|
this._tag = "FCEStackFrameThenRight";
|
|
385
323
|
}
|
|
386
|
-
|
|
387
324
|
}
|
|
388
|
-
|
|
389
325
|
class FCEStackFrameBothLeft {
|
|
390
326
|
constructor(cause) {
|
|
391
327
|
this.cause = cause;
|
|
392
328
|
this._tag = "FCEStackFrameBothLeft";
|
|
393
329
|
}
|
|
394
|
-
|
|
395
330
|
}
|
|
396
|
-
|
|
397
331
|
class FCEStackFrameBothRight {
|
|
398
332
|
constructor(cause, leftResult) {
|
|
399
333
|
this.cause = cause;
|
|
400
334
|
this.leftResult = leftResult;
|
|
401
335
|
this._tag = "FCEStackFrameBothRight";
|
|
402
336
|
}
|
|
403
|
-
|
|
404
337
|
}
|
|
405
338
|
/**
|
|
406
339
|
* Converts the specified `Cause<Either<E, A>>` to an `Either<Cause<E>, A>` by
|
|
@@ -408,159 +341,114 @@ class FCEStackFrameBothRight {
|
|
|
408
341
|
*
|
|
409
342
|
* @tsplus getter fncts.Cause flipCauseEither
|
|
410
343
|
*/
|
|
411
|
-
|
|
412
|
-
|
|
413
344
|
export function flipCauseEither(self) {
|
|
414
|
-
const stack = tsplus_module_16.
|
|
345
|
+
const stack = tsplus_module_16.makeStack();
|
|
415
346
|
stack.push(new FCEStackFrameDone());
|
|
416
347
|
let result;
|
|
417
348
|
let c = self;
|
|
418
|
-
|
|
419
349
|
recursion: while (stack.hasNext) {
|
|
420
350
|
// eslint-disable-next-line no-constant-condition
|
|
421
351
|
pushing: while (true) {
|
|
422
352
|
switch (c._tag) {
|
|
423
|
-
case "Empty"
|
|
424
|
-
/* CauseTag.Empty */
|
|
425
|
-
:
|
|
353
|
+
case "Empty" /* CauseTag.Empty */:
|
|
426
354
|
result = tsplus_module_10.left(empty_1());
|
|
427
355
|
break pushing;
|
|
428
|
-
|
|
429
|
-
case "Interrupt"
|
|
430
|
-
/* CauseTag.Interrupt */
|
|
431
|
-
:
|
|
356
|
+
case "Interrupt" /* CauseTag.Interrupt */:
|
|
432
357
|
result = tsplus_module_10.left(interrupt_1(c.id, c.trace));
|
|
433
358
|
break pushing;
|
|
434
|
-
|
|
435
|
-
case "Halt"
|
|
436
|
-
/* CauseTag.Halt */
|
|
437
|
-
:
|
|
359
|
+
case "Halt" /* CauseTag.Halt */:
|
|
438
360
|
result = tsplus_module_10.left(c);
|
|
439
361
|
break pushing;
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
/* CauseTag.Fail */
|
|
443
|
-
:
|
|
444
|
-
result = tsplus_module_17.match_(c.value, l => tsplus_module_10.left(fail_1(l, tsplus_module_8.none)), r => tsplus_module_10.right(r));
|
|
362
|
+
case "Fail" /* CauseTag.Fail */:
|
|
363
|
+
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);
|
|
445
364
|
break pushing;
|
|
446
|
-
|
|
447
|
-
case "Then"
|
|
448
|
-
/* CauseTag.Then */
|
|
449
|
-
:
|
|
365
|
+
case "Then" /* CauseTag.Then */:
|
|
450
366
|
stack.push(new FCEStackFrameThenLeft(c));
|
|
451
367
|
c = c.left;
|
|
452
368
|
continue pushing;
|
|
453
|
-
|
|
454
|
-
case "Both"
|
|
455
|
-
/* CauseTag.Both */
|
|
456
|
-
:
|
|
369
|
+
case "Both" /* CauseTag.Both */:
|
|
457
370
|
stack.push(new FCEStackFrameBothLeft(c));
|
|
458
371
|
c = c.left;
|
|
459
372
|
continue pushing;
|
|
460
373
|
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
374
|
+
}
|
|
375
|
+
// eslint-disable-next-line no-constant-condition
|
|
464
376
|
popping: while (true) {
|
|
465
377
|
const top = stack.pop();
|
|
466
|
-
|
|
467
378
|
switch (top._tag) {
|
|
468
379
|
case "FCEStackFrameDone":
|
|
469
380
|
return result;
|
|
470
|
-
|
|
471
381
|
case "FCEStackFrameThenLeft":
|
|
472
382
|
c = top.cause.right;
|
|
473
383
|
stack.push(new FCEStackFrameThenRight(top.cause, result));
|
|
474
384
|
continue recursion;
|
|
475
|
-
|
|
476
385
|
case "FCEStackFrameThenRight":
|
|
477
386
|
{
|
|
478
387
|
const l = top.leftResult;
|
|
479
|
-
|
|
480
388
|
if (tsplus_module_18.isLeft(l) && tsplus_module_18.isLeft(result)) {
|
|
481
389
|
result = tsplus_module_10.left(then_1(l.left, result.left));
|
|
482
390
|
}
|
|
483
|
-
|
|
484
391
|
if (tsplus_module_18.isRight(l)) {
|
|
485
392
|
result = tsplus_module_10.right(l.right);
|
|
486
393
|
}
|
|
487
|
-
|
|
488
394
|
if (tsplus_module_18.isRight(result)) {
|
|
489
395
|
result = tsplus_module_10.right(result.right);
|
|
490
396
|
}
|
|
491
|
-
|
|
492
397
|
continue popping;
|
|
493
398
|
}
|
|
494
|
-
|
|
495
399
|
case "FCEStackFrameBothLeft":
|
|
496
400
|
c = top.cause.right;
|
|
497
401
|
stack.push(new FCEStackFrameBothRight(top.cause, result));
|
|
498
402
|
continue recursion;
|
|
499
|
-
|
|
500
403
|
case "FCEStackFrameBothRight":
|
|
501
404
|
{
|
|
502
405
|
const l = top.leftResult;
|
|
503
|
-
|
|
504
406
|
if (tsplus_module_18.isLeft(l) && tsplus_module_18.isLeft(result)) {
|
|
505
407
|
result = tsplus_module_10.left(both_1(l.left, result.left));
|
|
506
408
|
}
|
|
507
|
-
|
|
508
409
|
if (tsplus_module_18.isRight(l)) {
|
|
509
410
|
result = tsplus_module_10.right(l.right);
|
|
510
411
|
}
|
|
511
|
-
|
|
512
412
|
if (tsplus_module_18.isRight(result)) {
|
|
513
413
|
result = tsplus_module_10.right(result.right);
|
|
514
414
|
}
|
|
515
|
-
|
|
516
415
|
continue popping;
|
|
517
416
|
}
|
|
518
417
|
}
|
|
519
418
|
}
|
|
520
419
|
}
|
|
521
|
-
|
|
522
420
|
throw new Error("Bug");
|
|
523
421
|
}
|
|
524
|
-
|
|
525
422
|
class FCOStackFrameDone {
|
|
526
423
|
constructor() {
|
|
527
424
|
this._tag = "FCOStackFrameDone";
|
|
528
425
|
}
|
|
529
|
-
|
|
530
426
|
}
|
|
531
|
-
|
|
532
427
|
class FCOStackFrameThenLeft {
|
|
533
428
|
constructor(cause) {
|
|
534
429
|
this.cause = cause;
|
|
535
430
|
this._tag = "FCOStackFrameThenLeft";
|
|
536
431
|
}
|
|
537
|
-
|
|
538
432
|
}
|
|
539
|
-
|
|
540
433
|
class FCOStackFrameThenRight {
|
|
541
434
|
constructor(cause, leftResult) {
|
|
542
435
|
this.cause = cause;
|
|
543
436
|
this.leftResult = leftResult;
|
|
544
437
|
this._tag = "FCOStackFrameThenRight";
|
|
545
438
|
}
|
|
546
|
-
|
|
547
439
|
}
|
|
548
|
-
|
|
549
440
|
class FCOStackFrameBothLeft {
|
|
550
441
|
constructor(cause) {
|
|
551
442
|
this.cause = cause;
|
|
552
443
|
this._tag = "FCOStackFrameBothLeft";
|
|
553
444
|
}
|
|
554
|
-
|
|
555
445
|
}
|
|
556
|
-
|
|
557
446
|
class FCOStackFrameBothRight {
|
|
558
447
|
constructor(cause, leftResult) {
|
|
559
448
|
this.cause = cause;
|
|
560
449
|
this.leftResult = leftResult;
|
|
561
450
|
this._tag = "FCOStackFrameBothRight";
|
|
562
451
|
}
|
|
563
|
-
|
|
564
452
|
}
|
|
565
453
|
/**
|
|
566
454
|
* Converts the specified `Cause<Maybe<A>>` to an `Maybe<Cause<A>>` by
|
|
@@ -568,168 +456,125 @@ class FCOStackFrameBothRight {
|
|
|
568
456
|
*
|
|
569
457
|
* @tsplus getter fncts.Cause flipCauseMaybe
|
|
570
458
|
*/
|
|
571
|
-
|
|
572
|
-
|
|
573
459
|
export function flipCauseOption(self) {
|
|
574
|
-
const stack = tsplus_module_16.
|
|
460
|
+
const stack = tsplus_module_16.makeStack();
|
|
575
461
|
stack.push(new FCOStackFrameDone());
|
|
576
462
|
let result;
|
|
577
463
|
let c = self;
|
|
578
|
-
|
|
579
464
|
recursion: while (stack.hasNext) {
|
|
580
465
|
// eslint-disable-next-line no-constant-condition
|
|
581
466
|
pushing: while (true) {
|
|
582
467
|
switch (c._tag) {
|
|
583
|
-
case "Empty"
|
|
584
|
-
/* CauseTag.Empty */
|
|
585
|
-
:
|
|
468
|
+
case "Empty" /* CauseTag.Empty */:
|
|
586
469
|
result = tsplus_module_5.just(empty_1());
|
|
587
470
|
break pushing;
|
|
588
|
-
|
|
589
|
-
case "Interrupt"
|
|
590
|
-
/* CauseTag.Interrupt */
|
|
591
|
-
:
|
|
471
|
+
case "Interrupt" /* CauseTag.Interrupt */:
|
|
592
472
|
result = tsplus_module_5.just(interrupt_1(c.id, tsplus_module_8.none));
|
|
593
473
|
break pushing;
|
|
594
|
-
|
|
595
|
-
case "Halt"
|
|
596
|
-
/* CauseTag.Halt */
|
|
597
|
-
:
|
|
474
|
+
case "Halt" /* CauseTag.Halt */:
|
|
598
475
|
result = tsplus_module_5.just(c);
|
|
599
476
|
break pushing;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
/* CauseTag.Fail */
|
|
603
|
-
:
|
|
604
|
-
result = tsplus_module_9.match_(c.value, () => tsplus_module_5.nothing(), r => tsplus_module_5.just(fail_1(r, tsplus_module_8.none)));
|
|
477
|
+
case "Fail" /* CauseTag.Fail */:
|
|
478
|
+
result = tsplus_module_9.match(() => tsplus_module_5.nothing(), r => tsplus_module_5.just(fail_1(r, tsplus_module_8.none)))(c.value);
|
|
605
479
|
break pushing;
|
|
606
|
-
|
|
607
|
-
case "Then"
|
|
608
|
-
/* CauseTag.Then */
|
|
609
|
-
:
|
|
480
|
+
case "Then" /* CauseTag.Then */:
|
|
610
481
|
stack.push(new FCOStackFrameThenLeft(c));
|
|
611
482
|
c = c.left;
|
|
612
483
|
continue pushing;
|
|
613
|
-
|
|
614
|
-
case "Both"
|
|
615
|
-
/* CauseTag.Both */
|
|
616
|
-
:
|
|
484
|
+
case "Both" /* CauseTag.Both */:
|
|
617
485
|
stack.push(new FCOStackFrameBothLeft(c));
|
|
618
486
|
c = c.left;
|
|
619
487
|
continue pushing;
|
|
620
488
|
}
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
|
|
489
|
+
}
|
|
490
|
+
// eslint-disable-next-line no-constant-condition
|
|
624
491
|
popping: while (true) {
|
|
625
492
|
const top = stack.pop();
|
|
626
|
-
|
|
627
493
|
switch (top._tag) {
|
|
628
494
|
case "FCOStackFrameDone":
|
|
629
495
|
return result;
|
|
630
|
-
|
|
631
496
|
case "FCOStackFrameThenLeft":
|
|
632
497
|
c = top.cause.right;
|
|
633
498
|
stack.push(new FCOStackFrameThenRight(top.cause, result));
|
|
634
499
|
continue recursion;
|
|
635
|
-
|
|
636
500
|
case "FCOStackFrameThenRight":
|
|
637
501
|
{
|
|
638
502
|
const l = top.leftResult;
|
|
639
|
-
|
|
640
503
|
if (tsplus_module_11.isJust(l) && tsplus_module_11.isJust(result)) {
|
|
641
504
|
result = tsplus_module_5.just(then_1(l.value, result.value));
|
|
642
505
|
}
|
|
643
|
-
|
|
644
506
|
if (tsplus_module_11.isNothing(l) && tsplus_module_11.isJust(result)) {
|
|
645
507
|
result = tsplus_module_5.just(result.value);
|
|
646
508
|
}
|
|
647
|
-
|
|
648
509
|
if (tsplus_module_11.isJust(l) && tsplus_module_11.isNothing(result)) {
|
|
649
510
|
result = tsplus_module_5.just(l.value);
|
|
650
511
|
}
|
|
651
|
-
|
|
652
512
|
result = tsplus_module_5.nothing();
|
|
653
513
|
continue popping;
|
|
654
514
|
}
|
|
655
|
-
|
|
656
515
|
case "FCOStackFrameBothLeft":
|
|
657
516
|
c = top.cause.right;
|
|
658
517
|
stack.push(new FCOStackFrameBothRight(top.cause, result));
|
|
659
518
|
continue recursion;
|
|
660
|
-
|
|
661
519
|
case "FCOStackFrameBothRight":
|
|
662
520
|
{
|
|
663
521
|
const l = top.leftResult;
|
|
664
|
-
|
|
665
522
|
if (tsplus_module_11.isJust(l) && tsplus_module_11.isJust(result)) {
|
|
666
523
|
result = tsplus_module_5.just(both_1(l.value, result.value));
|
|
667
524
|
}
|
|
668
|
-
|
|
669
525
|
if (tsplus_module_11.isNothing(l) && tsplus_module_11.isJust(result)) {
|
|
670
526
|
result = tsplus_module_5.just(result.value);
|
|
671
527
|
}
|
|
672
|
-
|
|
673
528
|
if (tsplus_module_11.isJust(l) && tsplus_module_11.isNothing(result)) {
|
|
674
529
|
result = tsplus_module_5.just(l.value);
|
|
675
530
|
}
|
|
676
|
-
|
|
677
531
|
result = tsplus_module_5.nothing();
|
|
678
532
|
continue popping;
|
|
679
533
|
}
|
|
680
534
|
}
|
|
681
535
|
}
|
|
682
536
|
}
|
|
683
|
-
|
|
684
537
|
throw new Error("Bug");
|
|
685
538
|
}
|
|
686
539
|
/**
|
|
687
540
|
* Accumulates a state over a `Cause`
|
|
688
541
|
*
|
|
689
|
-
* @tsplus
|
|
542
|
+
* @tsplus pipeable fncts.Cause foldLeft
|
|
690
543
|
*/
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
544
|
+
function foldLeft_1(b, f) {
|
|
545
|
+
return self => {
|
|
546
|
+
return foldLeftLoop(self, b, f, tsplus_module_6.nil());
|
|
547
|
+
};
|
|
694
548
|
}
|
|
695
549
|
/**
|
|
696
550
|
* @internal
|
|
697
551
|
* @tsplus tailRec
|
|
698
552
|
*/
|
|
699
|
-
|
|
700
|
-
|
|
701
553
|
function foldLeftLoop(self, b, f, stack) {
|
|
702
554
|
var self_3 = self,
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
555
|
+
b_1 = b,
|
|
556
|
+
f_3 = f,
|
|
557
|
+
stack_3 = stack;
|
|
706
558
|
var self_4 = self,
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
559
|
+
b_2 = b,
|
|
560
|
+
f_4 = f,
|
|
561
|
+
stack_4 = stack;
|
|
711
562
|
while (1) {
|
|
712
|
-
const z = tsplus_module_12.
|
|
713
|
-
|
|
563
|
+
const z = tsplus_module_12.getOrElse(() => b_1)(f_3(b_1, self_3));
|
|
714
564
|
switch (self_3._tag) {
|
|
715
|
-
case "Both"
|
|
716
|
-
/* CauseTag.
|
|
717
|
-
:
|
|
718
|
-
case "Then"
|
|
719
|
-
/* CauseTag.Then */
|
|
720
|
-
:
|
|
565
|
+
case "Both" /* CauseTag.Both */:
|
|
566
|
+
case "Then" /* CauseTag.Then */:
|
|
721
567
|
{
|
|
722
568
|
self_4 = self_3.left;
|
|
723
569
|
b_2 = z;
|
|
724
570
|
f_4 = f_3;
|
|
725
|
-
stack_4 = tsplus_module_7.
|
|
571
|
+
stack_4 = tsplus_module_7.prepend(self_3.right)(stack_3);
|
|
726
572
|
self_3 = self_4;
|
|
727
573
|
b_1 = b_2;
|
|
728
574
|
f_3 = f_4;
|
|
729
575
|
stack_3 = stack_4;
|
|
730
576
|
continue;
|
|
731
577
|
}
|
|
732
|
-
|
|
733
578
|
default:
|
|
734
579
|
{
|
|
735
580
|
if (tsplus_module_14.isNonEmpty(stack_3)) {
|
|
@@ -743,7 +588,6 @@ function foldLeftLoop(self, b, f, stack) {
|
|
|
743
588
|
stack_3 = stack_4;
|
|
744
589
|
continue;
|
|
745
590
|
}
|
|
746
|
-
|
|
747
591
|
return z;
|
|
748
592
|
}
|
|
749
593
|
}
|
|
@@ -755,8 +599,6 @@ function foldLeftLoop(self, b, f, stack) {
|
|
|
755
599
|
* @tsplus static fncts.CauseOps halt
|
|
756
600
|
* @tsplus static fncts.Cause.HaltOps __call
|
|
757
601
|
*/
|
|
758
|
-
|
|
759
|
-
|
|
760
602
|
function halt_1(value, trace = tsplus_module_8.none) {
|
|
761
603
|
return new Halt(value, trace);
|
|
762
604
|
}
|
|
@@ -765,22 +607,16 @@ function halt_1(value, trace = tsplus_module_8.none) {
|
|
|
765
607
|
*
|
|
766
608
|
* @tsplus getter fncts.Cause halted
|
|
767
609
|
*/
|
|
768
|
-
|
|
769
|
-
|
|
770
610
|
function halted_1(self) {
|
|
771
|
-
return tsplus_module_9.
|
|
611
|
+
return tsplus_module_9.match(() => false, () => true)(haltMaybe_1(self));
|
|
772
612
|
}
|
|
773
613
|
/**
|
|
774
614
|
* Returns the `unknown` associated with the first `Halt` in this `Cause` if one exists.
|
|
775
615
|
*
|
|
776
616
|
* @tsplus getter fncts.Cause haltMaybe
|
|
777
617
|
*/
|
|
778
|
-
|
|
779
|
-
|
|
780
618
|
function haltMaybe_1(self) {
|
|
781
|
-
return find_1(
|
|
782
|
-
/* CauseTag.Halt */
|
|
783
|
-
? tsplus_module_5.just(c.value) : tsplus_module_5.nothing());
|
|
619
|
+
return find_1(c => c._tag === "Halt" /* CauseTag.Halt */ ? tsplus_module_5.just(c.value) : tsplus_module_5.nothing())(self);
|
|
784
620
|
}
|
|
785
621
|
/**
|
|
786
622
|
* Constructs a `Cause` from an `Id`, representing an interruption of asynchronous computation
|
|
@@ -788,8 +624,6 @@ function haltMaybe_1(self) {
|
|
|
788
624
|
* @tsplus static fncts.CauseOps interrupt
|
|
789
625
|
* @tsplus static fncts.Cause.InterruptOps __call
|
|
790
626
|
*/
|
|
791
|
-
|
|
792
|
-
|
|
793
627
|
function interrupt_1(id, trace = tsplus_module_8.none) {
|
|
794
628
|
return new Interrupt(id, trace);
|
|
795
629
|
}
|
|
@@ -798,112 +632,79 @@ function interrupt_1(id, trace = tsplus_module_8.none) {
|
|
|
798
632
|
*
|
|
799
633
|
* @tsplus fluent fncts.Cause isBoth
|
|
800
634
|
*/
|
|
801
|
-
|
|
802
|
-
|
|
803
635
|
export function isBoth(self) {
|
|
804
|
-
return self._tag === "Both"
|
|
805
|
-
/* CauseTag.Both */
|
|
806
|
-
;
|
|
636
|
+
return self._tag === "Both" /* CauseTag.Both */;
|
|
807
637
|
}
|
|
808
638
|
/**
|
|
809
639
|
* A type-guard matching `Fail`
|
|
810
640
|
*
|
|
811
641
|
* @tsplus fluent fncts.Cause isFail
|
|
812
642
|
*/
|
|
813
|
-
|
|
814
643
|
function isFail_1(self) {
|
|
815
|
-
return self._tag === "Fail"
|
|
816
|
-
/* CauseTag.Fail */
|
|
817
|
-
;
|
|
644
|
+
return self._tag === "Fail" /* CauseTag.Fail */;
|
|
818
645
|
}
|
|
819
646
|
/**
|
|
820
647
|
* @tsplus fluent fncts.Cause isHalt
|
|
821
648
|
*/
|
|
822
|
-
|
|
823
|
-
|
|
824
649
|
function isHalt_1(self) {
|
|
825
|
-
return self._tag === "Halt"
|
|
826
|
-
/* CauseTag.Halt */
|
|
827
|
-
;
|
|
650
|
+
return self._tag === "Halt" /* CauseTag.Halt */;
|
|
828
651
|
}
|
|
829
652
|
/**
|
|
830
653
|
* A type-guard matching `Then`
|
|
831
654
|
*
|
|
832
655
|
* @tsplus fluent fncts.Cause isThen
|
|
833
656
|
*/
|
|
834
|
-
|
|
835
|
-
|
|
836
657
|
export function isThen(self) {
|
|
837
|
-
return self._tag === "Then"
|
|
838
|
-
/* CauseTag.Then */
|
|
839
|
-
;
|
|
658
|
+
return self._tag === "Then" /* CauseTag.Then */;
|
|
840
659
|
}
|
|
841
660
|
/**
|
|
842
661
|
* A type-guard matching `Interrupt`
|
|
843
662
|
*
|
|
844
663
|
* @tsplus fluent fncts.Cause isInterrupt
|
|
845
664
|
*/
|
|
846
|
-
|
|
847
665
|
function isInterrupt_1(self) {
|
|
848
|
-
return self._tag === "Interrupt"
|
|
849
|
-
/* CauseTag.Interrupt */
|
|
850
|
-
;
|
|
666
|
+
return self._tag === "Interrupt" /* CauseTag.Interrupt */;
|
|
851
667
|
}
|
|
852
668
|
/**
|
|
853
669
|
* Determines if the `Cause` contains an interruption.
|
|
854
670
|
*
|
|
855
671
|
* @tsplus getter fncts.Cause isInterrupted
|
|
856
672
|
*/
|
|
857
|
-
|
|
858
|
-
|
|
859
673
|
function isInterrupted_1(self) {
|
|
860
|
-
return tsplus_module_11.isJust(find_1(
|
|
674
|
+
return tsplus_module_11.isJust(find_1(cause => isInterrupt_1(cause) ? tsplus_module_5.just(cause) : tsplus_module_5.nothing())(self));
|
|
861
675
|
}
|
|
862
676
|
/**
|
|
863
677
|
* A type-guard matching `Traced`
|
|
864
678
|
*
|
|
865
679
|
* @tsplus getter fncts.Cause isTraced
|
|
866
680
|
*/
|
|
867
|
-
|
|
868
|
-
|
|
869
681
|
export function isTraced(self) {
|
|
870
|
-
return tsplus_module_11.isJust(find_1(
|
|
682
|
+
return tsplus_module_11.isJust(find_1(cause => {
|
|
871
683
|
switch (cause._tag) {
|
|
872
|
-
case "Halt"
|
|
873
|
-
/* CauseTag.
|
|
874
|
-
|
|
875
|
-
case "Fail"
|
|
876
|
-
/* CauseTag.Fail */
|
|
877
|
-
:
|
|
878
|
-
case "Interrupt"
|
|
879
|
-
/* CauseTag.Interrupt */
|
|
880
|
-
:
|
|
684
|
+
case "Halt" /* CauseTag.Halt */:
|
|
685
|
+
case "Fail" /* CauseTag.Fail */:
|
|
686
|
+
case "Interrupt" /* CauseTag.Interrupt */:
|
|
881
687
|
return cause.trace !== tsplus_module_8.none ? tsplus_module_5.just(undefined) : tsplus_module_5.nothing();
|
|
882
|
-
|
|
883
688
|
default:
|
|
884
689
|
return tsplus_module_5.nothing();
|
|
885
690
|
}
|
|
886
|
-
}));
|
|
691
|
+
})(self));
|
|
887
692
|
}
|
|
888
693
|
/**
|
|
889
694
|
* Determines whether the `Cause` contains an interruption
|
|
890
695
|
*
|
|
891
696
|
* @tsplus getter fncts.Cause interrupted
|
|
892
697
|
*/
|
|
893
|
-
|
|
894
698
|
export function interrupted(self) {
|
|
895
|
-
return tsplus_module_9.
|
|
699
|
+
return tsplus_module_9.match(() => false, () => true)(interruptOption_1(self));
|
|
896
700
|
}
|
|
897
701
|
/**
|
|
898
702
|
* Returns the `FiberId` associated with the first `Interrupt` in this `Cause` if one exists.
|
|
899
703
|
*
|
|
900
704
|
* @tsplus getter fncts.Cause interruptOption
|
|
901
705
|
*/
|
|
902
|
-
|
|
903
706
|
function interruptOption_1(self) {
|
|
904
|
-
return find_1(
|
|
905
|
-
/* CauseTag.Interrupt */
|
|
906
|
-
? tsplus_module_5.just(c.id) : tsplus_module_5.nothing());
|
|
707
|
+
return find_1(c => c._tag === "Interrupt" /* CauseTag.Interrupt */ ? tsplus_module_5.just(c.id) : tsplus_module_5.nothing())(self);
|
|
907
708
|
}
|
|
908
709
|
/**
|
|
909
710
|
* Returns a set of interruptors, fibers that interrupted the fiber described
|
|
@@ -911,12 +712,8 @@ function interruptOption_1(self) {
|
|
|
911
712
|
*
|
|
912
713
|
* @tsplus getter fncts.Cause interruptors
|
|
913
714
|
*/
|
|
914
|
-
|
|
915
|
-
|
|
916
715
|
function interruptors_1(self) {
|
|
917
|
-
return foldLeft_1(
|
|
918
|
-
/* CauseTag.Interrupt */
|
|
919
|
-
? tsplus_module_5.just(tsplus_module_19.add_(s, c.id)) : tsplus_module_5.nothing());
|
|
716
|
+
return foldLeft_1(tsplus_module_19.empty(), (s, c) => c._tag === "Interrupt" /* CauseTag.Interrupt */ ? tsplus_module_5.just(tsplus_module_19.add(c.id)(s)) : tsplus_module_5.nothing())(self);
|
|
920
717
|
}
|
|
921
718
|
/**
|
|
922
719
|
* Determines if the `Cause` contains only interruptions and not any `Halt` or
|
|
@@ -924,10 +721,8 @@ function interruptors_1(self) {
|
|
|
924
721
|
*
|
|
925
722
|
* @tsplus getter fncts.Cause interruptedOnly
|
|
926
723
|
*/
|
|
927
|
-
|
|
928
|
-
|
|
929
724
|
export function interruptedOnly(self) {
|
|
930
|
-
return tsplus_module_12.
|
|
725
|
+
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));
|
|
931
726
|
}
|
|
932
727
|
/**
|
|
933
728
|
* Remove all `Fail` and `Interrupt` nodes from this `Cause`,
|
|
@@ -935,9 +730,8 @@ export function interruptedOnly(self) {
|
|
|
935
730
|
*
|
|
936
731
|
* @tsplus getter fncts.Cause keepDefects
|
|
937
732
|
*/
|
|
938
|
-
|
|
939
733
|
export function keepDefects(self) {
|
|
940
|
-
return tsplus_module_13.
|
|
734
|
+
return tsplus_module_13.fold({
|
|
941
735
|
Empty: () => tsplus_module_5.nothing(),
|
|
942
736
|
Fail: () => tsplus_module_5.nothing(),
|
|
943
737
|
Halt: (t, trace) => tsplus_module_5.just(halt_1(t, trace)),
|
|
@@ -964,38 +758,37 @@ export function keepDefects(self) {
|
|
|
964
758
|
return tsplus_module_5.nothing();
|
|
965
759
|
}
|
|
966
760
|
},
|
|
967
|
-
Stackless: (maybeCause, stackless) => tsplus_module_12.
|
|
968
|
-
});
|
|
761
|
+
Stackless: (maybeCause, stackless) => tsplus_module_12.map(cause => stackless_1(cause, stackless))(maybeCause)
|
|
762
|
+
})(self);
|
|
969
763
|
}
|
|
970
764
|
/**
|
|
971
|
-
* @tsplus
|
|
765
|
+
* @tsplus pipeable fncts.Cause map
|
|
972
766
|
*/
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
767
|
+
function map_1(f) {
|
|
768
|
+
return self => {
|
|
769
|
+
return flatMap_1(e => fail_1(f(e), tsplus_module_8.none))(self);
|
|
770
|
+
};
|
|
976
771
|
}
|
|
977
772
|
/**
|
|
978
|
-
* @tsplus
|
|
773
|
+
* @tsplus pipeable fncts.Cause mapTrace
|
|
979
774
|
*/
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
}
|
|
775
|
+
function mapTrace_1(f) {
|
|
776
|
+
return self => {
|
|
777
|
+
return tsplus_module_13.fold({
|
|
778
|
+
Empty: () => empty_1(),
|
|
779
|
+
Fail: (e, trace) => fail_1(e, f(trace)),
|
|
780
|
+
Halt: (u, trace) => halt_1(u, f(trace)),
|
|
781
|
+
Interrupt: (id, trace) => interrupt_1(id, f(trace)),
|
|
782
|
+
Then: then_1,
|
|
783
|
+
Both: both_1,
|
|
784
|
+
Stackless: stackless_1
|
|
785
|
+
})(self);
|
|
786
|
+
};
|
|
992
787
|
}
|
|
993
788
|
/**
|
|
994
789
|
* @tsplus static fncts.CauseOps stackless
|
|
995
790
|
* @tsplus static fncts.Cause.StacklessOps __call
|
|
996
791
|
*/
|
|
997
|
-
|
|
998
|
-
|
|
999
792
|
function stackless_1(cause, stackless) {
|
|
1000
793
|
return new Stackless(cause, stackless);
|
|
1001
794
|
}
|
|
@@ -1004,10 +797,8 @@ function stackless_1(cause, stackless) {
|
|
|
1004
797
|
*
|
|
1005
798
|
* @tsplus getter fncts.Cause stripFailures
|
|
1006
799
|
*/
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
800
|
export function stripFailures(self) {
|
|
1010
|
-
return tsplus_module_13.
|
|
801
|
+
return tsplus_module_13.fold({
|
|
1011
802
|
Empty: () => empty_1(),
|
|
1012
803
|
Fail: () => empty_1(),
|
|
1013
804
|
Halt: (u, trace) => halt_1(u, trace),
|
|
@@ -1015,93 +806,65 @@ export function stripFailures(self) {
|
|
|
1015
806
|
Then: (l, r) => then_1(l, r),
|
|
1016
807
|
Both: (l, r) => both_1(l, r),
|
|
1017
808
|
Stackless: (c, stackless) => stackless_1(c, stackless)
|
|
1018
|
-
});
|
|
809
|
+
})(self);
|
|
1019
810
|
}
|
|
1020
811
|
/**
|
|
1021
812
|
* Remove all `Halt` causes that the specified partial function is defined at,
|
|
1022
813
|
* returning `Just` with the remaining causes or `Nothing` if there are no
|
|
1023
814
|
* remaining causes.
|
|
1024
815
|
*
|
|
1025
|
-
* @tsplus
|
|
1026
|
-
*/
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
816
|
+
* @tsplus pipeable fncts.Cause stripSomeDefects
|
|
817
|
+
*/
|
|
818
|
+
export function stripSomeDefects(p) {
|
|
819
|
+
return self => {
|
|
820
|
+
return tsplus_module_13.fold({
|
|
821
|
+
Empty: () => tsplus_module_5.just(empty_1()),
|
|
822
|
+
Fail: (e, trace) => tsplus_module_5.just(fail_1(e, trace)),
|
|
823
|
+
Halt: (t, trace) => p(t) ? tsplus_module_5.nothing() : tsplus_module_5.just(halt_1(t, trace)),
|
|
824
|
+
Interrupt: (fiberId, trace) => tsplus_module_5.just(interrupt_1(fiberId, trace)),
|
|
825
|
+
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(),
|
|
826
|
+
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(),
|
|
827
|
+
Stackless: (causeOption, stackless) => tsplus_module_12.map(cause => stackless_1(cause, stackless))(causeOption)
|
|
828
|
+
})(self);
|
|
829
|
+
};
|
|
1038
830
|
}
|
|
1039
|
-
|
|
1040
831
|
function sequenceCauseEitherEval(self) {
|
|
1041
832
|
switch (self._tag) {
|
|
1042
|
-
case "Empty"
|
|
1043
|
-
/* CauseTag.Empty */
|
|
1044
|
-
:
|
|
833
|
+
case "Empty" /* CauseTag.Empty */:
|
|
1045
834
|
{
|
|
1046
835
|
return tsplus_module_1.now(tsplus_module_10.left(empty_1()));
|
|
1047
836
|
}
|
|
1048
|
-
|
|
1049
|
-
case "Interrupt"
|
|
1050
|
-
/* CauseTag.Interrupt */
|
|
1051
|
-
:
|
|
837
|
+
case "Interrupt" /* CauseTag.Interrupt */:
|
|
1052
838
|
{
|
|
1053
839
|
return tsplus_module_1.now(tsplus_module_10.left(self));
|
|
1054
840
|
}
|
|
1055
|
-
|
|
1056
|
-
case "Fail"
|
|
1057
|
-
/* CauseTag.Fail */
|
|
1058
|
-
:
|
|
841
|
+
case "Fail" /* CauseTag.Fail */:
|
|
1059
842
|
{
|
|
1060
|
-
return tsplus_module_1.now(tsplus_module_17.
|
|
843
|
+
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));
|
|
1061
844
|
}
|
|
1062
|
-
|
|
1063
|
-
case "Halt"
|
|
1064
|
-
/* CauseTag.Halt */
|
|
1065
|
-
:
|
|
845
|
+
case "Halt" /* CauseTag.Halt */:
|
|
1066
846
|
{
|
|
1067
847
|
return tsplus_module_1.now(tsplus_module_10.left(self));
|
|
1068
848
|
}
|
|
1069
|
-
|
|
1070
|
-
case "Then"
|
|
1071
|
-
/* CauseTag.Then */
|
|
1072
|
-
:
|
|
849
|
+
case "Then" /* CauseTag.Then */:
|
|
1073
850
|
{
|
|
1074
|
-
return tsplus_module_2.
|
|
851
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.right)), (lefts, rights) => {
|
|
1075
852
|
void 0;
|
|
1076
853
|
void 0;
|
|
1077
|
-
return lefts._tag === "Left"
|
|
1078
|
-
|
|
1079
|
-
? rights._tag === "Right"
|
|
1080
|
-
/* EitherTag.Right */
|
|
1081
|
-
? tsplus_module_10.right(rights.right) : tsplus_module_10.left(then_1(lefts.left, rights.left)) : tsplus_module_10.right(lefts.right);
|
|
1082
|
-
});
|
|
854
|
+
return lefts._tag === "Left" /* EitherTag.Left */ ? rights._tag === "Right" /* EitherTag.Right */ ? tsplus_module_10.right(rights.right) : tsplus_module_10.left(then_1(lefts.left, rights.left)) : tsplus_module_10.right(lefts.right);
|
|
855
|
+
})(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.left)));
|
|
1083
856
|
}
|
|
1084
|
-
|
|
1085
|
-
case "Both"
|
|
1086
|
-
/* CauseTag.Both */
|
|
1087
|
-
:
|
|
857
|
+
case "Both" /* CauseTag.Both */:
|
|
1088
858
|
{
|
|
1089
|
-
return tsplus_module_2.
|
|
859
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.right)), (lefts, rights) => {
|
|
1090
860
|
void 0;
|
|
1091
861
|
void 0;
|
|
1092
|
-
return lefts._tag === "Left"
|
|
1093
|
-
|
|
1094
|
-
? rights._tag === "Right"
|
|
1095
|
-
/* EitherTag.Right */
|
|
1096
|
-
? tsplus_module_10.right(rights.right) : tsplus_module_10.left(both_1(lefts.left, rights.left)) : tsplus_module_10.right(lefts.right);
|
|
1097
|
-
});
|
|
862
|
+
return lefts._tag === "Left" /* EitherTag.Left */ ? rights._tag === "Right" /* EitherTag.Right */ ? tsplus_module_10.right(rights.right) : tsplus_module_10.left(both_1(lefts.left, rights.left)) : tsplus_module_10.right(lefts.right);
|
|
863
|
+
})(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.left)));
|
|
1098
864
|
}
|
|
1099
|
-
|
|
1100
|
-
case "Stackless"
|
|
1101
|
-
/* CauseTag.Stackless */
|
|
1102
|
-
:
|
|
865
|
+
case "Stackless" /* CauseTag.Stackless */:
|
|
1103
866
|
{
|
|
1104
|
-
return tsplus_module_2.
|
|
867
|
+
return tsplus_module_2.map(_ => tsplus_module_18.mapLeft(cause => stackless_1(cause, self.stackless))(_))(tsplus_module_1.defer(() => sequenceCauseEitherEval(self.cause)));
|
|
1105
868
|
}
|
|
1106
869
|
}
|
|
1107
870
|
}
|
|
@@ -1110,81 +873,46 @@ function sequenceCauseEitherEval(self) {
|
|
|
1110
873
|
*
|
|
1111
874
|
* @tsplus getter fncts.Cause sequenceCauseEither
|
|
1112
875
|
*/
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
876
|
export function sequenceCauseEither(self) {
|
|
1116
877
|
return tsplus_module_4.run(sequenceCauseEitherEval(self));
|
|
1117
878
|
}
|
|
1118
|
-
|
|
1119
879
|
function sequenceCauseMaybeEval(self) {
|
|
1120
880
|
switch (self._tag) {
|
|
1121
|
-
case "Empty"
|
|
1122
|
-
/* CauseTag.Empty */
|
|
1123
|
-
:
|
|
881
|
+
case "Empty" /* CauseTag.Empty */:
|
|
1124
882
|
{
|
|
1125
883
|
return tsplus_module_1.now(tsplus_module_5.just(empty_1()));
|
|
1126
884
|
}
|
|
1127
|
-
|
|
1128
|
-
case "Interrupt"
|
|
1129
|
-
/* CauseTag.Interrupt */
|
|
1130
|
-
:
|
|
885
|
+
case "Interrupt" /* CauseTag.Interrupt */:
|
|
1131
886
|
{
|
|
1132
887
|
return tsplus_module_1.now(tsplus_module_5.just(self));
|
|
1133
888
|
}
|
|
1134
|
-
|
|
1135
|
-
case "Fail"
|
|
1136
|
-
/* CauseTag.Fail */
|
|
1137
|
-
:
|
|
889
|
+
case "Fail" /* CauseTag.Fail */:
|
|
1138
890
|
{
|
|
1139
|
-
return tsplus_module_1.now(tsplus_module_12.
|
|
891
|
+
return tsplus_module_1.now(tsplus_module_12.map(e => fail_1(e, tsplus_module_8.none))(self.value));
|
|
1140
892
|
}
|
|
1141
|
-
|
|
1142
|
-
case "Halt"
|
|
1143
|
-
/* CauseTag.Halt */
|
|
1144
|
-
:
|
|
893
|
+
case "Halt" /* CauseTag.Halt */:
|
|
1145
894
|
{
|
|
1146
895
|
return tsplus_module_1.now(tsplus_module_5.just(self));
|
|
1147
896
|
}
|
|
1148
|
-
|
|
1149
|
-
case "Then"
|
|
1150
|
-
/* CauseTag.Then */
|
|
1151
|
-
:
|
|
897
|
+
case "Then" /* CauseTag.Then */:
|
|
1152
898
|
{
|
|
1153
|
-
return tsplus_module_2.
|
|
899
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.right)), (lefts, rights) => {
|
|
1154
900
|
void 0;
|
|
1155
901
|
void 0;
|
|
1156
|
-
return lefts._tag === "Just"
|
|
1157
|
-
|
|
1158
|
-
? rights._tag === "Just"
|
|
1159
|
-
/* MaybeTag.Just */
|
|
1160
|
-
? tsplus_module_5.just(then_1(lefts.value, rights.value)) : lefts : rights._tag === "Just"
|
|
1161
|
-
/* MaybeTag.Just */
|
|
1162
|
-
? rights : tsplus_module_5.nothing();
|
|
1163
|
-
});
|
|
902
|
+
return lefts._tag === "Just" /* MaybeTag.Just */ ? rights._tag === "Just" /* MaybeTag.Just */ ? tsplus_module_5.just(then_1(lefts.value, rights.value)) : lefts : rights._tag === "Just" /* MaybeTag.Just */ ? rights : tsplus_module_5.nothing();
|
|
903
|
+
})(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.left)));
|
|
1164
904
|
}
|
|
1165
|
-
|
|
1166
|
-
case "Both"
|
|
1167
|
-
/* CauseTag.Both */
|
|
1168
|
-
:
|
|
905
|
+
case "Both" /* CauseTag.Both */:
|
|
1169
906
|
{
|
|
1170
|
-
return tsplus_module_2.
|
|
907
|
+
return tsplus_module_2.zipWith(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.right)), (lefts, rights) => {
|
|
1171
908
|
void 0;
|
|
1172
909
|
void 0;
|
|
1173
|
-
return lefts._tag === "Just"
|
|
1174
|
-
|
|
1175
|
-
? rights._tag === "Just"
|
|
1176
|
-
/* MaybeTag.Just */
|
|
1177
|
-
? tsplus_module_5.just(both_1(lefts.value, rights.value)) : lefts : rights._tag === "Just"
|
|
1178
|
-
/* MaybeTag.Just */
|
|
1179
|
-
? rights : tsplus_module_5.nothing();
|
|
1180
|
-
});
|
|
910
|
+
return lefts._tag === "Just" /* MaybeTag.Just */ ? rights._tag === "Just" /* MaybeTag.Just */ ? tsplus_module_5.just(both_1(lefts.value, rights.value)) : lefts : rights._tag === "Just" /* MaybeTag.Just */ ? rights : tsplus_module_5.nothing();
|
|
911
|
+
})(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.left)));
|
|
1181
912
|
}
|
|
1182
|
-
|
|
1183
|
-
case "Stackless"
|
|
1184
|
-
/* CauseTag.Stackless */
|
|
1185
|
-
:
|
|
913
|
+
case "Stackless" /* CauseTag.Stackless */:
|
|
1186
914
|
{
|
|
1187
|
-
return tsplus_module_2.
|
|
915
|
+
return tsplus_module_2.map(_ => tsplus_module_12.map(cause => stackless_1(cause, self.stackless))(_))(tsplus_module_1.defer(() => sequenceCauseMaybeEval(self.cause)));
|
|
1188
916
|
}
|
|
1189
917
|
}
|
|
1190
918
|
}
|
|
@@ -1193,8 +921,6 @@ function sequenceCauseMaybeEval(self) {
|
|
|
1193
921
|
*
|
|
1194
922
|
* @tsplus getter fncts.Cause sequenceCauseMaybe
|
|
1195
923
|
*/
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
924
|
export function sequenceCauseMaybe(self) {
|
|
1199
925
|
return tsplus_module_4.run(sequenceCauseMaybeEval(self));
|
|
1200
926
|
}
|
|
@@ -1202,11 +928,12 @@ export function sequenceCauseMaybe(self) {
|
|
|
1202
928
|
* Squashes a `Cause` down to a single `Error`, chosen to be the
|
|
1203
929
|
* "most important" `Error`.
|
|
1204
930
|
*
|
|
1205
|
-
* @tsplus
|
|
931
|
+
* @tsplus pipeable fncts.Cause squashWith
|
|
1206
932
|
*/
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
933
|
+
export function squashWith(f) {
|
|
934
|
+
return self => {
|
|
935
|
+
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.map(id => `#${id}`)(tsplus_module_19.flatMap(id => tsplus_module_21.ids(id))(interruptors_1(self)))))) : tsplus_module_5.nothing())(tsplus_module_12.map(f)(failureMaybe_1(self)))));
|
|
936
|
+
};
|
|
1210
937
|
}
|
|
1211
938
|
/**
|
|
1212
939
|
* Constructs a `Cause` from two `Cause`s, representing sequential failures.
|
|
@@ -1216,7 +943,6 @@ export function squashWith_(self, f) {
|
|
|
1216
943
|
* @tsplus static fncts.CauseOps then
|
|
1217
944
|
* @tsplus static fncts.Cause.ThenOps __call
|
|
1218
945
|
*/
|
|
1219
|
-
|
|
1220
946
|
function then_1(left, right) {
|
|
1221
947
|
return tsplus_module_3.isEmpty(left) ? right : tsplus_module_3.isEmpty(right) ? left : new Then(left, right);
|
|
1222
948
|
}
|
|
@@ -1228,19 +954,15 @@ function then_1(left, right) {
|
|
|
1228
954
|
* @tsplus static fncts.CauseOps traced
|
|
1229
955
|
* @tsplus static fncts.Cause.TracedOps __call
|
|
1230
956
|
*/
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
957
|
function traced_1(cause, trace) {
|
|
1234
|
-
return mapTrace_1(
|
|
958
|
+
return mapTrace_1(t => tsplus_module_22.combine(trace)(t))(cause);
|
|
1235
959
|
}
|
|
1236
960
|
/**
|
|
1237
961
|
* Returns a `Cause` that has been stripped of all tracing information.
|
|
1238
962
|
*
|
|
1239
963
|
* @tsplus getter fncts.Cause untraced
|
|
1240
964
|
*/
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
965
|
export function untraced(self) {
|
|
1244
|
-
return mapTrace_1(
|
|
966
|
+
return mapTrace_1(() => tsplus_module_8.none)(self);
|
|
1245
967
|
}
|
|
1246
968
|
//# sourceMappingURL=api.mjs.map
|