@explorable-viz/fluid 0.12.3 → 0.12.5
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/output-es/Affjax/foreign.js +52 -0
- package/output-es/Affjax/index.js +387 -0
- package/output-es/Affjax.RequestBody/index.js +22 -0
- package/output-es/Affjax.RequestHeader/index.js +58 -0
- package/output-es/Affjax.ResponseFormat/index.js +47 -0
- package/output-es/Affjax.ResponseHeader/index.js +19 -0
- package/output-es/Affjax.StatusCode/index.js +8 -0
- package/output-es/Affjax.Web/foreign.js +8 -0
- package/output-es/Affjax.Web/index.js +14 -0
- package/output-es/App.CodeMirror/foreign.js +69 -0
- package/output-es/App.CodeMirror/index.js +3 -0
- package/output-es/App.Fig/index.js +713 -0
- package/output-es/App.LoadFigure/index.js +131 -0
- package/output-es/App.Util/index.js +773 -0
- package/output-es/App.Util.Selector/index.js +273 -0
- package/output-es/App.View/index.js +310 -0
- package/output-es/App.View.BarChart/index.js +153 -0
- package/output-es/App.View.DocView/index.js +40 -0
- package/output-es/App.View.LineChart/index.js +437 -0
- package/output-es/App.View.MatrixView/foreign.js +182 -0
- package/output-es/App.View.MatrixView/index.js +232 -0
- package/output-es/App.View.MultiView/index.js +30 -0
- package/output-es/App.View.Paragraph/index.js +44 -0
- package/output-es/App.View.ScatterPlot/foreign.js +110 -0
- package/output-es/App.View.ScatterPlot/index.js +122 -0
- package/output-es/App.View.Segment/index.js +92 -0
- package/output-es/App.View.StackedBar/index.js +54 -0
- package/output-es/App.View.TableView/index.js +397 -0
- package/output-es/App.View.Text/index.js +157 -0
- package/output-es/App.View.Util/index.js +222 -0
- package/output-es/App.View.Util.Axes/index.js +79 -0
- package/output-es/App.View.Util.D3/foreign.js +263 -0
- package/output-es/App.View.Util.D3/index.js +678 -0
- package/output-es/App.View.Util.Point/index.js +3 -0
- package/output-es/Benchmark/index.js +63 -0
- package/output-es/Bind/index.js +24 -0
- package/output-es/Control.Alt/index.js +5 -0
- package/output-es/Control.Alternative/index.js +11 -0
- package/output-es/Control.Applicative/index.js +18 -0
- package/output-es/Control.Apply/foreign.js +15 -0
- package/output-es/Control.Apply/index.js +17 -0
- package/output-es/Control.Biapplicative/index.js +5 -0
- package/output-es/Control.Biapply/index.js +11 -0
- package/output-es/Control.Bind/foreign.js +9 -0
- package/output-es/Control.Bind/index.js +21 -0
- package/output-es/Control.Category/index.js +4 -0
- package/output-es/Control.Comonad/index.js +2 -0
- package/output-es/Control.Comonad.Cofree/index.js +255 -0
- package/output-es/Control.Comonad.Cofree.Class/index.js +43 -0
- package/output-es/Control.Comonad.Env/index.js +8 -0
- package/output-es/Control.Comonad.Env.Class/index.js +17 -0
- package/output-es/Control.Comonad.Env.Trans/index.js +113 -0
- package/output-es/Control.Comonad.Store/index.js +5 -0
- package/output-es/Control.Comonad.Store.Class/index.js +56 -0
- package/output-es/Control.Comonad.Store.Trans/index.js +27 -0
- package/output-es/Control.Comonad.Traced/index.js +4 -0
- package/output-es/Control.Comonad.Traced.Class/index.js +16 -0
- package/output-es/Control.Comonad.Traced.Trans/index.js +28 -0
- package/output-es/Control.Comonad.Trans.Class/index.js +3 -0
- package/output-es/Control.Extend/foreign.js +7 -0
- package/output-es/Control.Extend/index.js +12 -0
- package/output-es/Control.Lazy/index.js +10 -0
- package/output-es/Control.Monad/index.js +27 -0
- package/output-es/Control.Monad.Cont/index.js +6 -0
- package/output-es/Control.Monad.Cont.Class/index.js +3 -0
- package/output-es/Control.Monad.Cont.Trans/index.js +122 -0
- package/output-es/Control.Monad.Error.Class/index.js +83 -0
- package/output-es/Control.Monad.Except/index.js +10 -0
- package/output-es/Control.Monad.Except.Trans/index.js +241 -0
- package/output-es/Control.Monad.Free/index.js +423 -0
- package/output-es/Control.Monad.Free.Class/index.js +45 -0
- package/output-es/Control.Monad.Gen/index.js +132 -0
- package/output-es/Control.Monad.Gen.Class/index.js +6 -0
- package/output-es/Control.Monad.Gen.Common/index.js +44 -0
- package/output-es/Control.Monad.Identity.Trans/index.js +88 -0
- package/output-es/Control.Monad.List.Trans/index.js +536 -0
- package/output-es/Control.Monad.Maybe.Trans/index.js +217 -0
- package/output-es/Control.Monad.RWS/index.js +16 -0
- package/output-es/Control.Monad.RWS.Trans/index.js +260 -0
- package/output-es/Control.Monad.Reader/index.js +6 -0
- package/output-es/Control.Monad.Reader.Class/index.js +11 -0
- package/output-es/Control.Monad.Reader.Trans/index.js +320 -0
- package/output-es/Control.Monad.Rec.Class/index.js +265 -0
- package/output-es/Control.Monad.ST/index.js +1 -0
- package/output-es/Control.Monad.ST.Class/index.js +7 -0
- package/output-es/Control.Monad.ST.Global/index.js +3 -0
- package/output-es/Control.Monad.ST.Internal/foreign.js +90 -0
- package/output-es/Control.Monad.ST.Internal/index.js +75 -0
- package/output-es/Control.Monad.ST.Ref/index.js +1 -0
- package/output-es/Control.Monad.ST.Uncurried/foreign.js +229 -0
- package/output-es/Control.Monad.ST.Uncurried/index.js +39 -0
- package/output-es/Control.Monad.State/index.js +8 -0
- package/output-es/Control.Monad.State.Class/index.js +12 -0
- package/output-es/Control.Monad.State.Trans/index.js +209 -0
- package/output-es/Control.Monad.Trampoline/index.js +9 -0
- package/output-es/Control.Monad.Trans.Class/index.js +3 -0
- package/output-es/Control.Monad.Writer/index.js +6 -0
- package/output-es/Control.Monad.Writer.Class/index.js +14 -0
- package/output-es/Control.Monad.Writer.Trans/index.js +256 -0
- package/output-es/Control.MonadPlus/index.js +4 -0
- package/output-es/Control.Parallel/index.js +49 -0
- package/output-es/Control.Parallel.Class/index.js +191 -0
- package/output-es/Control.Plus/index.js +4 -0
- package/output-es/Control.Promise/foreign.js +24 -0
- package/output-es/Control.Promise/index.js +40 -0
- package/output-es/Control.Semigroupoid/index.js +4 -0
- package/output-es/Data.Argonaut.Core/foreign.js +102 -0
- package/output-es/Data.Argonaut.Core/index.js +72 -0
- package/output-es/Data.Argonaut.Decode/index.js +10 -0
- package/output-es/Data.Argonaut.Decode.Class/index.js +173 -0
- package/output-es/Data.Argonaut.Decode.Combinators/index.js +21 -0
- package/output-es/Data.Argonaut.Decode.Decoders/index.js +463 -0
- package/output-es/Data.Argonaut.Decode.Error/index.js +151 -0
- package/output-es/Data.Argonaut.Decode.Parser/index.js +11 -0
- package/output-es/Data.Argonaut.Encode/index.js +3 -0
- package/output-es/Data.Argonaut.Encode.Class/index.js +114 -0
- package/output-es/Data.Argonaut.Encode.Combinators/index.js +15 -0
- package/output-es/Data.Argonaut.Encode.Encoders/index.js +222 -0
- package/output-es/Data.Argonaut.Gen/index.js +68 -0
- package/output-es/Data.Argonaut.Parser/foreign.js +8 -0
- package/output-es/Data.Argonaut.Parser/index.js +5 -0
- package/output-es/Data.Array/foreign.js +298 -0
- package/output-es/Data.Array/index.js +555 -0
- package/output-es/Data.Array.NonEmpty/index.js +317 -0
- package/output-es/Data.Array.NonEmpty.Internal/foreign.js +77 -0
- package/output-es/Data.Array.NonEmpty.Internal/index.js +90 -0
- package/output-es/Data.Array.Partial/index.js +7 -0
- package/output-es/Data.Array.ST/foreign.js +107 -0
- package/output-es/Data.Array.ST/index.js +82 -0
- package/output-es/Data.Array.ST.Iterator/index.js +83 -0
- package/output-es/Data.Array.ST.Partial/foreign.js +7 -0
- package/output-es/Data.Array.ST.Partial/index.js +9 -0
- package/output-es/Data.ArrayBuffer.Types/index.js +1 -0
- package/output-es/Data.Bifoldable/index.js +149 -0
- package/output-es/Data.Bifunctor/index.js +17 -0
- package/output-es/Data.Bifunctor.Join/index.js +21 -0
- package/output-es/Data.Bitraversable/index.js +195 -0
- package/output-es/Data.Boolean/index.js +2 -0
- package/output-es/Data.BooleanAlgebra/index.js +42 -0
- package/output-es/Data.Bounded/foreign.js +8 -0
- package/output-es/Data.Bounded/index.js +76 -0
- package/output-es/Data.Bounded.Generic/index.js +37 -0
- package/output-es/Data.CatList/index.js +326 -0
- package/output-es/Data.CatQueue/index.js +364 -0
- package/output-es/Data.Char/index.js +5 -0
- package/output-es/Data.Char.Gen/index.js +21 -0
- package/output-es/Data.CodePoint.Unicode/index.js +382 -0
- package/output-es/Data.CodePoint.Unicode.Internal/index.js +5476 -0
- package/output-es/Data.CodePoint.Unicode.Internal.Casing/index.js +1636 -0
- package/output-es/Data.CommutativeRing/index.js +49 -0
- package/output-es/Data.Compactable/index.js +228 -0
- package/output-es/Data.Comparison/index.js +22 -0
- package/output-es/Data.Const/index.js +56 -0
- package/output-es/Data.Coyoneda/index.js +212 -0
- package/output-es/Data.Date/foreign.js +22 -0
- package/output-es/Data.Date/index.js +370 -0
- package/output-es/Data.Date.Component/index.js +451 -0
- package/output-es/Data.Date.Component.Gen/index.js +11 -0
- package/output-es/Data.Date.Gen/index.js +25 -0
- package/output-es/Data.DateTime/foreign.js +33 -0
- package/output-es/Data.DateTime/index.js +131 -0
- package/output-es/Data.DateTime.Gen/index.js +8 -0
- package/output-es/Data.DateTime.Instant/foreign.js +18 -0
- package/output-es/Data.DateTime.Instant/index.js +86 -0
- package/output-es/Data.Decidable/index.js +70 -0
- package/output-es/Data.Decide/index.js +64 -0
- package/output-es/Data.Distributive/index.js +55 -0
- package/output-es/Data.Divide/index.js +47 -0
- package/output-es/Data.Divisible/index.js +17 -0
- package/output-es/Data.DivisionRing/index.js +6 -0
- package/output-es/Data.Either/index.js +242 -0
- package/output-es/Data.Either.Inject/index.js +25 -0
- package/output-es/Data.Either.Nested/index.js +450 -0
- package/output-es/Data.Enum/foreign.js +7 -0
- package/output-es/Data.Enum/index.js +441 -0
- package/output-es/Data.Enum.Gen/index.js +19 -0
- package/output-es/Data.Enum.Generic/index.js +211 -0
- package/output-es/Data.Eq/foreign.js +23 -0
- package/output-es/Data.Eq/index.js +33 -0
- package/output-es/Data.Eq.Generic/index.js +16 -0
- package/output-es/Data.Equivalence/index.js +8 -0
- package/output-es/Data.EuclideanRing/foreign.js +26 -0
- package/output-es/Data.EuclideanRing/index.js +25 -0
- package/output-es/Data.Exists/index.js +4 -0
- package/output-es/Data.Field/index.js +2 -0
- package/output-es/Data.Filterable/index.js +317 -0
- package/output-es/Data.Foldable/foreign.js +25 -0
- package/output-es/Data.Foldable/index.js +394 -0
- package/output-es/Data.FoldableWithIndex/index.js +431 -0
- package/output-es/Data.FormURLEncoded/index.js +110 -0
- package/output-es/Data.Function/index.js +23 -0
- package/output-es/Data.Function.Memoize/index.js +242 -0
- package/output-es/Data.Function.Uncurried/foreign.js +218 -0
- package/output-es/Data.Function.Uncurried/index.js +5 -0
- package/output-es/Data.Functor/foreign.js +10 -0
- package/output-es/Data.Functor/index.js +14 -0
- package/output-es/Data.Functor.App/index.js +87 -0
- package/output-es/Data.Functor.Clown/index.js +24 -0
- package/output-es/Data.Functor.Compose/index.js +131 -0
- package/output-es/Data.Functor.Contravariant/index.js +7 -0
- package/output-es/Data.Functor.Coproduct/index.js +171 -0
- package/output-es/Data.Functor.Coproduct.Inject/index.js +25 -0
- package/output-es/Data.Functor.Coproduct.Nested/index.js +433 -0
- package/output-es/Data.Functor.Costar/index.js +82 -0
- package/output-es/Data.Functor.Flip/index.js +31 -0
- package/output-es/Data.Functor.Invariant/index.js +14 -0
- package/output-es/Data.Functor.Joker/index.js +88 -0
- package/output-es/Data.Functor.Product/index.js +127 -0
- package/output-es/Data.Functor.Product.Nested/index.js +46 -0
- package/output-es/Data.Functor.Product2/index.js +46 -0
- package/output-es/Data.FunctorWithIndex/foreign.js +10 -0
- package/output-es/Data.FunctorWithIndex/index.js +147 -0
- package/output-es/Data.Generic.Rep/index.js +31 -0
- package/output-es/Data.Graph/index.js +370 -0
- package/output-es/Data.HTTP.Method/index.js +223 -0
- package/output-es/Data.HeytingAlgebra/foreign.js +15 -0
- package/output-es/Data.HeytingAlgebra/index.js +104 -0
- package/output-es/Data.HeytingAlgebra.Generic/index.js +76 -0
- package/output-es/Data.Identity/index.js +54 -0
- package/output-es/Data.Int/foreign.js +65 -0
- package/output-es/Data.Int/index.js +122 -0
- package/output-es/Data.Int.Bits/foreign.js +48 -0
- package/output-es/Data.Int.Bits/index.js +4 -0
- package/output-es/Data.Interval/index.js +331 -0
- package/output-es/Data.Interval.Duration/index.js +124 -0
- package/output-es/Data.Interval.Duration.Iso/index.js +423 -0
- package/output-es/Data.JSDate/foreign.js +83 -0
- package/output-es/Data.JSDate/index.js +123 -0
- package/output-es/Data.Lazy/foreign.js +14 -0
- package/output-es/Data.Lazy/index.js +143 -0
- package/output-es/Data.List/index.js +1505 -0
- package/output-es/Data.List.Internal/index.js +155 -0
- package/output-es/Data.List.Lazy/index.js +658 -0
- package/output-es/Data.List.Lazy.NonEmpty/index.js +77 -0
- package/output-es/Data.List.Lazy.Types/index.js +511 -0
- package/output-es/Data.List.NonEmpty/index.js +540 -0
- package/output-es/Data.List.Partial/index.js +37 -0
- package/output-es/Data.List.Types/index.js +841 -0
- package/output-es/Data.List.ZipList/index.js +43 -0
- package/output-es/Data.Map/index.js +80 -0
- package/output-es/Data.Map.Gen/index.js +15 -0
- package/output-es/Data.Map.Internal/index.js +1216 -0
- package/output-es/Data.Maybe/index.js +253 -0
- package/output-es/Data.Maybe.First/index.js +85 -0
- package/output-es/Data.Maybe.Last/index.js +86 -0
- package/output-es/Data.MediaType/index.js +8 -0
- package/output-es/Data.MediaType.Common/index.js +30 -0
- package/output-es/Data.Monoid/index.js +66 -0
- package/output-es/Data.Monoid.Additive/index.js +33 -0
- package/output-es/Data.Monoid.Alternate/index.js +46 -0
- package/output-es/Data.Monoid.Conj/index.js +21 -0
- package/output-es/Data.Monoid.Disj/index.js +21 -0
- package/output-es/Data.Monoid.Dual/index.js +19 -0
- package/output-es/Data.Monoid.Endo/index.js +12 -0
- package/output-es/Data.Monoid.Generic/index.js +11 -0
- package/output-es/Data.Monoid.Multiplicative/index.js +33 -0
- package/output-es/Data.NaturalTransformation/index.js +1 -0
- package/output-es/Data.Newtype/index.js +51 -0
- package/output-es/Data.NonEmpty/index.js +217 -0
- package/output-es/Data.Nullable/foreign.js +12 -0
- package/output-es/Data.Nullable/index.js +53 -0
- package/output-es/Data.Number/foreign.js +80 -0
- package/output-es/Data.Number/index.js +15 -0
- package/output-es/Data.Number.Approximate/index.js +13 -0
- package/output-es/Data.Number.Format/foreign.js +12 -0
- package/output-es/Data.Number.Format/index.js +53 -0
- package/output-es/Data.Op/index.js +13 -0
- package/output-es/Data.Ord/foreign.js +43 -0
- package/output-es/Data.Ord/index.js +161 -0
- package/output-es/Data.Ord.Down/index.js +35 -0
- package/output-es/Data.Ord.Generic/index.js +34 -0
- package/output-es/Data.Ord.Max/index.js +34 -0
- package/output-es/Data.Ord.Min/index.js +34 -0
- package/output-es/Data.Ordering/index.js +35 -0
- package/output-es/Data.Posix/index.js +19 -0
- package/output-es/Data.Posix.Signal/index.js +405 -0
- package/output-es/Data.Predicate/index.js +14 -0
- package/output-es/Data.Profunctor/index.js +13 -0
- package/output-es/Data.Profunctor.Choice/index.js +32 -0
- package/output-es/Data.Profunctor.Closed/index.js +5 -0
- package/output-es/Data.Profunctor.Cochoice/index.js +3 -0
- package/output-es/Data.Profunctor.Costrong/index.js +3 -0
- package/output-es/Data.Profunctor.Join/index.js +13 -0
- package/output-es/Data.Profunctor.Split/index.js +11 -0
- package/output-es/Data.Profunctor.Star/index.js +250 -0
- package/output-es/Data.Profunctor.Strong/index.js +19 -0
- package/output-es/Data.Reflectable/foreign.js +5 -0
- package/output-es/Data.Reflectable/index.js +10 -0
- package/output-es/Data.Ring/foreign.js +12 -0
- package/output-es/Data.Ring/index.js +50 -0
- package/output-es/Data.Ring.Generic/index.js +10 -0
- package/output-es/Data.Semigroup/foreign.js +13 -0
- package/output-es/Data.Semigroup/index.js +25 -0
- package/output-es/Data.Semigroup.First/index.js +14 -0
- package/output-es/Data.Semigroup.Foldable/index.js +143 -0
- package/output-es/Data.Semigroup.Generic/index.js +11 -0
- package/output-es/Data.Semigroup.Last/index.js +14 -0
- package/output-es/Data.Semigroup.Traversable/index.js +39 -0
- package/output-es/Data.Semiring/foreign.js +25 -0
- package/output-es/Data.Semiring/index.js +66 -0
- package/output-es/Data.Semiring.Generic/index.js +52 -0
- package/output-es/Data.Set/index.js +310 -0
- package/output-es/Data.Set.NonEmpty/index.js +198 -0
- package/output-es/Data.Show/foreign.js +59 -0
- package/output-es/Data.Show/index.js +56 -0
- package/output-es/Data.Show.Generic/foreign.js +5 -0
- package/output-es/Data.Show.Generic/index.js +43 -0
- package/output-es/Data.String/index.js +1 -0
- package/output-es/Data.String.CaseInsensitive/index.js +12 -0
- package/output-es/Data.String.CodePoints/foreign.js +107 -0
- package/output-es/Data.String.CodePoints/index.js +201 -0
- package/output-es/Data.String.CodeUnits/foreign.js +116 -0
- package/output-es/Data.String.CodeUnits/index.js +55 -0
- package/output-es/Data.String.Common/foreign.js +52 -0
- package/output-es/Data.String.Common/index.js +6 -0
- package/output-es/Data.String.Gen/index.js +26 -0
- package/output-es/Data.String.NonEmpty/index.js +1 -0
- package/output-es/Data.String.NonEmpty.CaseInsensitive/index.js +12 -0
- package/output-es/Data.String.NonEmpty.CodePoints/index.js +89 -0
- package/output-es/Data.String.NonEmpty.CodeUnits/index.js +98 -0
- package/output-es/Data.String.NonEmpty.Internal/index.js +119 -0
- package/output-es/Data.String.Pattern/index.js +13 -0
- package/output-es/Data.String.Regex/foreign.js +103 -0
- package/output-es/Data.String.Regex/index.js +28 -0
- package/output-es/Data.String.Regex.Flags/index.js +44 -0
- package/output-es/Data.String.Regex.Unsafe/index.js +10 -0
- package/output-es/Data.String.Unicode/index.js +18 -0
- package/output-es/Data.String.Unsafe/foreign.js +11 -0
- package/output-es/Data.String.Unsafe/index.js +4 -0
- package/output-es/Data.Symbol/foreign.js +6 -0
- package/output-es/Data.Symbol/index.js +6 -0
- package/output-es/Data.Time/index.js +119 -0
- package/output-es/Data.Time.Component/index.js +138 -0
- package/output-es/Data.Time.Component.Gen/index.js +7 -0
- package/output-es/Data.Time.Duration/index.js +95 -0
- package/output-es/Data.Time.Duration.Gen/index.js +7 -0
- package/output-es/Data.Time.Gen/index.js +8 -0
- package/output-es/Data.Traversable/foreign.js +52 -0
- package/output-es/Data.Traversable/index.js +303 -0
- package/output-es/Data.Traversable.Accum/index.js +1 -0
- package/output-es/Data.Traversable.Accum.Internal/index.js +35 -0
- package/output-es/Data.TraversableWithIndex/index.js +280 -0
- package/output-es/Data.Tuple/index.js +194 -0
- package/output-es/Data.Tuple.Nested/index.js +290 -0
- package/output-es/Data.Unfoldable/foreign.js +21 -0
- package/output-es/Data.Unfoldable/index.js +45 -0
- package/output-es/Data.Unfoldable1/foreign.js +21 -0
- package/output-es/Data.Unfoldable1/index.js +39 -0
- package/output-es/Data.Unit/foreign.js +1 -0
- package/output-es/Data.Unit/index.js +3 -0
- package/output-es/Data.Void/index.js +12 -0
- package/output-es/Data.Witherable/index.js +371 -0
- package/output-es/Data.Yoneda/index.js +85 -0
- package/output-es/DataType/index.js +276 -0
- package/output-es/Debug/foreign.js +57 -0
- package/output-es/Debug/index.js +13 -0
- package/output-es/Desug/index.js +17 -0
- package/output-es/Desugarable/index.js +3 -0
- package/output-es/Dict/index.js +118 -0
- package/output-es/Effect/foreign.js +51 -0
- package/output-es/Effect/index.js +49 -0
- package/output-es/Effect.Aff/foreign.js +1154 -0
- package/output-es/Effect.Aff/index.js +268 -0
- package/output-es/Effect.Aff.Class/index.js +114 -0
- package/output-es/Effect.Aff.Compat/index.js +14 -0
- package/output-es/Effect.Class/index.js +4 -0
- package/output-es/Effect.Class.Console/index.js +25 -0
- package/output-es/Effect.Console/foreign.js +67 -0
- package/output-es/Effect.Console/index.js +17 -0
- package/output-es/Effect.Exception/foreign.js +45 -0
- package/output-es/Effect.Exception/index.js +14 -0
- package/output-es/Effect.Exception.Unsafe/index.js +4 -0
- package/output-es/Effect.Now/foreign.js +8 -0
- package/output-es/Effect.Now/index.js +16 -0
- package/output-es/Effect.Random/foreign.js +1 -0
- package/output-es/Effect.Random/index.js +17 -0
- package/output-es/Effect.Ref/foreign.js +37 -0
- package/output-es/Effect.Ref/index.js +34 -0
- package/output-es/Effect.Uncurried/foreign.js +229 -0
- package/output-es/Effect.Uncurried/index.js +386 -0
- package/output-es/Effect.Unsafe/foreign.js +3 -0
- package/output-es/Effect.Unsafe/index.js +3 -0
- package/output-es/Eval/index.js +951 -0
- package/output-es/ExitCodes/index.js +461 -0
- package/output-es/Expr/index.js +1732 -0
- package/output-es/File/index.js +125 -0
- package/output-es/Fluid/index.js +229 -0
- package/output-es/Foreign/foreign.js +19 -0
- package/output-es/Foreign/index.js +171 -0
- package/output-es/Foreign.Index/foreign.js +11 -0
- package/output-es/Foreign.Index/index.js +80 -0
- package/output-es/Foreign.Keys/foreign.js +9 -0
- package/output-es/Foreign.Keys/index.js +28 -0
- package/output-es/Foreign.Object/foreign.js +116 -0
- package/output-es/Foreign.Object/index.js +304 -0
- package/output-es/Foreign.Object.Gen/index.js +13 -0
- package/output-es/Foreign.Object.ST/foreign.js +37 -0
- package/output-es/Foreign.Object.ST/index.js +9 -0
- package/output-es/Foreign.Object.ST.Unsafe/foreign.js +5 -0
- package/output-es/Foreign.Object.ST.Unsafe/index.js +3 -0
- package/output-es/Foreign.Object.Unsafe/foreign.js +5 -0
- package/output-es/Foreign.Object.Unsafe/index.js +3 -0
- package/output-es/GaloisConnection/index.js +72 -0
- package/output-es/Graph/index.js +279 -0
- package/output-es/Graph.GraphImpl/index.js +296 -0
- package/output-es/Graph.Slice/index.js +125 -0
- package/output-es/Graph.WithGraph/index.js +190 -0
- package/output-es/JSURI/foreign.js +61 -0
- package/output-es/JSURI/index.js +10 -0
- package/output-es/Lattice/index.js +397 -0
- package/output-es/Link/index.js +84 -0
- package/output-es/Module/index.js +317 -0
- package/output-es/Module.Node/index.js +95 -0
- package/output-es/Module.Web/index.js +79 -0
- package/output-es/ModuleGraph/index.js +1 -0
- package/output-es/Node.Buffer/foreign.js +33 -0
- package/output-es/Node.Buffer/index.js +191 -0
- package/output-es/Node.Buffer.Class/index.js +48 -0
- package/output-es/Node.Buffer.Constants/foreign.js +5 -0
- package/output-es/Node.Buffer.Constants/index.js +3 -0
- package/output-es/Node.Buffer.Immutable/foreign.js +45 -0
- package/output-es/Node.Buffer.Immutable/index.js +121 -0
- package/output-es/Node.Buffer.ST/index.js +98 -0
- package/output-es/Node.Buffer.Types/index.js +36 -0
- package/output-es/Node.Encoding/foreign.js +3 -0
- package/output-es/Node.Encoding/index.js +55 -0
- package/output-es/Node.EventEmitter/foreign.js +24 -0
- package/output-es/Node.EventEmitter/index.js +142 -0
- package/output-es/Node.EventEmitter.UtilTypes/index.js +1 -0
- package/output-es/Node.FS/index.js +27 -0
- package/output-es/Node.FS.Aff/index.js +132 -0
- package/output-es/Node.FS.Async/foreign.js +28 -0
- package/output-es/Node.FS.Async/index.js +241 -0
- package/output-es/Node.FS.Constants/foreign.js +17 -0
- package/output-es/Node.FS.Constants/index.js +103 -0
- package/output-es/Node.FS.Perms/index.js +125 -0
- package/output-es/Node.FS.Stats/foreign.js +27 -0
- package/output-es/Node.FS.Stats/index.js +102 -0
- package/output-es/Node.FS.Stream/foreign.js +11 -0
- package/output-es/Node.FS.Stream/index.js +20 -0
- package/output-es/Node.FS.Sync/foreign.js +30 -0
- package/output-es/Node.FS.Sync/index.js +258 -0
- package/output-es/Node.Path/foreign.js +30 -0
- package/output-es/Node.Path/index.js +3 -0
- package/output-es/Node.Platform/index.js +104 -0
- package/output-es/Node.Process/foreign.js +65 -0
- package/output-es/Node.Process/index.js +180 -0
- package/output-es/Node.Stream/foreign.js +97 -0
- package/output-es/Node.Stream/index.js +310 -0
- package/output-es/Node.Stream.Aff/index.js +445 -0
- package/output-es/Node.Symbol/foreign.js +3 -0
- package/output-es/Node.Symbol/index.js +12 -0
- package/output-es/Options.Applicative/index.js +1 -0
- package/output-es/Options.Applicative.BashCompletion/index.js +417 -0
- package/output-es/Options.Applicative.Builder/index.js +505 -0
- package/output-es/Options.Applicative.Builder.Completer/foreign.js +8 -0
- package/output-es/Options.Applicative.Builder.Completer/index.js +133 -0
- package/output-es/Options.Applicative.Builder.Internal/index.js +122 -0
- package/output-es/Options.Applicative.Common/index.js +497 -0
- package/output-es/Options.Applicative.Extra/index.js +273 -0
- package/output-es/Options.Applicative.Help/index.js +3 -0
- package/output-es/Options.Applicative.Help.Chunk/index.js +229 -0
- package/output-es/Options.Applicative.Help.Core/index.js +450 -0
- package/output-es/Options.Applicative.Help.Levenshtein/index.js +22 -0
- package/output-es/Options.Applicative.Help.Pretty/index.js +1 -0
- package/output-es/Options.Applicative.Help.Types/index.js +112 -0
- package/output-es/Options.Applicative.Internal/index.js +447 -0
- package/output-es/Options.Applicative.Internal.Utils/index.js +36 -0
- package/output-es/Options.Applicative.Types/index.js +979 -0
- package/output-es/PSCI.Support/index.js +15 -0
- package/output-es/Parse/index.js +2003 -0
- package/output-es/Parse.Number/index.js +390 -0
- package/output-es/Parse.Parser/index.js +428 -0
- package/output-es/Parsing/index.js +342 -0
- package/output-es/Parsing.Combinators/index.js +901 -0
- package/output-es/Parsing.Combinators.Array/index.js +131 -0
- package/output-es/Parsing.Expr/index.js +317 -0
- package/output-es/Parsing.Indent/index.js +492 -0
- package/output-es/Parsing.Language/index.js +224 -0
- package/output-es/Parsing.String/index.js +378 -0
- package/output-es/Parsing.String.Basic/index.js +236 -0
- package/output-es/Parsing.String.Replace/index.js +342 -0
- package/output-es/Parsing.Token/index.js +1980 -0
- package/output-es/Partial/foreign.js +5 -0
- package/output-es/Partial/index.js +6 -0
- package/output-es/Partial.Unsafe/foreign.js +5 -0
- package/output-es/Partial.Unsafe/index.js +8 -0
- package/output-es/Prelude/index.js +13 -0
- package/output-es/Pretty/index.js +1334 -0
- package/output-es/Pretty.Doc/index.js +139 -0
- package/output-es/Pretty.Util/index.js +90 -0
- package/output-es/Primitive/index.js +304 -0
- package/output-es/Primitive.Defs/index.js +872 -0
- package/output-es/Primitive.Parse/index.js +93 -0
- package/output-es/Random.LCG/index.js +35 -0
- package/output-es/Record/index.js +23 -0
- package/output-es/Record.Builder/foreign.js +44 -0
- package/output-es/Record.Builder/index.js +20 -0
- package/output-es/Record.Unsafe/foreign.js +38 -0
- package/output-es/Record.Unsafe/index.js +9 -0
- package/output-es/Record.Unsafe.Union/foreign.js +14 -0
- package/output-es/Record.Unsafe.Union/index.js +4 -0
- package/output-es/SExpr/index.js +3972 -0
- package/output-es/Safe.Coerce/index.js +3 -0
- package/output-es/Test.Assert/foreign.js +21 -0
- package/output-es/Test.Assert/index.js +37 -0
- package/output-es/Test.Benchmark.Util/foreign.js +3 -0
- package/output-es/Test.Benchmark.Util/index.js +273 -0
- package/output-es/Test.QuickCheck/index.js +297 -0
- package/output-es/Test.QuickCheck.Arbitrary/index.js +482 -0
- package/output-es/Test.QuickCheck.Gen/foreign.js +10 -0
- package/output-es/Test.QuickCheck.Gen/index.js +270 -0
- package/output-es/Test.Specs.Bwd/index.js +220 -0
- package/output-es/Test.Specs.Comments/index.js +25 -0
- package/output-es/Test.Specs.Desugar/index.js +17 -0
- package/output-es/Test.Specs.Graphics/index.js +7 -0
- package/output-es/Test.Specs.LinkedInputs/index.js +52 -0
- package/output-es/Test.Specs.LinkedOutputs/index.js +61 -0
- package/output-es/Test.Specs.Misc/index.js +35 -0
- package/output-es/Test.Specs.Paragraph/index.js +5 -0
- package/output-es/Test.Test/index.js +106 -0
- package/output-es/Test.Util/index.js +239 -0
- package/output-es/Test.Util.Debug/index.js +6 -0
- package/output-es/Test.Util.Debug.Defaults/index.js +16 -0
- package/output-es/Test.Util.Mocha/foreign.js +55 -0
- package/output-es/Test.Util.Mocha/index.js +21 -0
- package/output-es/Test.Util.Puppeteer/index.js +83 -0
- package/output-es/Test.Util.Suite/index.js +197 -0
- package/output-es/Text.PrettyPrint.Leijen/index.js +700 -0
- package/output-es/Toppokki/foreign.js +170 -0
- package/output-es/Toppokki/index.js +122 -0
- package/output-es/Type.Data.Boolean/index.js +21 -0
- package/output-es/Type.Data.Ordering/index.js +56 -0
- package/output-es/Type.Data.Symbol/index.js +7 -0
- package/output-es/Type.Equality/index.js +5 -0
- package/output-es/Type.Function/index.js +1 -0
- package/output-es/Type.Prelude/index.js +1 -0
- package/output-es/Type.Proxy/index.js +51 -0
- package/output-es/Type.Row/index.js +1 -0
- package/output-es/Type.Row.Homogeneous/index.js +4 -0
- package/output-es/Type.RowList/index.js +10 -0
- package/output-es/Unsafe.Coerce/foreign.js +5 -0
- package/output-es/Unsafe.Coerce/index.js +3 -0
- package/output-es/Util/index.js +340 -0
- package/output-es/Util.Map/foreign.js +13 -0
- package/output-es/Util.Map/index.js +129 -0
- package/output-es/Util.Pair/index.js +90 -0
- package/output-es/Util.Set/index.js +75 -0
- package/output-es/Val/index.js +1771 -0
- package/output-es/Web.DOM/index.js +1 -0
- package/output-es/Web.DOM.CharacterData/foreign.js +61 -0
- package/output-es/Web.DOM.CharacterData/index.js +13 -0
- package/output-es/Web.DOM.ChildNode/foreign.js +5 -0
- package/output-es/Web.DOM.ChildNode/index.js +3 -0
- package/output-es/Web.DOM.Comment/index.js +13 -0
- package/output-es/Web.DOM.DOMTokenList/foreign.js +49 -0
- package/output-es/Web.DOM.DOMTokenList/index.js +15 -0
- package/output-es/Web.DOM.Document/foreign.js +112 -0
- package/output-es/Web.DOM.Document/index.js +75 -0
- package/output-es/Web.DOM.DocumentFragment/index.js +13 -0
- package/output-es/Web.DOM.DocumentType/foreign.js +9 -0
- package/output-es/Web.DOM.DocumentType/index.js +11 -0
- package/output-es/Web.DOM.Element/foreign.js +210 -0
- package/output-es/Web.DOM.Element/index.js +101 -0
- package/output-es/Web.DOM.HTMLCollection/foreign.js +27 -0
- package/output-es/Web.DOM.HTMLCollection/index.js +25 -0
- package/output-es/Web.DOM.Internal.Types/index.js +1 -0
- package/output-es/Web.DOM.MutationObserver/foreign.js +29 -0
- package/output-es/Web.DOM.MutationObserver/index.js +4 -0
- package/output-es/Web.DOM.MutationRecord/foreign.js +53 -0
- package/output-es/Web.DOM.MutationRecord/index.js +66 -0
- package/output-es/Web.DOM.Node/foreign.js +153 -0
- package/output-es/Web.DOM.Node/index.js +147 -0
- package/output-es/Web.DOM.NodeList/foreign.js +19 -0
- package/output-es/Web.DOM.NodeList/index.js +15 -0
- package/output-es/Web.DOM.NodeType/index.js +199 -0
- package/output-es/Web.DOM.NonDocumentTypeChildNode/foreign.js +11 -0
- package/output-es/Web.DOM.NonDocumentTypeChildNode/index.js +19 -0
- package/output-es/Web.DOM.NonElementParentNode/foreign.js +7 -0
- package/output-es/Web.DOM.NonElementParentNode/index.js +15 -0
- package/output-es/Web.DOM.ParentNode/foreign.js +28 -0
- package/output-es/Web.DOM.ParentNode/index.js +35 -0
- package/output-es/Web.DOM.ProcessingInstruction/foreign.js +5 -0
- package/output-es/Web.DOM.ProcessingInstruction/index.js +15 -0
- package/output-es/Web.DOM.ShadowRoot/foreign.js +9 -0
- package/output-es/Web.DOM.ShadowRoot/index.js +23 -0
- package/output-es/Web.DOM.Text/foreign.js +13 -0
- package/output-es/Web.DOM.Text/index.js +15 -0
- package/output-es/Web.Event.CustomEvent/foreign.js +18 -0
- package/output-es/Web.Event.CustomEvent/index.js +20 -0
- package/output-es/Web.Event.Event/foreign.js +51 -0
- package/output-es/Web.Event.Event/index.js +23 -0
- package/output-es/Web.Event.EventPhase/index.js +99 -0
- package/output-es/Web.Event.EventTarget/foreign.js +51 -0
- package/output-es/Web.Event.EventTarget/index.js +3 -0
- package/output-es/Web.Event.Internal.Types/index.js +1 -0
- package/output-es/Web.File.Blob/foreign.js +19 -0
- package/output-es/Web.File.Blob/index.js +18 -0
- package/output-es/Web.File.File/foreign.js +2 -0
- package/output-es/Web.File.File/index.js +13 -0
- package/output-es/Web.File.FileList/foreign.js +7 -0
- package/output-es/Web.File.FileList/index.js +16 -0
- package/output-es/Web.File.FileReader/foreign.js +51 -0
- package/output-es/Web.File.FileReader/index.js +19 -0
- package/output-es/Web.File.FileReader.ReadyState/index.js +94 -0
- package/output-es/Web.File.Url/foreign.js +11 -0
- package/output-es/Web.File.Url/index.js +3 -0
- package/output-es/Web.HTML/foreign.js +4 -0
- package/output-es/Web.HTML/index.js +3 -0
- package/output-es/Web.HTML.Common/index.js +15 -0
- package/output-es/Web.HTML.Event.BeforeUnloadEvent/foreign.js +13 -0
- package/output-es/Web.HTML.Event.BeforeUnloadEvent/index.js +7 -0
- package/output-es/Web.HTML.Event.BeforeUnloadEvent.EventTypes/index.js +2 -0
- package/output-es/Web.HTML.Event.DataTransfer/foreign.js +55 -0
- package/output-es/Web.HTML.Event.DataTransfer/index.js +63 -0
- package/output-es/Web.HTML.Event.DataTransfer.DataTransferItem/foreign.js +23 -0
- package/output-es/Web.HTML.Event.DataTransfer.DataTransferItem/index.js +41 -0
- package/output-es/Web.HTML.Event.DragEvent/foreign.js +3 -0
- package/output-es/Web.HTML.Event.DragEvent/index.js +7 -0
- package/output-es/Web.HTML.Event.DragEvent.EventTypes/index.js +9 -0
- package/output-es/Web.HTML.Event.ErrorEvent/foreign.js +15 -0
- package/output-es/Web.HTML.Event.ErrorEvent/index.js +7 -0
- package/output-es/Web.HTML.Event.EventTypes/index.js +68 -0
- package/output-es/Web.HTML.Event.HashChangeEvent/foreign.js +7 -0
- package/output-es/Web.HTML.Event.HashChangeEvent/index.js +7 -0
- package/output-es/Web.HTML.Event.HashChangeEvent.EventTypes/index.js +2 -0
- package/output-es/Web.HTML.Event.PageTransitionEvent/foreign.js +3 -0
- package/output-es/Web.HTML.Event.PageTransitionEvent/index.js +7 -0
- package/output-es/Web.HTML.Event.PageTransitionEvent.EventTypes/index.js +3 -0
- package/output-es/Web.HTML.Event.PopStateEvent/foreign.js +3 -0
- package/output-es/Web.HTML.Event.PopStateEvent/index.js +7 -0
- package/output-es/Web.HTML.Event.PopStateEvent.EventTypes/index.js +2 -0
- package/output-es/Web.HTML.Event.TrackEvent/index.js +5 -0
- package/output-es/Web.HTML.Event.TrackEvent.EventTypes/index.js +3 -0
- package/output-es/Web.HTML.HTMLAnchorElement/foreign.js +117 -0
- package/output-es/Web.HTML.HTMLAnchorElement/index.js +36 -0
- package/output-es/Web.HTML.HTMLAreaElement/foreign.js +133 -0
- package/output-es/Web.HTML.HTMLAreaElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLAudioElement/foreign.js +9 -0
- package/output-es/Web.HTML.HTMLAudioElement/index.js +40 -0
- package/output-es/Web.HTML.HTMLBRElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLBaseElement/foreign.js +29 -0
- package/output-es/Web.HTML.HTMLBaseElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLBodyElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLButtonElement/foreign.js +223 -0
- package/output-es/Web.HTML.HTMLButtonElement/index.js +73 -0
- package/output-es/Web.HTML.HTMLCanvasElement/foreign.js +29 -0
- package/output-es/Web.HTML.HTMLCanvasElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLDListElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLDataElement/foreign.js +13 -0
- package/output-es/Web.HTML.HTMLDataElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLDataListElement/foreign.js +5 -0
- package/output-es/Web.HTML.HTMLDataListElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLDivElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLDocument/foreign.js +39 -0
- package/output-es/Web.HTML.HTMLDocument/index.js +76 -0
- package/output-es/Web.HTML.HTMLDocument.ReadyState/index.js +52 -0
- package/output-es/Web.HTML.HTMLDocument.VisibilityState/index.js +42 -0
- package/output-es/Web.HTML.HTMLElement/foreign.js +194 -0
- package/output-es/Web.HTML.HTMLElement/index.js +66 -0
- package/output-es/Web.HTML.HTMLEmbedElement/foreign.js +61 -0
- package/output-es/Web.HTML.HTMLEmbedElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLFieldSetElement/foreign.js +103 -0
- package/output-es/Web.HTML.HTMLFieldSetElement/index.js +44 -0
- package/output-es/Web.HTML.HTMLFormElement/foreign.js +181 -0
- package/output-es/Web.HTML.HTMLFormElement/index.js +58 -0
- package/output-es/Web.HTML.HTMLHRElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLHeadElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLHeadingElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLHtmlElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLHyperlinkElementUtils/foreign.js +165 -0
- package/output-es/Web.HTML.HTMLHyperlinkElementUtils/index.js +26 -0
- package/output-es/Web.HTML.HTMLIFrameElement/foreign.js +91 -0
- package/output-es/Web.HTML.HTMLIFrameElement/index.js +52 -0
- package/output-es/Web.HTML.HTMLImageElement/foreign.js +215 -0
- package/output-es/Web.HTML.HTMLImageElement/index.js +140 -0
- package/output-es/Web.HTML.HTMLImageElement.CORSMode/index.js +43 -0
- package/output-es/Web.HTML.HTMLImageElement.DecodingHint/index.js +53 -0
- package/output-es/Web.HTML.HTMLImageElement.Laziness/index.js +43 -0
- package/output-es/Web.HTML.HTMLInputElement/foreign.js +727 -0
- package/output-es/Web.HTML.HTMLInputElement/index.js +171 -0
- package/output-es/Web.HTML.HTMLKeygenElement/foreign.js +151 -0
- package/output-es/Web.HTML.HTMLKeygenElement/index.js +64 -0
- package/output-es/Web.HTML.HTMLLIElement/foreign.js +13 -0
- package/output-es/Web.HTML.HTMLLIElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLLabelElement/foreign.js +29 -0
- package/output-es/Web.HTML.HTMLLabelElement/index.js +52 -0
- package/output-es/Web.HTML.HTMLLegendElement/foreign.js +5 -0
- package/output-es/Web.HTML.HTMLLegendElement/index.js +44 -0
- package/output-es/Web.HTML.HTMLLinkElement/foreign.js +133 -0
- package/output-es/Web.HTML.HTMLLinkElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLMapElement/foreign.js +29 -0
- package/output-es/Web.HTML.HTMLMapElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLMediaElement/foreign.js +295 -0
- package/output-es/Web.HTML.HTMLMediaElement/index.js +103 -0
- package/output-es/Web.HTML.HTMLMediaElement.CanPlayType/index.js +52 -0
- package/output-es/Web.HTML.HTMLMediaElement.NetworkState/index.js +109 -0
- package/output-es/Web.HTML.HTMLMediaElement.ReadyState/index.js +124 -0
- package/output-es/Web.HTML.HTMLMetaElement/foreign.js +45 -0
- package/output-es/Web.HTML.HTMLMetaElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLMeterElement/foreign.js +101 -0
- package/output-es/Web.HTML.HTMLMeterElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLModElement/foreign.js +29 -0
- package/output-es/Web.HTML.HTMLModElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLOListElement/foreign.js +45 -0
- package/output-es/Web.HTML.HTMLOListElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLObjectElement/foreign.js +167 -0
- package/output-es/Web.HTML.HTMLObjectElement/index.js +74 -0
- package/output-es/Web.HTML.HTMLOptGroupElement/foreign.js +29 -0
- package/output-es/Web.HTML.HTMLOptGroupElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLOptionElement/foreign.js +109 -0
- package/output-es/Web.HTML.HTMLOptionElement/index.js +44 -0
- package/output-es/Web.HTML.HTMLOutputElement/foreign.js +119 -0
- package/output-es/Web.HTML.HTMLOutputElement/index.js +60 -0
- package/output-es/Web.HTML.HTMLParagraphElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLParamElement/foreign.js +29 -0
- package/output-es/Web.HTML.HTMLParamElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLPreElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLProgressElement/foreign.js +45 -0
- package/output-es/Web.HTML.HTMLProgressElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLQuoteElement/foreign.js +13 -0
- package/output-es/Web.HTML.HTMLQuoteElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLScriptElement/foreign.js +109 -0
- package/output-es/Web.HTML.HTMLScriptElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLSelectElement/foreign.js +223 -0
- package/output-es/Web.HTML.HTMLSelectElement/index.js +73 -0
- package/output-es/Web.HTML.HTMLSourceElement/foreign.js +45 -0
- package/output-es/Web.HTML.HTMLSourceElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLSpanElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLStyleElement/foreign.js +29 -0
- package/output-es/Web.HTML.HTMLStyleElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLTableCaptionElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLTableCellElement/foreign.js +37 -0
- package/output-es/Web.HTML.HTMLTableCellElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLTableColElement/foreign.js +13 -0
- package/output-es/Web.HTML.HTMLTableColElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLTableDataCellElement/index.js +36 -0
- package/output-es/Web.HTML.HTMLTableElement/foreign.js +153 -0
- package/output-es/Web.HTML.HTMLTableElement/index.js +103 -0
- package/output-es/Web.HTML.HTMLTableHeaderCellElement/foreign.js +29 -0
- package/output-es/Web.HTML.HTMLTableHeaderCellElement/index.js +38 -0
- package/output-es/Web.HTML.HTMLTableRowElement/foreign.js +41 -0
- package/output-es/Web.HTML.HTMLTableRowElement/index.js +38 -0
- package/output-es/Web.HTML.HTMLTableSectionElement/foreign.js +25 -0
- package/output-es/Web.HTML.HTMLTableSectionElement/index.js +38 -0
- package/output-es/Web.HTML.HTMLTemplateElement/foreign.js +5 -0
- package/output-es/Web.HTML.HTMLTemplateElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLTextAreaElement/foreign.js +403 -0
- package/output-es/Web.HTML.HTMLTextAreaElement/index.js +107 -0
- package/output-es/Web.HTML.HTMLTimeElement/foreign.js +13 -0
- package/output-es/Web.HTML.HTMLTimeElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLTitleElement/foreign.js +13 -0
- package/output-es/Web.HTML.HTMLTitleElement/index.js +34 -0
- package/output-es/Web.HTML.HTMLTrackElement/foreign.js +84 -0
- package/output-es/Web.HTML.HTMLTrackElement/index.js +44 -0
- package/output-es/Web.HTML.HTMLTrackElement.ReadyState/index.js +109 -0
- package/output-es/Web.HTML.HTMLUListElement/index.js +32 -0
- package/output-es/Web.HTML.HTMLVideoElement/foreign.js +63 -0
- package/output-es/Web.HTML.HTMLVideoElement/index.js +38 -0
- package/output-es/Web.HTML.History/foreign.js +49 -0
- package/output-es/Web.HTML.History/index.js +16 -0
- package/output-es/Web.HTML.Location/foreign.js +169 -0
- package/output-es/Web.HTML.Location/index.js +25 -0
- package/output-es/Web.HTML.Navigator/foreign.js +29 -0
- package/output-es/Web.HTML.Navigator/index.js +3 -0
- package/output-es/Web.HTML.SelectionMode/index.js +62 -0
- package/output-es/Web.HTML.ValidityState/foreign.js +3 -0
- package/output-es/Web.HTML.ValidityState/index.js +15 -0
- package/output-es/Web.HTML.Window/foreign.js +239 -0
- package/output-es/Web.HTML.Window/index.js +86 -0
- package/output-es/Web.Internal.FFI/foreign.js +20 -0
- package/output-es/Web.Internal.FFI/index.js +5 -0
- package/output-es/Web.Storage.Event.StorageEvent/foreign.js +19 -0
- package/output-es/Web.Storage.Event.StorageEvent/index.js +13 -0
- package/output-es/Web.Storage.Storage/foreign.js +45 -0
- package/output-es/Web.Storage.Storage/index.js +52 -0
- package/output-es/Web.XHR.EventTypes/index.js +8 -0
- package/output-es/Web.XHR.FormData/foreign.js +32 -0
- package/output-es/Web.XHR.FormData/index.js +52 -0
- package/output-es/Web.XHR.ProgressEvent/foreign.js +11 -0
- package/output-es/Web.XHR.ProgressEvent/index.js +7 -0
- package/output-es/Web.XHR.ReadyState/index.js +99 -0
- package/output-es/Web.XHR.ResponseType/index.js +5 -0
- package/output-es/Web.XHR.XMLHttpRequest/foreign.js +41 -0
- package/output-es/Web.XHR.XMLHttpRequest/index.js +95 -0
- package/output-es/Web.XHR.XMLHttpRequestUpload/index.js +3 -0
- package/output-es/Website.Test.Article.EnergyScatter/index.js +12 -0
- package/output-es/Website.Test.Article.RenewablesLinked/index.js +14 -0
- package/output-es/package.json +1 -0
- package/output-es/runtime.js +33 -0
- package/package.json +5 -3
- package/script/install-website.sh +14 -1
- package/script/webtest-lib.mjs +101 -0
|
@@ -0,0 +1,1505 @@
|
|
|
1
|
+
// | This module defines a type of _strict_ linked lists, and associated helper
|
|
2
|
+
// | functions and type class instances.
|
|
3
|
+
// |
|
|
4
|
+
// | _Note_: Depending on your use-case, you may prefer to use
|
|
5
|
+
// | `Data.Sequence` instead, which might give better performance for certain
|
|
6
|
+
// | use cases. This module is an improvement over `Data.Array` when working with
|
|
7
|
+
// | immutable lists of data in a purely-functional setting, but does not have
|
|
8
|
+
// | good random-access performance.
|
|
9
|
+
import * as $runtime from "../runtime.js";
|
|
10
|
+
import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
|
|
11
|
+
import * as Data$dList$dInternal from "../Data.List.Internal/index.js";
|
|
12
|
+
import * as Data$dList$dTypes from "../Data.List.Types/index.js";
|
|
13
|
+
import * as Data$dMaybe from "../Data.Maybe/index.js";
|
|
14
|
+
import * as Data$dNonEmpty from "../Data.NonEmpty/index.js";
|
|
15
|
+
import * as Data$dTuple from "../Data.Tuple/index.js";
|
|
16
|
+
const any = /* #__PURE__ */ (() => Data$dList$dTypes.foldableList.foldMap((() => {
|
|
17
|
+
const semigroupDisj1 = {append: v => v1 => v || v1};
|
|
18
|
+
return {mempty: false, Semigroup0: () => semigroupDisj1};
|
|
19
|
+
})()))();
|
|
20
|
+
const identity = x => x;
|
|
21
|
+
const Pattern = x => x;
|
|
22
|
+
const updateAt = v => v1 => v2 => {
|
|
23
|
+
if (v2.tag === "Cons") {
|
|
24
|
+
if (v === 0) { return Data$dMaybe.$Maybe("Just", Data$dList$dTypes.$List("Cons", v1, v2._2)); }
|
|
25
|
+
const $0 = updateAt(v - 1 | 0)(v1)(v2._2);
|
|
26
|
+
if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dList$dTypes.$List("Cons", v2._1, $0._1)); }
|
|
27
|
+
}
|
|
28
|
+
return Data$dMaybe.Nothing;
|
|
29
|
+
};
|
|
30
|
+
const unzip = /* #__PURE__ */ (() => Data$dList$dTypes.foldableList.foldr(v => {
|
|
31
|
+
const $0 = v._1;
|
|
32
|
+
const $1 = v._2;
|
|
33
|
+
return v1 => Data$dTuple.$Tuple(Data$dList$dTypes.$List("Cons", $0, v1._1), Data$dList$dTypes.$List("Cons", $1, v1._2));
|
|
34
|
+
})(Data$dTuple.$Tuple(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)))();
|
|
35
|
+
const uncons = v => {
|
|
36
|
+
if (v.tag === "Nil") { return Data$dMaybe.Nothing; }
|
|
37
|
+
if (v.tag === "Cons") { return Data$dMaybe.$Maybe("Just", {head: v._1, tail: v._2}); }
|
|
38
|
+
$runtime.fail();
|
|
39
|
+
};
|
|
40
|
+
const toUnfoldable = dictUnfoldable => dictUnfoldable.unfoldr(xs => {
|
|
41
|
+
if (xs.tag === "Nil") { return Data$dMaybe.Nothing; }
|
|
42
|
+
if (xs.tag === "Cons") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(xs._1, xs._2)); }
|
|
43
|
+
$runtime.fail();
|
|
44
|
+
});
|
|
45
|
+
const tail = v => {
|
|
46
|
+
if (v.tag === "Nil") { return Data$dMaybe.Nothing; }
|
|
47
|
+
if (v.tag === "Cons") { return Data$dMaybe.$Maybe("Just", v._2); }
|
|
48
|
+
$runtime.fail();
|
|
49
|
+
};
|
|
50
|
+
const stripPrefix = dictEq => v => s => {
|
|
51
|
+
const $0 = (prefix, input) => {
|
|
52
|
+
if (input.tag === "Cons" && prefix.tag === "Cons") {
|
|
53
|
+
if (dictEq.eq(prefix._1)(input._1)) { return Data$dMaybe.$Maybe("Just", Control$dMonad$dRec$dClass.$Step("Loop", {a: prefix._2, b: input._2})); }
|
|
54
|
+
return Data$dMaybe.Nothing;
|
|
55
|
+
}
|
|
56
|
+
if (prefix.tag === "Nil") { return Data$dMaybe.$Maybe("Just", Control$dMonad$dRec$dClass.$Step("Done", input)); }
|
|
57
|
+
return Data$dMaybe.Nothing;
|
|
58
|
+
};
|
|
59
|
+
const $1 = v$1 => {
|
|
60
|
+
if (v$1.tag === "Nothing") { return Control$dMonad$dRec$dClass.$Step("Done", Data$dMaybe.Nothing); }
|
|
61
|
+
if (v$1.tag === "Just") {
|
|
62
|
+
if (v$1._1.tag === "Loop") { return Control$dMonad$dRec$dClass.$Step("Loop", $0(v$1._1._1.a, v$1._1._1.b)); }
|
|
63
|
+
if (v$1._1.tag === "Done") { return Control$dMonad$dRec$dClass.$Step("Done", Data$dMaybe.$Maybe("Just", v$1._1._1)); }
|
|
64
|
+
}
|
|
65
|
+
$runtime.fail();
|
|
66
|
+
};
|
|
67
|
+
const go = go$a0$copy => {
|
|
68
|
+
let go$a0 = go$a0$copy, go$c = true, go$r;
|
|
69
|
+
while (go$c) {
|
|
70
|
+
const v$1 = go$a0;
|
|
71
|
+
if (v$1.tag === "Loop") {
|
|
72
|
+
go$a0 = $1(v$1._1);
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if (v$1.tag === "Done") {
|
|
76
|
+
go$c = false;
|
|
77
|
+
go$r = v$1._1;
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
$runtime.fail();
|
|
81
|
+
}
|
|
82
|
+
return go$r;
|
|
83
|
+
};
|
|
84
|
+
return go($1($0(v, s)));
|
|
85
|
+
};
|
|
86
|
+
const span = v => v1 => {
|
|
87
|
+
if (v1.tag === "Cons" && v(v1._1)) {
|
|
88
|
+
const v2 = span(v)(v1._2);
|
|
89
|
+
return {init: Data$dList$dTypes.$List("Cons", v1._1, v2.init), rest: v2.rest};
|
|
90
|
+
}
|
|
91
|
+
return {init: Data$dList$dTypes.Nil, rest: v1};
|
|
92
|
+
};
|
|
93
|
+
const snoc = xs => x => Data$dList$dTypes.foldableList.foldr(Data$dList$dTypes.Cons)(Data$dList$dTypes.$List("Cons", x, Data$dList$dTypes.Nil))(xs);
|
|
94
|
+
const singleton = a => Data$dList$dTypes.$List("Cons", a, Data$dList$dTypes.Nil);
|
|
95
|
+
const sortBy = cmp => {
|
|
96
|
+
const merge = v => v1 => {
|
|
97
|
+
if (v.tag === "Cons") {
|
|
98
|
+
if (v1.tag === "Cons") {
|
|
99
|
+
if (cmp(v._1)(v1._1) === "GT") { return Data$dList$dTypes.$List("Cons", v1._1, merge(v)(v1._2)); }
|
|
100
|
+
return Data$dList$dTypes.$List("Cons", v._1, merge(v._2)(v1));
|
|
101
|
+
}
|
|
102
|
+
if (v1.tag === "Nil") { return v; }
|
|
103
|
+
$runtime.fail();
|
|
104
|
+
}
|
|
105
|
+
if (v.tag === "Nil") { return v1; }
|
|
106
|
+
if (v1.tag === "Nil") { return v; }
|
|
107
|
+
$runtime.fail();
|
|
108
|
+
};
|
|
109
|
+
const mergePairs = v => {
|
|
110
|
+
if (v.tag === "Cons" && v._2.tag === "Cons") { return Data$dList$dTypes.$List("Cons", merge(v._1)(v._2._1), mergePairs(v._2._2)); }
|
|
111
|
+
return v;
|
|
112
|
+
};
|
|
113
|
+
const mergeAll = mergeAll$a0$copy => {
|
|
114
|
+
let mergeAll$a0 = mergeAll$a0$copy, mergeAll$c = true, mergeAll$r;
|
|
115
|
+
while (mergeAll$c) {
|
|
116
|
+
const v = mergeAll$a0;
|
|
117
|
+
if (v.tag === "Cons" && v._2.tag === "Nil") {
|
|
118
|
+
mergeAll$c = false;
|
|
119
|
+
mergeAll$r = v._1;
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
mergeAll$a0 = mergePairs(v);
|
|
123
|
+
}
|
|
124
|
+
return mergeAll$r;
|
|
125
|
+
};
|
|
126
|
+
const $sequedesceascen = ($sequedesceascen$b$copy, $sequedesceascen$a0$copy, $sequedesceascen$a1$copy, $sequedesceascen$a2$copy) => {
|
|
127
|
+
let $sequedesceascen$b = $sequedesceascen$b$copy;
|
|
128
|
+
let $sequedesceascen$a0 = $sequedesceascen$a0$copy;
|
|
129
|
+
let $sequedesceascen$a1 = $sequedesceascen$a1$copy;
|
|
130
|
+
let $sequedesceascen$a2 = $sequedesceascen$a2$copy;
|
|
131
|
+
let $sequedesceascen$c = true;
|
|
132
|
+
let $sequedesceascen$r;
|
|
133
|
+
while ($sequedesceascen$c) {
|
|
134
|
+
if ($sequedesceascen$b === 0) {
|
|
135
|
+
const v = $sequedesceascen$a0;
|
|
136
|
+
if (v.tag === "Cons" && v._2.tag === "Cons") {
|
|
137
|
+
if (cmp(v._1)(v._2._1) === "GT") {
|
|
138
|
+
$sequedesceascen$b = 1;
|
|
139
|
+
$sequedesceascen$a0 = v._2._1;
|
|
140
|
+
$sequedesceascen$a1 = Data$dList$dTypes.$List("Cons", v._1, Data$dList$dTypes.Nil);
|
|
141
|
+
$sequedesceascen$a2 = v._2._2;
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
const $0 = v._1;
|
|
145
|
+
$sequedesceascen$b = 2;
|
|
146
|
+
$sequedesceascen$a0 = v._2._1;
|
|
147
|
+
$sequedesceascen$a1 = v1 => Data$dList$dTypes.$List("Cons", $0, v1);
|
|
148
|
+
$sequedesceascen$a2 = v._2._2;
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
$sequedesceascen$c = false;
|
|
152
|
+
$sequedesceascen$r = Data$dList$dTypes.$List("Cons", v, Data$dList$dTypes.Nil);
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
if ($sequedesceascen$b === 1) {
|
|
156
|
+
const v = $sequedesceascen$a0, v1 = $sequedesceascen$a1, v2 = $sequedesceascen$a2;
|
|
157
|
+
if (v2.tag === "Cons" && cmp(v)(v2._1) === "GT") {
|
|
158
|
+
$sequedesceascen$b = 1;
|
|
159
|
+
$sequedesceascen$a0 = v2._1;
|
|
160
|
+
$sequedesceascen$a1 = Data$dList$dTypes.$List("Cons", v, v1);
|
|
161
|
+
$sequedesceascen$a2 = v2._2;
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
$sequedesceascen$c = false;
|
|
165
|
+
$sequedesceascen$r = Data$dList$dTypes.$List("Cons", Data$dList$dTypes.$List("Cons", v, v1), sequences(v2));
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
if ($sequedesceascen$b === 2) {
|
|
169
|
+
const v = $sequedesceascen$a0, v1 = $sequedesceascen$a1, v2 = $sequedesceascen$a2;
|
|
170
|
+
if (
|
|
171
|
+
v2.tag === "Cons" && (() => {
|
|
172
|
+
const $0 = cmp(v)(v2._1);
|
|
173
|
+
return $0 === "LT" || $0 !== "GT";
|
|
174
|
+
})()
|
|
175
|
+
) {
|
|
176
|
+
$sequedesceascen$b = 2;
|
|
177
|
+
$sequedesceascen$a0 = v2._1;
|
|
178
|
+
$sequedesceascen$a1 = ys => v1(Data$dList$dTypes.$List("Cons", v, ys));
|
|
179
|
+
$sequedesceascen$a2 = v2._2;
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
$sequedesceascen$c = false;
|
|
183
|
+
$sequedesceascen$r = Data$dList$dTypes.$List("Cons", v1(Data$dList$dTypes.$List("Cons", v, Data$dList$dTypes.Nil)), sequences(v2));
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return $sequedesceascen$r;
|
|
187
|
+
};
|
|
188
|
+
const sequences = v => $sequedesceascen(0, v);
|
|
189
|
+
const descending = v => v1 => v2 => $sequedesceascen(1, v, v1, v2);
|
|
190
|
+
const ascending = v => v1 => v2 => $sequedesceascen(2, v, v1, v2);
|
|
191
|
+
return x => mergeAll(sequences(x));
|
|
192
|
+
};
|
|
193
|
+
const sort = dictOrd => {
|
|
194
|
+
const compare = dictOrd.compare;
|
|
195
|
+
return xs => sortBy(compare)(xs);
|
|
196
|
+
};
|
|
197
|
+
const showPattern = dictShow => ({show: v => "(Pattern " + Data$dList$dTypes.showList(dictShow).show(v) + ")"});
|
|
198
|
+
const reverse = /* #__PURE__ */ (() => {
|
|
199
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
200
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
201
|
+
while (go$c) {
|
|
202
|
+
const v = go$a0, v1 = go$a1;
|
|
203
|
+
if (v1.tag === "Nil") {
|
|
204
|
+
go$c = false;
|
|
205
|
+
go$r = v;
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
if (v1.tag === "Cons") {
|
|
209
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
210
|
+
go$a1 = v1._2;
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
$runtime.fail();
|
|
214
|
+
}
|
|
215
|
+
return go$r;
|
|
216
|
+
};
|
|
217
|
+
return go(Data$dList$dTypes.Nil);
|
|
218
|
+
})();
|
|
219
|
+
const take = /* #__PURE__ */ (() => {
|
|
220
|
+
const go = go$a0$copy => go$a1$copy => go$a2$copy => {
|
|
221
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$a2 = go$a2$copy, go$c = true, go$r;
|
|
222
|
+
while (go$c) {
|
|
223
|
+
const v = go$a0, v1 = go$a1, v2 = go$a2;
|
|
224
|
+
if (v1 < 1) {
|
|
225
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
226
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
227
|
+
while (go$1$c) {
|
|
228
|
+
const v$1 = go$1$a0, v1$1 = go$1$a1;
|
|
229
|
+
if (v1$1.tag === "Nil") {
|
|
230
|
+
go$1$c = false;
|
|
231
|
+
go$1$r = v$1;
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
if (v1$1.tag === "Cons") {
|
|
235
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$1);
|
|
236
|
+
go$1$a1 = v1$1._2;
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
$runtime.fail();
|
|
240
|
+
}
|
|
241
|
+
return go$1$r;
|
|
242
|
+
};
|
|
243
|
+
go$c = false;
|
|
244
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v);
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
if (v2.tag === "Nil") {
|
|
248
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
249
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
250
|
+
while (go$1$c) {
|
|
251
|
+
const v$1 = go$1$a0, v1$1 = go$1$a1;
|
|
252
|
+
if (v1$1.tag === "Nil") {
|
|
253
|
+
go$1$c = false;
|
|
254
|
+
go$1$r = v$1;
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
if (v1$1.tag === "Cons") {
|
|
258
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$1);
|
|
259
|
+
go$1$a1 = v1$1._2;
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
$runtime.fail();
|
|
263
|
+
}
|
|
264
|
+
return go$1$r;
|
|
265
|
+
};
|
|
266
|
+
go$c = false;
|
|
267
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v);
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
if (v2.tag === "Cons") {
|
|
271
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v2._1, v);
|
|
272
|
+
go$a1 = v1 - 1 | 0;
|
|
273
|
+
go$a2 = v2._2;
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
$runtime.fail();
|
|
277
|
+
}
|
|
278
|
+
return go$r;
|
|
279
|
+
};
|
|
280
|
+
return go(Data$dList$dTypes.Nil);
|
|
281
|
+
})();
|
|
282
|
+
const takeWhile = p => {
|
|
283
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
284
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
285
|
+
while (go$c) {
|
|
286
|
+
const v = go$a0, v1 = go$a1;
|
|
287
|
+
if (v1.tag === "Cons" && p(v1._1)) {
|
|
288
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
289
|
+
go$a1 = v1._2;
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
293
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
294
|
+
while (go$1$c) {
|
|
295
|
+
const v$1 = go$1$a0, v1$1 = go$1$a1;
|
|
296
|
+
if (v1$1.tag === "Nil") {
|
|
297
|
+
go$1$c = false;
|
|
298
|
+
go$1$r = v$1;
|
|
299
|
+
continue;
|
|
300
|
+
}
|
|
301
|
+
if (v1$1.tag === "Cons") {
|
|
302
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$1);
|
|
303
|
+
go$1$a1 = v1$1._2;
|
|
304
|
+
continue;
|
|
305
|
+
}
|
|
306
|
+
$runtime.fail();
|
|
307
|
+
}
|
|
308
|
+
return go$1$r;
|
|
309
|
+
};
|
|
310
|
+
go$c = false;
|
|
311
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v);
|
|
312
|
+
}
|
|
313
|
+
return go$r;
|
|
314
|
+
};
|
|
315
|
+
return go(Data$dList$dTypes.Nil);
|
|
316
|
+
};
|
|
317
|
+
const unsnoc = lst => {
|
|
318
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
319
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
320
|
+
while (go$c) {
|
|
321
|
+
const v = go$a0, v1 = go$a1;
|
|
322
|
+
if (v.tag === "Nil") {
|
|
323
|
+
go$c = false;
|
|
324
|
+
go$r = Data$dMaybe.Nothing;
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
if (v.tag === "Cons") {
|
|
328
|
+
if (v._2.tag === "Nil") {
|
|
329
|
+
go$c = false;
|
|
330
|
+
go$r = Data$dMaybe.$Maybe("Just", {revInit: v1, last: v._1});
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
go$a0 = v._2;
|
|
334
|
+
go$a1 = Data$dList$dTypes.$List("Cons", v._1, v1);
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
$runtime.fail();
|
|
338
|
+
}
|
|
339
|
+
return go$r;
|
|
340
|
+
};
|
|
341
|
+
const $0 = go(lst)(Data$dList$dTypes.Nil);
|
|
342
|
+
if ($0.tag === "Just") {
|
|
343
|
+
return Data$dMaybe.$Maybe(
|
|
344
|
+
"Just",
|
|
345
|
+
{
|
|
346
|
+
init: (() => {
|
|
347
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
348
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
349
|
+
while (go$1$c) {
|
|
350
|
+
const v = go$1$a0, v1 = go$1$a1;
|
|
351
|
+
if (v1.tag === "Nil") {
|
|
352
|
+
go$1$c = false;
|
|
353
|
+
go$1$r = v;
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
if (v1.tag === "Cons") {
|
|
357
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
358
|
+
go$1$a1 = v1._2;
|
|
359
|
+
continue;
|
|
360
|
+
}
|
|
361
|
+
$runtime.fail();
|
|
362
|
+
}
|
|
363
|
+
return go$1$r;
|
|
364
|
+
};
|
|
365
|
+
return go$1(Data$dList$dTypes.Nil)($0._1.revInit);
|
|
366
|
+
})(),
|
|
367
|
+
last: $0._1.last
|
|
368
|
+
}
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
return Data$dMaybe.Nothing;
|
|
372
|
+
};
|
|
373
|
+
const zipWith = f => xs => ys => {
|
|
374
|
+
const go = go$a0$copy => go$a1$copy => go$a2$copy => {
|
|
375
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$a2 = go$a2$copy, go$c = true, go$r;
|
|
376
|
+
while (go$c) {
|
|
377
|
+
const v = go$a0, v1 = go$a1, v2 = go$a2;
|
|
378
|
+
if (v.tag === "Nil") {
|
|
379
|
+
go$c = false;
|
|
380
|
+
go$r = v2;
|
|
381
|
+
continue;
|
|
382
|
+
}
|
|
383
|
+
if (v1.tag === "Nil") {
|
|
384
|
+
go$c = false;
|
|
385
|
+
go$r = v2;
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
if (v.tag === "Cons" && v1.tag === "Cons") {
|
|
389
|
+
go$a0 = v._2;
|
|
390
|
+
go$a1 = v1._2;
|
|
391
|
+
go$a2 = Data$dList$dTypes.$List("Cons", f(v._1)(v1._1), v2);
|
|
392
|
+
continue;
|
|
393
|
+
}
|
|
394
|
+
$runtime.fail();
|
|
395
|
+
}
|
|
396
|
+
return go$r;
|
|
397
|
+
};
|
|
398
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
399
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
400
|
+
while (go$1$c) {
|
|
401
|
+
const v = go$1$a0, v1 = go$1$a1;
|
|
402
|
+
if (v1.tag === "Nil") {
|
|
403
|
+
go$1$c = false;
|
|
404
|
+
go$1$r = v;
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
407
|
+
if (v1.tag === "Cons") {
|
|
408
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
409
|
+
go$1$a1 = v1._2;
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
$runtime.fail();
|
|
413
|
+
}
|
|
414
|
+
return go$1$r;
|
|
415
|
+
};
|
|
416
|
+
return go$1(Data$dList$dTypes.Nil)(go(xs)(ys)(Data$dList$dTypes.Nil));
|
|
417
|
+
};
|
|
418
|
+
const zip = xs => ys => {
|
|
419
|
+
const go = go$a0$copy => go$a1$copy => go$a2$copy => {
|
|
420
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$a2 = go$a2$copy, go$c = true, go$r;
|
|
421
|
+
while (go$c) {
|
|
422
|
+
const v = go$a0, v1 = go$a1, v2 = go$a2;
|
|
423
|
+
if (v.tag === "Nil") {
|
|
424
|
+
go$c = false;
|
|
425
|
+
go$r = v2;
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
if (v1.tag === "Nil") {
|
|
429
|
+
go$c = false;
|
|
430
|
+
go$r = v2;
|
|
431
|
+
continue;
|
|
432
|
+
}
|
|
433
|
+
if (v.tag === "Cons" && v1.tag === "Cons") {
|
|
434
|
+
go$a0 = v._2;
|
|
435
|
+
go$a1 = v1._2;
|
|
436
|
+
go$a2 = Data$dList$dTypes.$List("Cons", Data$dTuple.$Tuple(v._1, v1._1), v2);
|
|
437
|
+
continue;
|
|
438
|
+
}
|
|
439
|
+
$runtime.fail();
|
|
440
|
+
}
|
|
441
|
+
return go$r;
|
|
442
|
+
};
|
|
443
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
444
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
445
|
+
while (go$1$c) {
|
|
446
|
+
const v = go$1$a0, v1 = go$1$a1;
|
|
447
|
+
if (v1.tag === "Nil") {
|
|
448
|
+
go$1$c = false;
|
|
449
|
+
go$1$r = v;
|
|
450
|
+
continue;
|
|
451
|
+
}
|
|
452
|
+
if (v1.tag === "Cons") {
|
|
453
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
454
|
+
go$1$a1 = v1._2;
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
$runtime.fail();
|
|
458
|
+
}
|
|
459
|
+
return go$1$r;
|
|
460
|
+
};
|
|
461
|
+
return go$1(Data$dList$dTypes.Nil)(go(xs)(ys)(Data$dList$dTypes.Nil));
|
|
462
|
+
};
|
|
463
|
+
const zipWithA = dictApplicative => {
|
|
464
|
+
const sequence1 = Data$dList$dTypes.traversableList.traverse(dictApplicative)(Data$dList$dTypes.identity);
|
|
465
|
+
return f => xs => ys => sequence1((() => {
|
|
466
|
+
const go = go$a0$copy => go$a1$copy => go$a2$copy => {
|
|
467
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$a2 = go$a2$copy, go$c = true, go$r;
|
|
468
|
+
while (go$c) {
|
|
469
|
+
const v = go$a0, v1 = go$a1, v2 = go$a2;
|
|
470
|
+
if (v.tag === "Nil") {
|
|
471
|
+
go$c = false;
|
|
472
|
+
go$r = v2;
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
if (v1.tag === "Nil") {
|
|
476
|
+
go$c = false;
|
|
477
|
+
go$r = v2;
|
|
478
|
+
continue;
|
|
479
|
+
}
|
|
480
|
+
if (v.tag === "Cons" && v1.tag === "Cons") {
|
|
481
|
+
go$a0 = v._2;
|
|
482
|
+
go$a1 = v1._2;
|
|
483
|
+
go$a2 = Data$dList$dTypes.$List("Cons", f(v._1)(v1._1), v2);
|
|
484
|
+
continue;
|
|
485
|
+
}
|
|
486
|
+
$runtime.fail();
|
|
487
|
+
}
|
|
488
|
+
return go$r;
|
|
489
|
+
};
|
|
490
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
491
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
492
|
+
while (go$1$c) {
|
|
493
|
+
const v = go$1$a0, v1 = go$1$a1;
|
|
494
|
+
if (v1.tag === "Nil") {
|
|
495
|
+
go$1$c = false;
|
|
496
|
+
go$1$r = v;
|
|
497
|
+
continue;
|
|
498
|
+
}
|
|
499
|
+
if (v1.tag === "Cons") {
|
|
500
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
501
|
+
go$1$a1 = v1._2;
|
|
502
|
+
continue;
|
|
503
|
+
}
|
|
504
|
+
$runtime.fail();
|
|
505
|
+
}
|
|
506
|
+
return go$1$r;
|
|
507
|
+
};
|
|
508
|
+
return go$1(Data$dList$dTypes.Nil)(go(xs)(ys)(Data$dList$dTypes.Nil));
|
|
509
|
+
})());
|
|
510
|
+
};
|
|
511
|
+
const range = start => end => {
|
|
512
|
+
if (start === end) { return Data$dList$dTypes.$List("Cons", start, Data$dList$dTypes.Nil); }
|
|
513
|
+
const go = go$a0$copy => go$a1$copy => go$a2$copy => go$a3$copy => {
|
|
514
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$a2 = go$a2$copy, go$a3 = go$a3$copy, go$c = true, go$r;
|
|
515
|
+
while (go$c) {
|
|
516
|
+
const s = go$a0, e = go$a1, step = go$a2, rest = go$a3;
|
|
517
|
+
if (s === e) {
|
|
518
|
+
go$c = false;
|
|
519
|
+
go$r = Data$dList$dTypes.$List("Cons", s, rest);
|
|
520
|
+
continue;
|
|
521
|
+
}
|
|
522
|
+
go$a0 = s + step | 0;
|
|
523
|
+
go$a1 = e;
|
|
524
|
+
go$a2 = step;
|
|
525
|
+
go$a3 = Data$dList$dTypes.$List("Cons", s, rest);
|
|
526
|
+
}
|
|
527
|
+
return go$r;
|
|
528
|
+
};
|
|
529
|
+
return go(end)(start)(start > end ? 1 : -1)(Data$dList$dTypes.Nil);
|
|
530
|
+
};
|
|
531
|
+
const partition = p => xs => Data$dList$dTypes.foldableList.foldr(x => v => {
|
|
532
|
+
if (p(x)) { return {no: v.no, yes: Data$dList$dTypes.$List("Cons", x, v.yes)}; }
|
|
533
|
+
return {no: Data$dList$dTypes.$List("Cons", x, v.no), yes: v.yes};
|
|
534
|
+
})({no: Data$dList$dTypes.Nil, yes: Data$dList$dTypes.Nil})(xs);
|
|
535
|
+
const $$null = v => v.tag === "Nil";
|
|
536
|
+
const nubBy = p => {
|
|
537
|
+
const go = go$a0$copy => go$a1$copy => go$a2$copy => {
|
|
538
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$a2 = go$a2$copy, go$c = true, go$r;
|
|
539
|
+
while (go$c) {
|
|
540
|
+
const v = go$a0, v1 = go$a1, v2 = go$a2;
|
|
541
|
+
if (v2.tag === "Nil") {
|
|
542
|
+
go$c = false;
|
|
543
|
+
go$r = v1;
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
if (v2.tag === "Cons") {
|
|
547
|
+
const v3 = Data$dList$dInternal.insertAndLookupBy(p)(v2._1)(v);
|
|
548
|
+
if (v3.found) {
|
|
549
|
+
go$a0 = v3.result;
|
|
550
|
+
go$a1 = v1;
|
|
551
|
+
go$a2 = v2._2;
|
|
552
|
+
continue;
|
|
553
|
+
}
|
|
554
|
+
go$a0 = v3.result;
|
|
555
|
+
go$a1 = Data$dList$dTypes.$List("Cons", v2._1, v1);
|
|
556
|
+
go$a2 = v2._2;
|
|
557
|
+
continue;
|
|
558
|
+
}
|
|
559
|
+
$runtime.fail();
|
|
560
|
+
}
|
|
561
|
+
return go$r;
|
|
562
|
+
};
|
|
563
|
+
const $0 = go(Data$dList$dInternal.Leaf)(Data$dList$dTypes.Nil);
|
|
564
|
+
return x => {
|
|
565
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
566
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
567
|
+
while (go$1$c) {
|
|
568
|
+
const v = go$1$a0, v1 = go$1$a1;
|
|
569
|
+
if (v1.tag === "Nil") {
|
|
570
|
+
go$1$c = false;
|
|
571
|
+
go$1$r = v;
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
if (v1.tag === "Cons") {
|
|
575
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
576
|
+
go$1$a1 = v1._2;
|
|
577
|
+
continue;
|
|
578
|
+
}
|
|
579
|
+
$runtime.fail();
|
|
580
|
+
}
|
|
581
|
+
return go$1$r;
|
|
582
|
+
};
|
|
583
|
+
return go$1(Data$dList$dTypes.Nil)($0(x));
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
const nub = dictOrd => nubBy(dictOrd.compare);
|
|
587
|
+
const newtypePattern = {Coercible0: () => {}};
|
|
588
|
+
const mapMaybe = f => {
|
|
589
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
590
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
591
|
+
while (go$c) {
|
|
592
|
+
const v = go$a0, v1 = go$a1;
|
|
593
|
+
if (v1.tag === "Nil") {
|
|
594
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
595
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
596
|
+
while (go$1$c) {
|
|
597
|
+
const v$1 = go$1$a0, v1$1 = go$1$a1;
|
|
598
|
+
if (v1$1.tag === "Nil") {
|
|
599
|
+
go$1$c = false;
|
|
600
|
+
go$1$r = v$1;
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
if (v1$1.tag === "Cons") {
|
|
604
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$1);
|
|
605
|
+
go$1$a1 = v1$1._2;
|
|
606
|
+
continue;
|
|
607
|
+
}
|
|
608
|
+
$runtime.fail();
|
|
609
|
+
}
|
|
610
|
+
return go$1$r;
|
|
611
|
+
};
|
|
612
|
+
go$c = false;
|
|
613
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v);
|
|
614
|
+
continue;
|
|
615
|
+
}
|
|
616
|
+
if (v1.tag === "Cons") {
|
|
617
|
+
const v2 = f(v1._1);
|
|
618
|
+
if (v2.tag === "Nothing") {
|
|
619
|
+
go$a0 = v;
|
|
620
|
+
go$a1 = v1._2;
|
|
621
|
+
continue;
|
|
622
|
+
}
|
|
623
|
+
if (v2.tag === "Just") {
|
|
624
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v2._1, v);
|
|
625
|
+
go$a1 = v1._2;
|
|
626
|
+
continue;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
$runtime.fail();
|
|
630
|
+
}
|
|
631
|
+
return go$r;
|
|
632
|
+
};
|
|
633
|
+
return go(Data$dList$dTypes.Nil);
|
|
634
|
+
};
|
|
635
|
+
const manyRec = dictMonadRec => dictAlternative => {
|
|
636
|
+
const Alt0 = dictAlternative.Plus1().Alt0();
|
|
637
|
+
const $0 = dictAlternative.Applicative0();
|
|
638
|
+
return p => dictMonadRec.tailRecM(acc => dictMonadRec.Monad0().Bind1().bind(Alt0.alt(Alt0.Functor0().map(Control$dMonad$dRec$dClass.Loop)(p))($0.pure(Control$dMonad$dRec$dClass.$Step(
|
|
639
|
+
"Done",
|
|
640
|
+
undefined
|
|
641
|
+
))))(aa => $0.pure((() => {
|
|
642
|
+
if (aa.tag === "Loop") { return Control$dMonad$dRec$dClass.$Step("Loop", Data$dList$dTypes.$List("Cons", aa._1, acc)); }
|
|
643
|
+
if (aa.tag === "Done") {
|
|
644
|
+
return Control$dMonad$dRec$dClass.$Step(
|
|
645
|
+
"Done",
|
|
646
|
+
(() => {
|
|
647
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
648
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
649
|
+
while (go$c) {
|
|
650
|
+
const v = go$a0, v1 = go$a1;
|
|
651
|
+
if (v1.tag === "Nil") {
|
|
652
|
+
go$c = false;
|
|
653
|
+
go$r = v;
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
656
|
+
if (v1.tag === "Cons") {
|
|
657
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
658
|
+
go$a1 = v1._2;
|
|
659
|
+
continue;
|
|
660
|
+
}
|
|
661
|
+
$runtime.fail();
|
|
662
|
+
}
|
|
663
|
+
return go$r;
|
|
664
|
+
};
|
|
665
|
+
return go(Data$dList$dTypes.Nil)(acc);
|
|
666
|
+
})()
|
|
667
|
+
);
|
|
668
|
+
}
|
|
669
|
+
$runtime.fail();
|
|
670
|
+
})())))(Data$dList$dTypes.Nil);
|
|
671
|
+
};
|
|
672
|
+
const someRec = dictMonadRec => dictAlternative => {
|
|
673
|
+
const manyRec2 = manyRec(dictMonadRec)(dictAlternative);
|
|
674
|
+
return v => dictAlternative.Applicative0().Apply0().apply(dictAlternative.Plus1().Alt0().Functor0().map(Data$dList$dTypes.Cons)(v))(manyRec2(v));
|
|
675
|
+
};
|
|
676
|
+
const some = dictAlternative => dictLazy => v => dictAlternative.Applicative0().Apply0().apply(dictAlternative.Plus1().Alt0().Functor0().map(Data$dList$dTypes.Cons)(v))(dictLazy.defer(v1 => many(dictAlternative)(dictLazy)(v)));
|
|
677
|
+
const many = dictAlternative => dictLazy => v => dictAlternative.Plus1().Alt0().alt(some(dictAlternative)(dictLazy)(v))(dictAlternative.Applicative0().pure(Data$dList$dTypes.Nil));
|
|
678
|
+
const length = /* #__PURE__ */ (() => {
|
|
679
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
680
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
681
|
+
while (go$c) {
|
|
682
|
+
const b = go$a0, v = go$a1;
|
|
683
|
+
if (v.tag === "Nil") {
|
|
684
|
+
go$c = false;
|
|
685
|
+
go$r = b;
|
|
686
|
+
continue;
|
|
687
|
+
}
|
|
688
|
+
if (v.tag === "Cons") {
|
|
689
|
+
go$a0 = b + 1 | 0;
|
|
690
|
+
go$a1 = v._2;
|
|
691
|
+
continue;
|
|
692
|
+
}
|
|
693
|
+
$runtime.fail();
|
|
694
|
+
}
|
|
695
|
+
return go$r;
|
|
696
|
+
};
|
|
697
|
+
return go(0);
|
|
698
|
+
})();
|
|
699
|
+
const last = last$a0$copy => {
|
|
700
|
+
let last$a0 = last$a0$copy, last$c = true, last$r;
|
|
701
|
+
while (last$c) {
|
|
702
|
+
const v = last$a0;
|
|
703
|
+
if (v.tag === "Cons") {
|
|
704
|
+
if (v._2.tag === "Nil") {
|
|
705
|
+
last$c = false;
|
|
706
|
+
last$r = Data$dMaybe.$Maybe("Just", v._1);
|
|
707
|
+
continue;
|
|
708
|
+
}
|
|
709
|
+
last$a0 = v._2;
|
|
710
|
+
continue;
|
|
711
|
+
}
|
|
712
|
+
last$c = false;
|
|
713
|
+
last$r = Data$dMaybe.Nothing;
|
|
714
|
+
}
|
|
715
|
+
return last$r;
|
|
716
|
+
};
|
|
717
|
+
const insertBy = v => v1 => v2 => {
|
|
718
|
+
if (v2.tag === "Nil") { return Data$dList$dTypes.$List("Cons", v1, Data$dList$dTypes.Nil); }
|
|
719
|
+
if (v2.tag === "Cons") {
|
|
720
|
+
if (v(v1)(v2._1) === "GT") { return Data$dList$dTypes.$List("Cons", v2._1, insertBy(v)(v1)(v2._2)); }
|
|
721
|
+
return Data$dList$dTypes.$List("Cons", v1, v2);
|
|
722
|
+
}
|
|
723
|
+
$runtime.fail();
|
|
724
|
+
};
|
|
725
|
+
const insertAt = v => v1 => v2 => {
|
|
726
|
+
if (v === 0) { return Data$dMaybe.$Maybe("Just", Data$dList$dTypes.$List("Cons", v1, v2)); }
|
|
727
|
+
if (v2.tag === "Cons") {
|
|
728
|
+
const $0 = insertAt(v - 1 | 0)(v1)(v2._2);
|
|
729
|
+
if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dList$dTypes.$List("Cons", v2._1, $0._1)); }
|
|
730
|
+
}
|
|
731
|
+
return Data$dMaybe.Nothing;
|
|
732
|
+
};
|
|
733
|
+
const insert = dictOrd => insertBy(dictOrd.compare);
|
|
734
|
+
const init = lst => {
|
|
735
|
+
const $0 = unsnoc(lst);
|
|
736
|
+
if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0._1.init); }
|
|
737
|
+
return Data$dMaybe.Nothing;
|
|
738
|
+
};
|
|
739
|
+
const index = index$a0$copy => index$a1$copy => {
|
|
740
|
+
let index$a0 = index$a0$copy, index$a1 = index$a1$copy, index$c = true, index$r;
|
|
741
|
+
while (index$c) {
|
|
742
|
+
const v = index$a0, v1 = index$a1;
|
|
743
|
+
if (v.tag === "Nil") {
|
|
744
|
+
index$c = false;
|
|
745
|
+
index$r = Data$dMaybe.Nothing;
|
|
746
|
+
continue;
|
|
747
|
+
}
|
|
748
|
+
if (v.tag === "Cons") {
|
|
749
|
+
if (v1 === 0) {
|
|
750
|
+
index$c = false;
|
|
751
|
+
index$r = Data$dMaybe.$Maybe("Just", v._1);
|
|
752
|
+
continue;
|
|
753
|
+
}
|
|
754
|
+
index$a0 = v._2;
|
|
755
|
+
index$a1 = v1 - 1 | 0;
|
|
756
|
+
continue;
|
|
757
|
+
}
|
|
758
|
+
$runtime.fail();
|
|
759
|
+
}
|
|
760
|
+
return index$r;
|
|
761
|
+
};
|
|
762
|
+
const head = v => {
|
|
763
|
+
if (v.tag === "Nil") { return Data$dMaybe.Nothing; }
|
|
764
|
+
if (v.tag === "Cons") { return Data$dMaybe.$Maybe("Just", v._1); }
|
|
765
|
+
$runtime.fail();
|
|
766
|
+
};
|
|
767
|
+
const transpose = v => {
|
|
768
|
+
if (v.tag === "Nil") { return Data$dList$dTypes.Nil; }
|
|
769
|
+
if (v.tag === "Cons") {
|
|
770
|
+
if (v._1.tag === "Nil") { return transpose(v._2); }
|
|
771
|
+
if (v._1.tag === "Cons") {
|
|
772
|
+
return Data$dList$dTypes.$List(
|
|
773
|
+
"Cons",
|
|
774
|
+
Data$dList$dTypes.$List(
|
|
775
|
+
"Cons",
|
|
776
|
+
v._1._1,
|
|
777
|
+
(() => {
|
|
778
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
779
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
780
|
+
while (go$c) {
|
|
781
|
+
const v$1 = go$a0, v1 = go$a1;
|
|
782
|
+
if (v1.tag === "Nil") {
|
|
783
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
784
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
785
|
+
while (go$1$c) {
|
|
786
|
+
const v$2 = go$1$a0, v1$1 = go$1$a1;
|
|
787
|
+
if (v1$1.tag === "Nil") {
|
|
788
|
+
go$1$c = false;
|
|
789
|
+
go$1$r = v$2;
|
|
790
|
+
continue;
|
|
791
|
+
}
|
|
792
|
+
if (v1$1.tag === "Cons") {
|
|
793
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$2);
|
|
794
|
+
go$1$a1 = v1$1._2;
|
|
795
|
+
continue;
|
|
796
|
+
}
|
|
797
|
+
$runtime.fail();
|
|
798
|
+
}
|
|
799
|
+
return go$1$r;
|
|
800
|
+
};
|
|
801
|
+
go$c = false;
|
|
802
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v$1);
|
|
803
|
+
continue;
|
|
804
|
+
}
|
|
805
|
+
if (v1.tag === "Cons") {
|
|
806
|
+
if (v1._1.tag === "Nil") {
|
|
807
|
+
go$a0 = v$1;
|
|
808
|
+
go$a1 = v1._2;
|
|
809
|
+
continue;
|
|
810
|
+
}
|
|
811
|
+
if (v1._1.tag === "Cons") {
|
|
812
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v1._1._1, v$1);
|
|
813
|
+
go$a1 = v1._2;
|
|
814
|
+
continue;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
$runtime.fail();
|
|
818
|
+
}
|
|
819
|
+
return go$r;
|
|
820
|
+
};
|
|
821
|
+
return go(Data$dList$dTypes.Nil)(v._2);
|
|
822
|
+
})()
|
|
823
|
+
),
|
|
824
|
+
transpose(Data$dList$dTypes.$List(
|
|
825
|
+
"Cons",
|
|
826
|
+
v._1._2,
|
|
827
|
+
(() => {
|
|
828
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
829
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
830
|
+
while (go$c) {
|
|
831
|
+
const v$1 = go$a0, v1 = go$a1;
|
|
832
|
+
if (v1.tag === "Nil") {
|
|
833
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
834
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
835
|
+
while (go$1$c) {
|
|
836
|
+
const v$2 = go$1$a0, v1$1 = go$1$a1;
|
|
837
|
+
if (v1$1.tag === "Nil") {
|
|
838
|
+
go$1$c = false;
|
|
839
|
+
go$1$r = v$2;
|
|
840
|
+
continue;
|
|
841
|
+
}
|
|
842
|
+
if (v1$1.tag === "Cons") {
|
|
843
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$2);
|
|
844
|
+
go$1$a1 = v1$1._2;
|
|
845
|
+
continue;
|
|
846
|
+
}
|
|
847
|
+
$runtime.fail();
|
|
848
|
+
}
|
|
849
|
+
return go$1$r;
|
|
850
|
+
};
|
|
851
|
+
go$c = false;
|
|
852
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v$1);
|
|
853
|
+
continue;
|
|
854
|
+
}
|
|
855
|
+
if (v1.tag === "Cons") {
|
|
856
|
+
if (v1._1.tag === "Nil") {
|
|
857
|
+
go$a0 = v$1;
|
|
858
|
+
go$a1 = v1._2;
|
|
859
|
+
continue;
|
|
860
|
+
}
|
|
861
|
+
if (v1._1.tag === "Cons") {
|
|
862
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v1._1._2, v$1);
|
|
863
|
+
go$a1 = v1._2;
|
|
864
|
+
continue;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
$runtime.fail();
|
|
868
|
+
}
|
|
869
|
+
return go$r;
|
|
870
|
+
};
|
|
871
|
+
return go(Data$dList$dTypes.Nil)(v._2);
|
|
872
|
+
})()
|
|
873
|
+
))
|
|
874
|
+
);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
$runtime.fail();
|
|
878
|
+
};
|
|
879
|
+
const groupBy = v => v1 => {
|
|
880
|
+
if (v1.tag === "Nil") { return Data$dList$dTypes.Nil; }
|
|
881
|
+
if (v1.tag === "Cons") {
|
|
882
|
+
const v2 = span(v(v1._1))(v1._2);
|
|
883
|
+
return Data$dList$dTypes.$List("Cons", Data$dNonEmpty.$NonEmpty(v1._1, v2.init), groupBy(v)(v2.rest));
|
|
884
|
+
}
|
|
885
|
+
$runtime.fail();
|
|
886
|
+
};
|
|
887
|
+
const groupAllBy = p => {
|
|
888
|
+
const $0 = groupBy(x => y => p(x)(y) === "EQ");
|
|
889
|
+
const $1 = sortBy(p);
|
|
890
|
+
return x => $0($1(x));
|
|
891
|
+
};
|
|
892
|
+
const group = dictEq => groupBy(dictEq.eq);
|
|
893
|
+
const groupAll = dictOrd => {
|
|
894
|
+
const $0 = group(dictOrd.Eq0());
|
|
895
|
+
const compare = dictOrd.compare;
|
|
896
|
+
return x => $0(sortBy(compare)(x));
|
|
897
|
+
};
|
|
898
|
+
const fromFoldable = dictFoldable => dictFoldable.foldr(Data$dList$dTypes.Cons)(Data$dList$dTypes.Nil);
|
|
899
|
+
const foldM = dictMonad => v => v1 => v2 => {
|
|
900
|
+
if (v2.tag === "Nil") { return dictMonad.Applicative0().pure(v1); }
|
|
901
|
+
if (v2.tag === "Cons") {
|
|
902
|
+
const $0 = v2._2;
|
|
903
|
+
return dictMonad.Bind1().bind(v(v1)(v2._1))(b$p => foldM(dictMonad)(v)(b$p)($0));
|
|
904
|
+
}
|
|
905
|
+
$runtime.fail();
|
|
906
|
+
};
|
|
907
|
+
const findIndex = fn => {
|
|
908
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
909
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
910
|
+
while (go$c) {
|
|
911
|
+
const v = go$a0, v1 = go$a1;
|
|
912
|
+
if (v1.tag === "Cons") {
|
|
913
|
+
if (fn(v1._1)) {
|
|
914
|
+
go$c = false;
|
|
915
|
+
go$r = Data$dMaybe.$Maybe("Just", v);
|
|
916
|
+
continue;
|
|
917
|
+
}
|
|
918
|
+
go$a0 = v + 1 | 0;
|
|
919
|
+
go$a1 = v1._2;
|
|
920
|
+
continue;
|
|
921
|
+
}
|
|
922
|
+
if (v1.tag === "Nil") {
|
|
923
|
+
go$c = false;
|
|
924
|
+
go$r = Data$dMaybe.Nothing;
|
|
925
|
+
continue;
|
|
926
|
+
}
|
|
927
|
+
$runtime.fail();
|
|
928
|
+
}
|
|
929
|
+
return go$r;
|
|
930
|
+
};
|
|
931
|
+
return go(0);
|
|
932
|
+
};
|
|
933
|
+
const findLastIndex = fn => xs => {
|
|
934
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
935
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
936
|
+
while (go$c) {
|
|
937
|
+
const v = go$a0, v1 = go$a1;
|
|
938
|
+
if (v1.tag === "Cons") {
|
|
939
|
+
if (fn(v1._1)) {
|
|
940
|
+
go$c = false;
|
|
941
|
+
go$r = Data$dMaybe.$Maybe("Just", v);
|
|
942
|
+
continue;
|
|
943
|
+
}
|
|
944
|
+
go$a0 = v + 1 | 0;
|
|
945
|
+
go$a1 = v1._2;
|
|
946
|
+
continue;
|
|
947
|
+
}
|
|
948
|
+
if (v1.tag === "Nil") {
|
|
949
|
+
go$c = false;
|
|
950
|
+
go$r = Data$dMaybe.Nothing;
|
|
951
|
+
continue;
|
|
952
|
+
}
|
|
953
|
+
$runtime.fail();
|
|
954
|
+
}
|
|
955
|
+
return go$r;
|
|
956
|
+
};
|
|
957
|
+
const $0 = go(0)((() => {
|
|
958
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
959
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
960
|
+
while (go$1$c) {
|
|
961
|
+
const v = go$1$a0, v1 = go$1$a1;
|
|
962
|
+
if (v1.tag === "Nil") {
|
|
963
|
+
go$1$c = false;
|
|
964
|
+
go$1$r = v;
|
|
965
|
+
continue;
|
|
966
|
+
}
|
|
967
|
+
if (v1.tag === "Cons") {
|
|
968
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
969
|
+
go$1$a1 = v1._2;
|
|
970
|
+
continue;
|
|
971
|
+
}
|
|
972
|
+
$runtime.fail();
|
|
973
|
+
}
|
|
974
|
+
return go$1$r;
|
|
975
|
+
};
|
|
976
|
+
return go$1(Data$dList$dTypes.Nil)(xs);
|
|
977
|
+
})());
|
|
978
|
+
if ($0.tag === "Just") {
|
|
979
|
+
return Data$dMaybe.$Maybe(
|
|
980
|
+
"Just",
|
|
981
|
+
(() => {
|
|
982
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
983
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
984
|
+
while (go$1$c) {
|
|
985
|
+
const b = go$1$a0, v = go$1$a1;
|
|
986
|
+
if (v.tag === "Nil") {
|
|
987
|
+
go$1$c = false;
|
|
988
|
+
go$1$r = b;
|
|
989
|
+
continue;
|
|
990
|
+
}
|
|
991
|
+
if (v.tag === "Cons") {
|
|
992
|
+
go$1$a0 = b + 1 | 0;
|
|
993
|
+
go$1$a1 = v._2;
|
|
994
|
+
continue;
|
|
995
|
+
}
|
|
996
|
+
$runtime.fail();
|
|
997
|
+
}
|
|
998
|
+
return go$1$r;
|
|
999
|
+
};
|
|
1000
|
+
return (go$1(0)(xs) - 1 | 0) - $0._1 | 0;
|
|
1001
|
+
})()
|
|
1002
|
+
);
|
|
1003
|
+
}
|
|
1004
|
+
return Data$dMaybe.Nothing;
|
|
1005
|
+
};
|
|
1006
|
+
const filterM = dictMonad => {
|
|
1007
|
+
const $0 = dictMonad.Applicative0();
|
|
1008
|
+
const $1 = dictMonad.Bind1();
|
|
1009
|
+
return v => v1 => {
|
|
1010
|
+
if (v1.tag === "Nil") { return $0.pure(Data$dList$dTypes.Nil); }
|
|
1011
|
+
if (v1.tag === "Cons") {
|
|
1012
|
+
const $2 = v1._1;
|
|
1013
|
+
const $3 = v1._2;
|
|
1014
|
+
return $1.bind(v($2))(b => $1.bind(filterM(dictMonad)(v)($3))(xs$p => $0.pure(b ? Data$dList$dTypes.$List("Cons", $2, xs$p) : xs$p)));
|
|
1015
|
+
}
|
|
1016
|
+
$runtime.fail();
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
const filter = p => {
|
|
1020
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
1021
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
1022
|
+
while (go$c) {
|
|
1023
|
+
const v = go$a0, v1 = go$a1;
|
|
1024
|
+
if (v1.tag === "Nil") {
|
|
1025
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
1026
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
1027
|
+
while (go$1$c) {
|
|
1028
|
+
const v$1 = go$1$a0, v1$1 = go$1$a1;
|
|
1029
|
+
if (v1$1.tag === "Nil") {
|
|
1030
|
+
go$1$c = false;
|
|
1031
|
+
go$1$r = v$1;
|
|
1032
|
+
continue;
|
|
1033
|
+
}
|
|
1034
|
+
if (v1$1.tag === "Cons") {
|
|
1035
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$1);
|
|
1036
|
+
go$1$a1 = v1$1._2;
|
|
1037
|
+
continue;
|
|
1038
|
+
}
|
|
1039
|
+
$runtime.fail();
|
|
1040
|
+
}
|
|
1041
|
+
return go$1$r;
|
|
1042
|
+
};
|
|
1043
|
+
go$c = false;
|
|
1044
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v);
|
|
1045
|
+
continue;
|
|
1046
|
+
}
|
|
1047
|
+
if (v1.tag === "Cons") {
|
|
1048
|
+
if (p(v1._1)) {
|
|
1049
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v1._1, v);
|
|
1050
|
+
go$a1 = v1._2;
|
|
1051
|
+
continue;
|
|
1052
|
+
}
|
|
1053
|
+
go$a0 = v;
|
|
1054
|
+
go$a1 = v1._2;
|
|
1055
|
+
continue;
|
|
1056
|
+
}
|
|
1057
|
+
$runtime.fail();
|
|
1058
|
+
}
|
|
1059
|
+
return go$r;
|
|
1060
|
+
};
|
|
1061
|
+
return go(Data$dList$dTypes.Nil);
|
|
1062
|
+
};
|
|
1063
|
+
const intersectBy = v => v1 => v2 => {
|
|
1064
|
+
if (v1.tag === "Nil") { return Data$dList$dTypes.Nil; }
|
|
1065
|
+
if (v2.tag === "Nil") { return Data$dList$dTypes.Nil; }
|
|
1066
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
1067
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
1068
|
+
while (go$c) {
|
|
1069
|
+
const v$1 = go$a0, v1$1 = go$a1;
|
|
1070
|
+
if (v1$1.tag === "Nil") {
|
|
1071
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
1072
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
1073
|
+
while (go$1$c) {
|
|
1074
|
+
const v$2 = go$1$a0, v1$2 = go$1$a1;
|
|
1075
|
+
if (v1$2.tag === "Nil") {
|
|
1076
|
+
go$1$c = false;
|
|
1077
|
+
go$1$r = v$2;
|
|
1078
|
+
continue;
|
|
1079
|
+
}
|
|
1080
|
+
if (v1$2.tag === "Cons") {
|
|
1081
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$2._1, v$2);
|
|
1082
|
+
go$1$a1 = v1$2._2;
|
|
1083
|
+
continue;
|
|
1084
|
+
}
|
|
1085
|
+
$runtime.fail();
|
|
1086
|
+
}
|
|
1087
|
+
return go$1$r;
|
|
1088
|
+
};
|
|
1089
|
+
go$c = false;
|
|
1090
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v$1);
|
|
1091
|
+
continue;
|
|
1092
|
+
}
|
|
1093
|
+
if (v1$1.tag === "Cons") {
|
|
1094
|
+
if (any(v(v1$1._1))(v2)) {
|
|
1095
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$1);
|
|
1096
|
+
go$a1 = v1$1._2;
|
|
1097
|
+
continue;
|
|
1098
|
+
}
|
|
1099
|
+
go$a0 = v$1;
|
|
1100
|
+
go$a1 = v1$1._2;
|
|
1101
|
+
continue;
|
|
1102
|
+
}
|
|
1103
|
+
$runtime.fail();
|
|
1104
|
+
}
|
|
1105
|
+
return go$r;
|
|
1106
|
+
};
|
|
1107
|
+
return go(Data$dList$dTypes.Nil)(v1);
|
|
1108
|
+
};
|
|
1109
|
+
const intersect = dictEq => intersectBy(dictEq.eq);
|
|
1110
|
+
const nubByEq = v => v1 => {
|
|
1111
|
+
if (v1.tag === "Nil") { return Data$dList$dTypes.Nil; }
|
|
1112
|
+
if (v1.tag === "Cons") {
|
|
1113
|
+
const $0 = v1._1;
|
|
1114
|
+
return Data$dList$dTypes.$List(
|
|
1115
|
+
"Cons",
|
|
1116
|
+
$0,
|
|
1117
|
+
nubByEq(v)((() => {
|
|
1118
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
1119
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
1120
|
+
while (go$c) {
|
|
1121
|
+
const v$1 = go$a0, v1$1 = go$a1;
|
|
1122
|
+
if (v1$1.tag === "Nil") {
|
|
1123
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
1124
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
1125
|
+
while (go$1$c) {
|
|
1126
|
+
const v$2 = go$1$a0, v1$2 = go$1$a1;
|
|
1127
|
+
if (v1$2.tag === "Nil") {
|
|
1128
|
+
go$1$c = false;
|
|
1129
|
+
go$1$r = v$2;
|
|
1130
|
+
continue;
|
|
1131
|
+
}
|
|
1132
|
+
if (v1$2.tag === "Cons") {
|
|
1133
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$2._1, v$2);
|
|
1134
|
+
go$1$a1 = v1$2._2;
|
|
1135
|
+
continue;
|
|
1136
|
+
}
|
|
1137
|
+
$runtime.fail();
|
|
1138
|
+
}
|
|
1139
|
+
return go$1$r;
|
|
1140
|
+
};
|
|
1141
|
+
go$c = false;
|
|
1142
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v$1);
|
|
1143
|
+
continue;
|
|
1144
|
+
}
|
|
1145
|
+
if (v1$1.tag === "Cons") {
|
|
1146
|
+
if (!v($0)(v1$1._1)) {
|
|
1147
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$1);
|
|
1148
|
+
go$a1 = v1$1._2;
|
|
1149
|
+
continue;
|
|
1150
|
+
}
|
|
1151
|
+
go$a0 = v$1;
|
|
1152
|
+
go$a1 = v1$1._2;
|
|
1153
|
+
continue;
|
|
1154
|
+
}
|
|
1155
|
+
$runtime.fail();
|
|
1156
|
+
}
|
|
1157
|
+
return go$r;
|
|
1158
|
+
};
|
|
1159
|
+
return go(Data$dList$dTypes.Nil)(v1._2);
|
|
1160
|
+
})())
|
|
1161
|
+
);
|
|
1162
|
+
}
|
|
1163
|
+
$runtime.fail();
|
|
1164
|
+
};
|
|
1165
|
+
const nubEq = dictEq => nubByEq(dictEq.eq);
|
|
1166
|
+
const eqPattern = dictEq => (
|
|
1167
|
+
{
|
|
1168
|
+
eq: x => y => {
|
|
1169
|
+
const go = v => v1 => v2 => {
|
|
1170
|
+
if (!v2) { return false; }
|
|
1171
|
+
if (v.tag === "Nil") { return v1.tag === "Nil" && v2; }
|
|
1172
|
+
return v.tag === "Cons" && v1.tag === "Cons" && go(v._2)(v1._2)(v2 && dictEq.eq(v1._1)(v._1));
|
|
1173
|
+
};
|
|
1174
|
+
return go(x)(y)(true);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
);
|
|
1178
|
+
const ordPattern = dictOrd => {
|
|
1179
|
+
const $0 = dictOrd.Eq0();
|
|
1180
|
+
const eqPattern1 = {
|
|
1181
|
+
eq: x => y => {
|
|
1182
|
+
const go = v => v1 => v2 => {
|
|
1183
|
+
if (!v2) { return false; }
|
|
1184
|
+
if (v.tag === "Nil") { return v1.tag === "Nil" && v2; }
|
|
1185
|
+
return v.tag === "Cons" && v1.tag === "Cons" && go(v._2)(v1._2)(v2 && $0.eq(v1._1)(v._1));
|
|
1186
|
+
};
|
|
1187
|
+
return go(x)(y)(true);
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
return {compare: x => y => Data$dList$dTypes.ordList(dictOrd).compare(x)(y), Eq0: () => eqPattern1};
|
|
1191
|
+
};
|
|
1192
|
+
const elemLastIndex = dictEq => x => findLastIndex(v => dictEq.eq(v)(x));
|
|
1193
|
+
const elemIndex = dictEq => x => {
|
|
1194
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
1195
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
1196
|
+
while (go$c) {
|
|
1197
|
+
const v = go$a0, v1 = go$a1;
|
|
1198
|
+
if (v1.tag === "Cons") {
|
|
1199
|
+
if (dictEq.eq(v1._1)(x)) {
|
|
1200
|
+
go$c = false;
|
|
1201
|
+
go$r = Data$dMaybe.$Maybe("Just", v);
|
|
1202
|
+
continue;
|
|
1203
|
+
}
|
|
1204
|
+
go$a0 = v + 1 | 0;
|
|
1205
|
+
go$a1 = v1._2;
|
|
1206
|
+
continue;
|
|
1207
|
+
}
|
|
1208
|
+
if (v1.tag === "Nil") {
|
|
1209
|
+
go$c = false;
|
|
1210
|
+
go$r = Data$dMaybe.Nothing;
|
|
1211
|
+
continue;
|
|
1212
|
+
}
|
|
1213
|
+
$runtime.fail();
|
|
1214
|
+
}
|
|
1215
|
+
return go$r;
|
|
1216
|
+
};
|
|
1217
|
+
return go(0);
|
|
1218
|
+
};
|
|
1219
|
+
const dropWhile = p => {
|
|
1220
|
+
const go = go$a0$copy => {
|
|
1221
|
+
let go$a0 = go$a0$copy, go$c = true, go$r;
|
|
1222
|
+
while (go$c) {
|
|
1223
|
+
const v = go$a0;
|
|
1224
|
+
if (v.tag === "Cons" && p(v._1)) {
|
|
1225
|
+
go$a0 = v._2;
|
|
1226
|
+
continue;
|
|
1227
|
+
}
|
|
1228
|
+
go$c = false;
|
|
1229
|
+
go$r = v;
|
|
1230
|
+
}
|
|
1231
|
+
return go$r;
|
|
1232
|
+
};
|
|
1233
|
+
return go;
|
|
1234
|
+
};
|
|
1235
|
+
const dropEnd = n => xs => take((() => {
|
|
1236
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
1237
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
1238
|
+
while (go$c) {
|
|
1239
|
+
const b = go$a0, v = go$a1;
|
|
1240
|
+
if (v.tag === "Nil") {
|
|
1241
|
+
go$c = false;
|
|
1242
|
+
go$r = b;
|
|
1243
|
+
continue;
|
|
1244
|
+
}
|
|
1245
|
+
if (v.tag === "Cons") {
|
|
1246
|
+
go$a0 = b + 1 | 0;
|
|
1247
|
+
go$a1 = v._2;
|
|
1248
|
+
continue;
|
|
1249
|
+
}
|
|
1250
|
+
$runtime.fail();
|
|
1251
|
+
}
|
|
1252
|
+
return go$r;
|
|
1253
|
+
};
|
|
1254
|
+
return go(0)(xs) - n | 0;
|
|
1255
|
+
})())(xs);
|
|
1256
|
+
const drop = drop$a0$copy => drop$a1$copy => {
|
|
1257
|
+
let drop$a0 = drop$a0$copy, drop$a1 = drop$a1$copy, drop$c = true, drop$r;
|
|
1258
|
+
while (drop$c) {
|
|
1259
|
+
const v = drop$a0, v1 = drop$a1;
|
|
1260
|
+
if (v < 1) {
|
|
1261
|
+
drop$c = false;
|
|
1262
|
+
drop$r = v1;
|
|
1263
|
+
continue;
|
|
1264
|
+
}
|
|
1265
|
+
if (v1.tag === "Nil") {
|
|
1266
|
+
drop$c = false;
|
|
1267
|
+
drop$r = Data$dList$dTypes.Nil;
|
|
1268
|
+
continue;
|
|
1269
|
+
}
|
|
1270
|
+
if (v1.tag === "Cons") {
|
|
1271
|
+
drop$a0 = v - 1 | 0;
|
|
1272
|
+
drop$a1 = v1._2;
|
|
1273
|
+
continue;
|
|
1274
|
+
}
|
|
1275
|
+
$runtime.fail();
|
|
1276
|
+
}
|
|
1277
|
+
return drop$r;
|
|
1278
|
+
};
|
|
1279
|
+
const slice = start => end => xs => take(end - start | 0)(drop(start)(xs));
|
|
1280
|
+
const takeEnd = n => xs => drop((() => {
|
|
1281
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
1282
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
1283
|
+
while (go$c) {
|
|
1284
|
+
const b = go$a0, v = go$a1;
|
|
1285
|
+
if (v.tag === "Nil") {
|
|
1286
|
+
go$c = false;
|
|
1287
|
+
go$r = b;
|
|
1288
|
+
continue;
|
|
1289
|
+
}
|
|
1290
|
+
if (v.tag === "Cons") {
|
|
1291
|
+
go$a0 = b + 1 | 0;
|
|
1292
|
+
go$a1 = v._2;
|
|
1293
|
+
continue;
|
|
1294
|
+
}
|
|
1295
|
+
$runtime.fail();
|
|
1296
|
+
}
|
|
1297
|
+
return go$r;
|
|
1298
|
+
};
|
|
1299
|
+
return go(0)(xs) - n | 0;
|
|
1300
|
+
})())(xs);
|
|
1301
|
+
const deleteBy = v => v1 => v2 => {
|
|
1302
|
+
if (v2.tag === "Nil") { return Data$dList$dTypes.Nil; }
|
|
1303
|
+
if (v2.tag === "Cons") {
|
|
1304
|
+
if (v(v1)(v2._1)) { return v2._2; }
|
|
1305
|
+
return Data$dList$dTypes.$List("Cons", v2._1, deleteBy(v)(v1)(v2._2));
|
|
1306
|
+
}
|
|
1307
|
+
$runtime.fail();
|
|
1308
|
+
};
|
|
1309
|
+
const unionBy = eq2 => xs => ys => {
|
|
1310
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
1311
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
1312
|
+
while (go$c) {
|
|
1313
|
+
const b = go$a0, v = go$a1;
|
|
1314
|
+
if (v.tag === "Nil") {
|
|
1315
|
+
go$c = false;
|
|
1316
|
+
go$r = b;
|
|
1317
|
+
continue;
|
|
1318
|
+
}
|
|
1319
|
+
if (v.tag === "Cons") {
|
|
1320
|
+
go$a0 = deleteBy(eq2)(v._1)(b);
|
|
1321
|
+
go$a1 = v._2;
|
|
1322
|
+
continue;
|
|
1323
|
+
}
|
|
1324
|
+
$runtime.fail();
|
|
1325
|
+
}
|
|
1326
|
+
return go$r;
|
|
1327
|
+
};
|
|
1328
|
+
return Data$dList$dTypes.foldableList.foldr(Data$dList$dTypes.Cons)(go(nubByEq(eq2)(ys))(xs))(xs);
|
|
1329
|
+
};
|
|
1330
|
+
const union = dictEq => unionBy(dictEq.eq);
|
|
1331
|
+
const deleteAt = v => v1 => {
|
|
1332
|
+
if (v1.tag === "Cons") {
|
|
1333
|
+
if (v === 0) { return Data$dMaybe.$Maybe("Just", v1._2); }
|
|
1334
|
+
const $0 = deleteAt(v - 1 | 0)(v1._2);
|
|
1335
|
+
if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dList$dTypes.$List("Cons", v1._1, $0._1)); }
|
|
1336
|
+
}
|
|
1337
|
+
return Data$dMaybe.Nothing;
|
|
1338
|
+
};
|
|
1339
|
+
const $$delete = dictEq => deleteBy(dictEq.eq);
|
|
1340
|
+
const difference = dictEq => {
|
|
1341
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
1342
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
1343
|
+
while (go$c) {
|
|
1344
|
+
const b = go$a0, v = go$a1;
|
|
1345
|
+
if (v.tag === "Nil") {
|
|
1346
|
+
go$c = false;
|
|
1347
|
+
go$r = b;
|
|
1348
|
+
continue;
|
|
1349
|
+
}
|
|
1350
|
+
if (v.tag === "Cons") {
|
|
1351
|
+
go$a0 = deleteBy(dictEq.eq)(v._1)(b);
|
|
1352
|
+
go$a1 = v._2;
|
|
1353
|
+
continue;
|
|
1354
|
+
}
|
|
1355
|
+
$runtime.fail();
|
|
1356
|
+
}
|
|
1357
|
+
return go$r;
|
|
1358
|
+
};
|
|
1359
|
+
return go;
|
|
1360
|
+
};
|
|
1361
|
+
const concatMap = b => a => Data$dList$dTypes.bindList.bind(a)(b);
|
|
1362
|
+
const concat = v => Data$dList$dTypes.bindList.bind(v)(identity);
|
|
1363
|
+
const catMaybes = /* #__PURE__ */ (() => {
|
|
1364
|
+
const go = go$a0$copy => go$a1$copy => {
|
|
1365
|
+
let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
|
|
1366
|
+
while (go$c) {
|
|
1367
|
+
const v = go$a0, v1 = go$a1;
|
|
1368
|
+
if (v1.tag === "Nil") {
|
|
1369
|
+
const go$1 = go$1$a0$copy => go$1$a1$copy => {
|
|
1370
|
+
let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
|
|
1371
|
+
while (go$1$c) {
|
|
1372
|
+
const v$1 = go$1$a0, v1$1 = go$1$a1;
|
|
1373
|
+
if (v1$1.tag === "Nil") {
|
|
1374
|
+
go$1$c = false;
|
|
1375
|
+
go$1$r = v$1;
|
|
1376
|
+
continue;
|
|
1377
|
+
}
|
|
1378
|
+
if (v1$1.tag === "Cons") {
|
|
1379
|
+
go$1$a0 = Data$dList$dTypes.$List("Cons", v1$1._1, v$1);
|
|
1380
|
+
go$1$a1 = v1$1._2;
|
|
1381
|
+
continue;
|
|
1382
|
+
}
|
|
1383
|
+
$runtime.fail();
|
|
1384
|
+
}
|
|
1385
|
+
return go$1$r;
|
|
1386
|
+
};
|
|
1387
|
+
go$c = false;
|
|
1388
|
+
go$r = go$1(Data$dList$dTypes.Nil)(v);
|
|
1389
|
+
continue;
|
|
1390
|
+
}
|
|
1391
|
+
if (v1.tag === "Cons") {
|
|
1392
|
+
if (v1._1.tag === "Nothing") {
|
|
1393
|
+
go$a0 = v;
|
|
1394
|
+
go$a1 = v1._2;
|
|
1395
|
+
continue;
|
|
1396
|
+
}
|
|
1397
|
+
if (v1._1.tag === "Just") {
|
|
1398
|
+
go$a0 = Data$dList$dTypes.$List("Cons", v1._1._1, v);
|
|
1399
|
+
go$a1 = v1._2;
|
|
1400
|
+
continue;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
$runtime.fail();
|
|
1404
|
+
}
|
|
1405
|
+
return go$r;
|
|
1406
|
+
};
|
|
1407
|
+
return go(Data$dList$dTypes.Nil);
|
|
1408
|
+
})();
|
|
1409
|
+
const alterAt = v => v1 => v2 => {
|
|
1410
|
+
if (v2.tag === "Cons") {
|
|
1411
|
+
if (v === 0) {
|
|
1412
|
+
return Data$dMaybe.$Maybe(
|
|
1413
|
+
"Just",
|
|
1414
|
+
(() => {
|
|
1415
|
+
const v3 = v1(v2._1);
|
|
1416
|
+
if (v3.tag === "Nothing") { return v2._2; }
|
|
1417
|
+
if (v3.tag === "Just") { return Data$dList$dTypes.$List("Cons", v3._1, v2._2); }
|
|
1418
|
+
$runtime.fail();
|
|
1419
|
+
})()
|
|
1420
|
+
);
|
|
1421
|
+
}
|
|
1422
|
+
const $0 = alterAt(v - 1 | 0)(v1)(v2._2);
|
|
1423
|
+
if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dList$dTypes.$List("Cons", v2._1, $0._1)); }
|
|
1424
|
+
}
|
|
1425
|
+
return Data$dMaybe.Nothing;
|
|
1426
|
+
};
|
|
1427
|
+
const modifyAt = n => f => alterAt(n)(x => Data$dMaybe.$Maybe("Just", f(x)));
|
|
1428
|
+
export {
|
|
1429
|
+
Pattern,
|
|
1430
|
+
alterAt,
|
|
1431
|
+
any,
|
|
1432
|
+
catMaybes,
|
|
1433
|
+
concat,
|
|
1434
|
+
concatMap,
|
|
1435
|
+
$$delete as delete,
|
|
1436
|
+
deleteAt,
|
|
1437
|
+
deleteBy,
|
|
1438
|
+
difference,
|
|
1439
|
+
drop,
|
|
1440
|
+
dropEnd,
|
|
1441
|
+
dropWhile,
|
|
1442
|
+
elemIndex,
|
|
1443
|
+
elemLastIndex,
|
|
1444
|
+
eqPattern,
|
|
1445
|
+
filter,
|
|
1446
|
+
filterM,
|
|
1447
|
+
findIndex,
|
|
1448
|
+
findLastIndex,
|
|
1449
|
+
foldM,
|
|
1450
|
+
fromFoldable,
|
|
1451
|
+
group,
|
|
1452
|
+
groupAll,
|
|
1453
|
+
groupAllBy,
|
|
1454
|
+
groupBy,
|
|
1455
|
+
head,
|
|
1456
|
+
identity,
|
|
1457
|
+
index,
|
|
1458
|
+
init,
|
|
1459
|
+
insert,
|
|
1460
|
+
insertAt,
|
|
1461
|
+
insertBy,
|
|
1462
|
+
intersect,
|
|
1463
|
+
intersectBy,
|
|
1464
|
+
last,
|
|
1465
|
+
length,
|
|
1466
|
+
many,
|
|
1467
|
+
manyRec,
|
|
1468
|
+
mapMaybe,
|
|
1469
|
+
modifyAt,
|
|
1470
|
+
newtypePattern,
|
|
1471
|
+
nub,
|
|
1472
|
+
nubBy,
|
|
1473
|
+
nubByEq,
|
|
1474
|
+
nubEq,
|
|
1475
|
+
$$null as null,
|
|
1476
|
+
ordPattern,
|
|
1477
|
+
partition,
|
|
1478
|
+
range,
|
|
1479
|
+
reverse,
|
|
1480
|
+
showPattern,
|
|
1481
|
+
singleton,
|
|
1482
|
+
slice,
|
|
1483
|
+
snoc,
|
|
1484
|
+
some,
|
|
1485
|
+
someRec,
|
|
1486
|
+
sort,
|
|
1487
|
+
sortBy,
|
|
1488
|
+
span,
|
|
1489
|
+
stripPrefix,
|
|
1490
|
+
tail,
|
|
1491
|
+
take,
|
|
1492
|
+
takeEnd,
|
|
1493
|
+
takeWhile,
|
|
1494
|
+
toUnfoldable,
|
|
1495
|
+
transpose,
|
|
1496
|
+
uncons,
|
|
1497
|
+
union,
|
|
1498
|
+
unionBy,
|
|
1499
|
+
unsnoc,
|
|
1500
|
+
unzip,
|
|
1501
|
+
updateAt,
|
|
1502
|
+
zip,
|
|
1503
|
+
zipWith,
|
|
1504
|
+
zipWithA
|
|
1505
|
+
};
|