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