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