@explorable-viz/fluid 0.12.2 → 0.12.4
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/dist/fluid/shared/fluid.mjs +478 -438
- package/dist/fluid/shared/load-figure.js +3193 -2969
- 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 +13 -26
- package/script/install-website.sh +34 -9
- package/web/lib/CodeMirror.svelte +19 -0
- package/web/lib/DataPane.svelte +46 -0
- package/web/lib/Figure.svelte +38 -0
- package/web/lib/FigureSrc.svelte +35 -0
- package/web/lib/Grid.svelte +32 -0
- package/web/lib/index.js +5 -0
- package/web/lib/view-styles.css +262 -0
- package/website/article/eslint.config.js +45 -0
- package/website/article/package.json +46 -0
- package/website/article/src/app.d.ts +13 -0
- package/website/article/src/app.html +12 -0
- package/website/article/src/lib/assets/css/styles.css +245 -0
- package/website/article/src/lib/assets/image/bristol.png +0 -0
- package/website/article/src/lib/assets/image/fluid.png +0 -0
- package/website/article/src/lib/assets/image/iccs.png +0 -0
- package/website/article/src/lib/assets/image/schmidt.png +0 -0
- package/website/article/src/lib/assets/image/turing.jpg +0 -0
- package/website/article/src/lib/config/nav.ts +7 -0
- package/website/article/src/lib/config/supporters.ts +27 -0
- package/website/article/src/routes/+layout.svelte +15 -0
- package/website/article/src/routes/+layout.ts +1 -0
- package/website/article/src/routes/+page.svelte +31 -0
- package/website/article/src/routes/convolution/+page.svelte +62 -0
- package/website/article/src/routes/energy-scatter/+page.svelte +34 -0
- package/website/article/src/routes/methane/+page.svelte +35 -0
- package/website/article/src/routes/moving-average/+page.svelte +57 -0
- package/website/article/src/routes/non-renewables/+page.svelte +40 -0
- package/website/article/src/routes/renewables-linked/+page.svelte +34 -0
- package/website/article/src/routes/scigen-1805.02474v1-10/+page.svelte +40 -0
- package/website/article/static/fluid/lib/graphics.fld +274 -0
- package/website/article/static/fluid/lib/matrix.fld +40 -0
- package/website/article/static/fluid/lib/prelude.fld +348 -0
- package/website/article/static/fluid/lib/stats.fld +83 -0
- package/website/article/svelte.config.js +13 -0
- package/website/article/test.mjs +66 -11
- package/website/article/tsconfig.json +20 -0
- package/website/article/vite.config.ts +6 -0
- package/.spago/aff/v7.1.0/.editorconfig +0 -13
- package/.spago/aff/v7.1.0/.eslintrc.json +0 -28
- package/.spago/aff/v7.1.0/.gitignore +0 -14
- package/.spago/aff/v7.1.0/.tidyrc.json +0 -10
- package/.spago/affjax/v13.0.0/.editorconfig +0 -13
- package/.spago/affjax/v13.0.0/.eslintrc.json +0 -28
- package/.spago/affjax/v13.0.0/.gitignore +0 -14
- package/.spago/affjax/v13.0.0/.tidyrc.json +0 -10
- package/.spago/affjax-web/v1.0.0/.editorconfig +0 -13
- package/.spago/affjax-web/v1.0.0/.eslintrc.json +0 -30
- package/.spago/affjax-web/v1.0.0/.gitignore +0 -14
- package/.spago/affjax-web/v1.0.0/.tidyrc.json +0 -10
- package/.spago/argonaut-codecs/v9.1.0/.editorconfig +0 -13
- package/.spago/argonaut-codecs/v9.1.0/.gitignore +0 -9
- package/.spago/argonaut-codecs/v9.1.0/.tidyrc.json +0 -10
- package/.spago/argonaut-core/v7.0.0/.editorconfig +0 -13
- package/.spago/argonaut-core/v7.0.0/.eslintrc.json +0 -29
- package/.spago/argonaut-core/v7.0.0/.gitignore +0 -14
- package/.spago/argonaut-core/v7.0.0/.tidyrc.json +0 -10
- package/.spago/arraybuffer-types/v3.0.2/.editorconfig +0 -13
- package/.spago/arraybuffer-types/v3.0.2/.gitignore +0 -9
- package/.spago/arraybuffer-types/v3.0.2/.tidyrc.json +0 -10
- package/.spago/arrays/v7.2.1/.eslintrc.json +0 -26
- package/.spago/arrays/v7.2.1/.gitignore +0 -9
- package/.spago/assert/v6.0.0/.eslintrc.json +0 -26
- package/.spago/assert/v6.0.0/.gitignore +0 -8
- package/.spago/bifunctors/v6.0.0/.gitignore +0 -7
- package/.spago/catenable-lists/v7.0.0/.gitignore +0 -7
- package/.spago/console/v6.1.0/.eslintrc.json +0 -30
- package/.spago/console/v6.1.0/.gitignore +0 -9
- package/.spago/const/v6.0.0/.gitignore +0 -7
- package/.spago/contravariant/v6.0.0/.gitignore +0 -7
- package/.spago/control/v6.0.0/.gitignore +0 -7
- package/.spago/datetime/v6.1.0/.eslintrc.json +0 -26
- package/.spago/datetime/v6.1.0/.gitignore +0 -8
- package/.spago/debug/v6.0.2/.eslintrc.json +0 -36
- package/.spago/debug/v6.0.2/.gitignore +0 -8
- package/.spago/distributive/v6.0.0/.gitignore +0 -7
- package/.spago/effect/v4.0.0/.eslintrc.json +0 -26
- package/.spago/effect/v4.0.0/.gitignore +0 -8
- package/.spago/either/v6.1.0/.gitignore +0 -7
- package/.spago/enums/v6.0.1/.gitignore +0 -7
- package/.spago/exceptions/v6.0.0/.eslintrc.json +0 -26
- package/.spago/exceptions/v6.0.0/.gitignore +0 -8
- package/.spago/exists/v6.0.0/.gitignore +0 -7
- package/.spago/filterable/v5.0.0/.gitignore +0 -11
- package/.spago/foldable-traversable/v6.0.0/.eslintrc.json +0 -26
- package/.spago/foldable-traversable/v6.0.0/.gitignore +0 -8
- package/.spago/foreign/v7.0.0/.eslintrc.json +0 -26
- package/.spago/foreign/v7.0.0/.gitignore +0 -8
- package/.spago/foreign-object/v4.1.0/.eslintrc.json +0 -26
- package/.spago/foreign-object/v4.1.0/.gitignore +0 -8
- package/.spago/form-urlencoded/v7.0.0/.editorconfig +0 -13
- package/.spago/form-urlencoded/v7.0.0/.gitignore +0 -9
- package/.spago/form-urlencoded/v7.0.0/.tidyrc.json +0 -10
- package/.spago/free/v7.1.0/.gitignore +0 -8
- package/.spago/functions/v6.0.0/.eslintrc.json +0 -26
- package/.spago/functions/v6.0.0/.gitignore +0 -8
- package/.spago/functors/v5.0.0/.gitignore +0 -7
- package/.spago/gen/v4.0.0/.gitignore +0 -8
- package/.spago/graphs/v8.1.0/.gitignore +0 -7
- package/.spago/http-methods/v6.0.0/.editorconfig +0 -13
- package/.spago/http-methods/v6.0.0/.gitignore +0 -9
- package/.spago/http-methods/v6.0.0/.tidyrc.json +0 -10
- package/.spago/identity/v6.0.0/.gitignore +0 -7
- package/.spago/integers/v6.0.0/.eslintrc.json +0 -26
- package/.spago/integers/v6.0.0/.gitignore +0 -8
- package/.spago/invariant/v6.0.0/.gitignore +0 -7
- package/.spago/js-date/v8.0.0/.editorconfig +0 -13
- package/.spago/js-date/v8.0.0/.eslintrc.json +0 -29
- package/.spago/js-date/v8.0.0/.gitignore +0 -14
- package/.spago/js-date/v8.0.0/.tidyrc.json +0 -10
- package/.spago/js-uri/v3.1.0/.eslintrc.json +0 -30
- package/.spago/js-uri/v3.1.0/.gitignore +0 -14
- package/.spago/js-uri/v3.1.0/.tidyrc.json +0 -10
- package/.spago/lazy/v6.0.0/.eslintrc.json +0 -26
- package/.spago/lazy/v6.0.0/.gitignore +0 -8
- package/.spago/lcg/v4.0.0/.gitignore +0 -8
- package/.spago/lists/v7.0.0/.gitignore +0 -7
- package/.spago/maybe/v6.0.0/.gitignore +0 -7
- package/.spago/media-types/v6.0.0/.editorconfig +0 -13
- package/.spago/media-types/v6.0.0/.gitignore +0 -9
- package/.spago/media-types/v6.0.0/.tidyrc.json +0 -10
- package/.spago/newtype/v5.0.0/.gitignore +0 -7
- package/.spago/node-buffer/v9.0.0/.eslintrc.json +0 -26
- package/.spago/node-buffer/v9.0.0/.gitignore +0 -8
- package/.spago/node-fs/v9.1.0/.eslintrc.json +0 -29
- package/.spago/node-fs/v9.1.0/.gitignore +0 -9
- package/.spago/node-path/v5.0.0/.eslintrc.json +0 -26
- package/.spago/node-path/v5.0.0/.gitignore +0 -8
- package/.spago/node-process/v11.2.0/.eslintrc.json +0 -29
- package/.spago/node-process/v11.2.0/.gitignore +0 -8
- package/.spago/node-streams/v9.0.0/.eslintrc.json +0 -29
- package/.spago/node-streams/v9.0.0/.gitignore +0 -8
- package/.spago/nonempty/v7.0.0/.gitignore +0 -7
- package/.spago/now/v6.0.0/.editorconfig +0 -13
- package/.spago/now/v6.0.0/.eslintrc.json +0 -29
- package/.spago/now/v6.0.0/.gitignore +0 -14
- package/.spago/now/v6.0.0/.tidyrc.json +0 -10
- package/.spago/nullable/v6.0.0/.editorconfig +0 -13
- package/.spago/nullable/v6.0.0/.eslintrc.json +0 -29
- package/.spago/nullable/v6.0.0/.gitignore +0 -14
- package/.spago/nullable/v6.0.0/.tidyrc.json +0 -10
- package/.spago/optparse/v6.0.0/.gitignore +0 -8
- package/.spago/optparse/v6.0.0/.npmrc +0 -1
- package/.spago/ordered-collections/v3.1.1/.gitignore +0 -8
- package/.spago/orders/v6.0.0/.gitignore +0 -7
- package/.spago/parallel/v7.0.0/.gitignore +0 -7
- package/.spago/parsing/v10.3.1/.editorconfig +0 -13
- package/.spago/parsing/v10.3.1/.gitignore +0 -12
- package/.spago/parsing/v10.3.1/.tidyoperators +0 -231
- package/.spago/parsing/v10.3.1/.tidyrc.json +0 -10
- package/.spago/partial/v4.0.0/.eslintrc.json +0 -26
- package/.spago/partial/v4.0.0/.gitignore +0 -8
- package/.spago/posix-types/v6.0.0/.gitignore +0 -7
- package/.spago/prelude/v6.0.1/.eslintrc.json +0 -26
- package/.spago/prelude/v6.0.1/.gitignore +0 -8
- package/.spago/profunctor/v6.0.0/.gitignore +0 -7
- package/.spago/psci-support/v6.0.0/.eslintrc.json +0 -28
- package/.spago/psci-support/v6.0.0/.gitignore +0 -8
- package/.spago/quickcheck/v8.0.1/.eslintrc.json +0 -26
- package/.spago/quickcheck/v8.0.1/.gitignore +0 -8
- package/.spago/random/v6.0.0/.eslintrc.json +0 -26
- package/.spago/random/v6.0.0/.gitignore +0 -8
- package/.spago/record/v4.0.0/.eslintrc.json +0 -26
- package/.spago/record/v4.0.0/.gitignore +0 -8
- package/.spago/refs/v6.0.0/.eslintrc.json +0 -26
- package/.spago/refs/v6.0.0/.gitignore +0 -8
- package/.spago/st/v6.2.0/.eslintrc.json +0 -26
- package/.spago/st/v6.2.0/.gitignore +0 -8
- package/.spago/strings/v6.0.1/.eslintrc.json +0 -26
- package/.spago/strings/v6.0.1/.gitignore +0 -8
- package/.spago/tailrec/v6.1.0/.gitignore +0 -7
- package/.spago/transformers/v6.0.0/.gitignore +0 -7
- package/.spago/tuples/v7.0.0/.gitignore +0 -7
- package/.spago/type-equality/v4.0.1/.gitignore +0 -7
- package/.spago/typelevel-prelude/v7.0.0/.gitignore +0 -8
- package/.spago/unfoldable/v6.0.0/.eslintrc.json +0 -26
- package/.spago/unfoldable/v6.0.0/.gitignore +0 -8
- package/.spago/unicode/v6.0.0/.editorconfig +0 -13
- package/.spago/unicode/v6.0.0/.gitattributes +0 -2
- package/.spago/unicode/v6.0.0/.gitignore +0 -19
- package/.spago/unicode/v6.0.0/.tidyrc.json +0 -10
- package/.spago/unsafe-coerce/v6.0.0/.eslintrc.json +0 -26
- package/.spago/unsafe-coerce/v6.0.0/.gitignore +0 -8
- package/.spago/web-dom/v6.0.0/.eslintrc.json +0 -29
- package/.spago/web-dom/v6.0.0/.gitignore +0 -9
- package/.spago/web-events/v4.0.0/.eslintrc.json +0 -29
- package/.spago/web-events/v4.0.0/.gitignore +0 -8
- package/.spago/web-file/v4.0.0/.eslintrc.json +0 -29
- package/.spago/web-file/v4.0.0/.gitignore +0 -8
- package/.spago/web-html/v4.1.0/.eslintrc.json +0 -29
- package/.spago/web-html/v4.1.0/.gitignore +0 -8
- package/.spago/web-storage/v5.0.0/.eslintrc.json +0 -29
- package/.spago/web-storage/v5.0.0/.gitignore +0 -8
- package/.spago/web-xhr/v5.0.1/.eslintrc.json +0 -29
- package/.spago/web-xhr/v5.0.1/.gitignore +0 -8
- package/LICENSE +0 -21
- package/README.md +0 -95
- package/dist/fluid/shared/website-test.js +0 -41
- package/dist/fluid/shared/webtest-lib.js +0 -300023
- package/script/bundle-website.sh +0 -52
- package/script/util/clean.sh +0 -5
- package/script/util/lisp-case.sh +0 -10
- package/website/article/convolution/index.html +0 -97
- package/website/article/css/styles.css +0 -325
- package/website/article/css/view-styles.css +0 -205
- package/website/article/energy-scatter/index.html +0 -47
- package/website/article/index.html +0 -40
- package/website/article/methane/index.html +0 -46
- package/website/article/moving-average/index.html +0 -64
- package/website/article/non-renewables/index.html +0 -52
- package/website/article/renewables-linked/index.html +0 -46
- package/website/article/scigen-1805.02474v1-10/index.html +0 -54
- package/website/article/shared/util.js +0 -15
- /package/website/article/{favicon.ico → src/lib/assets/image/favicon.ico} +0 -0
- /package/website/article/{dataset → static/dataset}/SciGen/1805.02474v1-10.json +0 -0
- /package/website/article/{dataset → static/dataset}/methane-emissions.json +0 -0
- /package/website/article/{dataset → static/dataset}/non-renewables.json +0 -0
- /package/website/article/{dataset → static/dataset}/renewable-new.json +0 -0
- /package/website/article/{dataset → static/dataset}/renewable.json +0 -0
- /package/website/article/{fluid → static/fluid}/1805.02474v1-10.fld +0 -0
- /package/website/article/{fluid → static/fluid}/bar-chart-line-chart.fld +0 -0
- /package/website/article/{fluid → static/fluid}/convolution/emboss.fld +0 -0
- /package/website/article/{fluid → static/fluid}/convolution/testImage.fld +0 -0
- /package/website/article/{fluid → static/fluid}/convolution.fld +0 -0
- /package/website/article/{fluid → static/fluid}/dataset/scigen/_1805_02474v1_10.fld +0 -0
- /package/website/article/{fluid → static/fluid}/energyscatter.fld +0 -0
- /package/website/article/{fluid → static/fluid}/methane.fld +0 -0
- /package/website/article/{fluid → static/fluid}/methane_data.fld +0 -0
- /package/website/article/{fluid → static/fluid}/moving-average.fld +0 -0
- /package/website/article/{fluid → static/fluid}/non-renewables.fld +0 -0
- /package/website/article/{fluid → static/fluid}/nonRenewables.fld +0 -0
- /package/website/article/{fluid → static/fluid}/renewables.fld +0 -0
- /package/website/article/{fluid → static/fluid}/scigen.fld +0 -0
- /package/website/article/{fluid → static/fluid}/util.fld +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as $runtime from "../runtime.js";
|
|
2
|
+
import * as App$dUtil from "../App.Util/index.js";
|
|
3
|
+
import * as App$dUtil$dSelector from "../App.Util.Selector/index.js";
|
|
4
|
+
import * as Data$dMaybe from "../Data.Maybe/index.js";
|
|
5
|
+
import * as Data$dTuple from "../Data.Tuple/index.js";
|
|
6
|
+
import * as Val from "../Val/index.js";
|
|
7
|
+
const select = b => Data$dTuple.$Tuple(
|
|
8
|
+
Val.functorVal.map(v => {
|
|
9
|
+
if (v.tag === "Inert") { return App$dUtil.Inert; }
|
|
10
|
+
if (v.tag === "Reactive") { return App$dUtil.$SelState("Reactive", {persistent: !v._1.persistent, transient: v._1.transient}); }
|
|
11
|
+
$runtime.fail();
|
|
12
|
+
})(b),
|
|
13
|
+
App$dUtil.Persistent
|
|
14
|
+
);
|
|
15
|
+
const movingAverages_spec = {
|
|
16
|
+
spec: {fluidSrcPaths: ["fluid", "test/fluid"], inputs: ["methane"], query: Data$dMaybe.Nothing, linking: true, rowFilter: Data$dMaybe.Nothing},
|
|
17
|
+
"δ_out": x => Data$dTuple.$Tuple(x, App$dUtil.Persistent),
|
|
18
|
+
out_expect: x => Data$dTuple.$Tuple(x, App$dUtil.Persistent),
|
|
19
|
+
file: "linkedOutputs/moving-average.fld"
|
|
20
|
+
};
|
|
21
|
+
const linkedOutputs_spec2 = {
|
|
22
|
+
spec: {fluidSrcPaths: ["fluid", "test/fluid"], inputs: ["nonRenewables"], query: Data$dMaybe.Nothing, linking: true, rowFilter: Data$dMaybe.Nothing},
|
|
23
|
+
"δ_out": /* #__PURE__ */ App$dUtil$dSelector.multiViewEntry(0)(/* #__PURE__ */ App$dUtil$dSelector.constrArg("BarChart")(0)(x => App$dUtil$dSelector.barSegment(4)(3)(select)(App$dUtil$dSelector.barSegment(4)(1)(select)(App$dUtil$dSelector.barSegment(3)(2)(select)(x)._1)._1))),
|
|
24
|
+
out_expect: /* #__PURE__ */ (() => {
|
|
25
|
+
const $0 = App$dUtil$dSelector.multiViewEntry(0)(App$dUtil$dSelector.constrArg("BarChart")(0)(x => App$dUtil$dSelector.barSegment(4)(3)(select)(App$dUtil$dSelector.barSegment(4)(1)(select)(App$dUtil$dSelector.barSegment(3)(2)(select)(x)._1)._1)));
|
|
26
|
+
const $1 = App$dUtil$dSelector.multiViewEntry(1)(App$dUtil$dSelector.constrArg("ScatterPlot")(0)(x => App$dUtil$dSelector.dictVal("points")(App$dUtil$dSelector.listElement(6)(App$dUtil$dSelector.dictVal("y")(select)))(App$dUtil$dSelector.dictVal("points")(App$dUtil$dSelector.listElement(4)(App$dUtil$dSelector.dictVal("y")(select)))(x)._1)));
|
|
27
|
+
return x => $1($0(x)._1);
|
|
28
|
+
})(),
|
|
29
|
+
file: "slicing/linkedOutputs/stacked-bar-scatter-plot.fld"
|
|
30
|
+
};
|
|
31
|
+
const linkedOutputs_spec1 = {
|
|
32
|
+
spec: {fluidSrcPaths: ["fluid", "test/fluid"], inputs: ["renewables"], query: Data$dMaybe.Nothing, linking: true, rowFilter: Data$dMaybe.Nothing},
|
|
33
|
+
"δ_out": /* #__PURE__ */ App$dUtil$dSelector.multiViewEntry(0)(/* #__PURE__ */ App$dUtil$dSelector.constrArg("BarChart")(0)(/* #__PURE__ */ App$dUtil$dSelector.barSegment(1)(0)(select))),
|
|
34
|
+
out_expect: /* #__PURE__ */ (() => {
|
|
35
|
+
const $0 = App$dUtil$dSelector.multiViewEntry(1)(App$dUtil$dSelector.constrArg("LineChart")(0)(App$dUtil$dSelector.dictVal("plots")(x => App$dUtil$dSelector.listElement(3)(App$dUtil$dSelector.linePoint(2)(App$dUtil$dSelector.dictVal("y")(select)))(App$dUtil$dSelector.listElement(2)(App$dUtil$dSelector.linePoint(2)(App$dUtil$dSelector.dictVal("y")(select)))(App$dUtil$dSelector.listElement(1)(App$dUtil$dSelector.linePoint(2)(App$dUtil$dSelector.dictVal("y")(select)))(App$dUtil$dSelector.listElement(0)(App$dUtil$dSelector.linePoint(2)(App$dUtil$dSelector.dictVal("y")(select)))(x)._1)._1)._1))));
|
|
36
|
+
return x => $0(App$dUtil$dSelector.constrArg("MultiView")(0)(App$dUtil$dSelector.listElement(0)(App$dUtil$dSelector.constrArg("BarChart")(0)(App$dUtil$dSelector.barSegment(1)(0)(select))))(x)._1);
|
|
37
|
+
})(),
|
|
38
|
+
file: "slicing/linkedOutputs/bar-chart-line-chart.fld"
|
|
39
|
+
};
|
|
40
|
+
const linkedOutputs_cases = [
|
|
41
|
+
{
|
|
42
|
+
spec: {fluidSrcPaths: ["fluid", "test/fluid"], inputs: ["data"], query: Data$dMaybe.Nothing, linking: true, rowFilter: Data$dMaybe.Nothing},
|
|
43
|
+
"δ_out": /* #__PURE__ */ App$dUtil$dSelector.constrArg("Pair")(1)(select),
|
|
44
|
+
out_expect: select,
|
|
45
|
+
file: "linkedOutputs/pairs.fld"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
spec: {fluidSrcPaths: ["fluid", "test/fluid"], inputs: ["data"], query: Data$dMaybe.Nothing, linking: true, rowFilter: Data$dMaybe.Nothing},
|
|
49
|
+
"δ_out": /* #__PURE__ */ App$dUtil$dSelector.constrArg("Pair")(0)(/* #__PURE__ */ App$dUtil$dSelector.matrixElement(1)(1)(select)),
|
|
50
|
+
out_expect: /* #__PURE__ */ (() => {
|
|
51
|
+
const $0 = App$dUtil$dSelector.constrArg("Pair")(0)(x => App$dUtil$dSelector.matrixElement(1)(4)(select)(App$dUtil$dSelector.matrixElement(1)(3)(select)(App$dUtil$dSelector.matrixElement(1)(2)(select)(App$dUtil$dSelector.matrixElement(1)(1)(select)(App$dUtil$dSelector.matrixElement(1)(0)(select)(x)._1)._1)._1)._1));
|
|
52
|
+
const $1 = App$dUtil$dSelector.constrArg("Pair")(1)(x => App$dUtil$dSelector.matrixElement(2)(2)(select)(App$dUtil$dSelector.matrixElement(2)(1)(select)(App$dUtil$dSelector.matrixElement(2)(0)(select)(App$dUtil$dSelector.matrixElement(1)(2)(select)(App$dUtil$dSelector.matrixElement(1)(1)(select)(App$dUtil$dSelector.matrixElement(1)(0)(select)(App$dUtil$dSelector.matrixElement(0)(2)(select)(App$dUtil$dSelector.matrixElement(0)(1)(select)(App$dUtil$dSelector.matrixElement(0)(0)(select)(x)._1)._1)._1)._1)._1)._1)._1)._1));
|
|
53
|
+
return x => $1($0(x)._1);
|
|
54
|
+
})(),
|
|
55
|
+
file: "linkedOutputs/convolution.fld"
|
|
56
|
+
},
|
|
57
|
+
linkedOutputs_spec1,
|
|
58
|
+
linkedOutputs_spec2,
|
|
59
|
+
movingAverages_spec
|
|
60
|
+
];
|
|
61
|
+
export {linkedOutputs_cases, linkedOutputs_spec1, linkedOutputs_spec2, movingAverages_spec, select};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const misc_cases = [
|
|
2
|
+
{file: "arithmetic.fld", fwd_expect: "42"},
|
|
3
|
+
{file: "array.fld", fwd_expect: "(0, (3, 3))"},
|
|
4
|
+
{file: "boolean-precedence.fld", fwd_expect: "True"},
|
|
5
|
+
{file: "compose.fld", fwd_expect: "5"},
|
|
6
|
+
{file: "custom-infix.fld", fwd_expect: "True"},
|
|
7
|
+
{file: "dicts.fld", fwd_expect: "{ d: {}, e: { a: 5, ab: 6 }, e_ab: 6, f: { a: 6, ab: 7 }, g: { a: 5 } }"},
|
|
8
|
+
{file: "div-mod-quot-rem.fld", fwd_expect: "(1 :| -2 :| -2 :| 1 :| []) :| (2 :| -1 :| 1 :| -2 :| []) :| (1 :| -1 :| -1 :| 1 :| []) :| (2 :| 2 :| -2 :| -2 :| []) :| []"},
|
|
9
|
+
{file: "elif.fld", fwd_expect: "\"much more\" :| \"more\" :| \"less\" :| \"much less\" :| []"},
|
|
10
|
+
{file: "factorial.fld", fwd_expect: "40320"},
|
|
11
|
+
{file: "filter.fld", fwd_expect: "8 :| 7 :| []"},
|
|
12
|
+
{file: "first-class-constr.fld", fwd_expect: "(10 :| []) :| (12 :| []) :| (20 :| []) :| []"},
|
|
13
|
+
{file: "flatten.fld", fwd_expect: "(3, \"simon\") :| (4, \"john\") :| (6, \"sarah\") :| (7, \"claire\") :| []"},
|
|
14
|
+
{file: "foldr-sumSquares.fld", fwd_expect: "661"},
|
|
15
|
+
{file: "include-input-into-output.fld", fwd_expect: "(1, 1)"},
|
|
16
|
+
{file: "lexicalScoping.fld", fwd_expect: "\"6\""},
|
|
17
|
+
{file: "length.fld", fwd_expect: "2"},
|
|
18
|
+
{file: "lookup.fld", fwd_expect: "Some(\"sarah\")"},
|
|
19
|
+
{file: "map.fld", fwd_expect: "5 :| 7 :| 13 :| 15 :| 4 :| 3 :| -3 :| []"},
|
|
20
|
+
{file: "mergeSort.fld", fwd_expect: "1 :| 2 :| 3 :| []"},
|
|
21
|
+
{file: "normalise.fld", fwd_expect: "(33, 66)"},
|
|
22
|
+
{file: "not-parens-op.fld", fwd_expect: "@doc(\"hello\") -42"},
|
|
23
|
+
{file: "nub.fld", fwd_expect: "1 :| 2 :| 3 :| 4 :| []"},
|
|
24
|
+
{file: "paragraph.fld", fwd_expect: "Paragraph(Text(\"As shown in Table 3, BiLSTM gives significantly \") :| Text(\"better\") :| [])"},
|
|
25
|
+
{file: "pattern-match.fld", fwd_expect: "4"},
|
|
26
|
+
{file: "prefix-op.fld", fwd_expect: "True"},
|
|
27
|
+
{file: "range.fld", fwd_expect: "(0, 0) :| (0, 1) :| (1, 0) :| (1, 1) :| []"},
|
|
28
|
+
{file: "records.fld", fwd_expect: "{ a: 2, b: 6, c: 7, d: 5 :| [], e: 7 }"},
|
|
29
|
+
{file: "record-lookup.fld", fwd_expect: "True"},
|
|
30
|
+
{file: "reverse.fld", fwd_expect: "2 :| 1 :| []"},
|
|
31
|
+
{file: "module/import-simple.fld", fwd_expect: "84"},
|
|
32
|
+
{file: "module/import-simple-unused.fld", fwd_expect: "84"},
|
|
33
|
+
{file: "module/import-modules.fld", fwd_expect: "84"}
|
|
34
|
+
];
|
|
35
|
+
export {misc_cases};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const paragraph_cases = [
|
|
2
|
+
{file: "paragraph/basic.fld", fwd_expect: "Paragraph(\"Hello\" :| \"there,\" :| Paragraph(\"Alice\" :| []) :| \"!\" :| [])"},
|
|
3
|
+
{file: "paragraph/explicit.fld", fwd_expect: "Paragraph(Text(\"Hi \") :| \"Alice\" :| 5 :| \"+\" :| \"6\" :| \"is\" :| Text(\"16\") :| [])"}
|
|
4
|
+
];
|
|
5
|
+
export {paragraph_cases};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as Control$dMonad$dReader$dTrans from "../Control.Monad.Reader.Trans/index.js";
|
|
2
|
+
import * as Data$dArray from "../Data.Array/index.js";
|
|
3
|
+
import * as Data$dEq from "../Data.Eq/index.js";
|
|
4
|
+
import * as Data$dFunctor from "../Data.Functor/index.js";
|
|
5
|
+
import * as Data$dTuple from "../Data.Tuple/index.js";
|
|
6
|
+
import * as Effect$dAff from "../Effect.Aff/index.js";
|
|
7
|
+
import * as Effect$dAff$dClass from "../Effect.Aff.Class/index.js";
|
|
8
|
+
import * as File from "../File/index.js";
|
|
9
|
+
import * as Test$dSpecs$dBwd from "../Test.Specs.Bwd/index.js";
|
|
10
|
+
import * as Test$dSpecs$dComments from "../Test.Specs.Comments/index.js";
|
|
11
|
+
import * as Test$dSpecs$dDesugar from "../Test.Specs.Desugar/index.js";
|
|
12
|
+
import * as Test$dSpecs$dGraphics from "../Test.Specs.Graphics/index.js";
|
|
13
|
+
import * as Test$dSpecs$dLinkedInputs from "../Test.Specs.LinkedInputs/index.js";
|
|
14
|
+
import * as Test$dSpecs$dLinkedOutputs from "../Test.Specs.LinkedOutputs/index.js";
|
|
15
|
+
import * as Test$dSpecs$dMisc from "../Test.Specs.Misc/index.js";
|
|
16
|
+
import * as Test$dSpecs$dParagraph from "../Test.Specs.Paragraph/index.js";
|
|
17
|
+
import * as Test$dUtil from "../Test.Util/index.js";
|
|
18
|
+
import * as Test$dUtil$dMocha from "../Test.Util.Mocha/index.js";
|
|
19
|
+
import * as Test$dUtil$dSuite from "../Test.Util.Suite/index.js";
|
|
20
|
+
const scratchpad = dictMonadAff => {
|
|
21
|
+
const $$void = dictMonadAff.MonadEffect0().Monad0().Bind1().Apply0().Functor0().map(v => {});
|
|
22
|
+
return dictMonadError => dictMonadReader => {
|
|
23
|
+
const suite2 = Test$dUtil$dSuite.suite(dictMonadAff)(dictMonadError)(dictMonadReader);
|
|
24
|
+
return dictLoadFile => Data$dFunctor.arrayMap(m => Data$dTuple.$Tuple(m._1, $$void(m._2)))(suite2(dictLoadFile)(Test$dSpecs$dParagraph.paragraph_cases)(Data$dTuple.$Tuple(
|
|
25
|
+
1,
|
|
26
|
+
false
|
|
27
|
+
)));
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
const linkingTests = dictMonadAff => {
|
|
31
|
+
const linkedOutputsSuite = Test$dUtil$dSuite.linkedOutputsSuite(dictMonadAff);
|
|
32
|
+
const linkedInputsSuite = Test$dUtil$dSuite.linkedInputsSuite(dictMonadAff);
|
|
33
|
+
return dictMonadError => {
|
|
34
|
+
const linkedOutputsSuite1 = linkedOutputsSuite(dictMonadError);
|
|
35
|
+
const linkedInputsSuite1 = linkedInputsSuite(dictMonadError);
|
|
36
|
+
return dictMonadReader => {
|
|
37
|
+
const linkedOutputsSuite2 = linkedOutputsSuite1(dictMonadReader);
|
|
38
|
+
const linkedInputsSuite2 = linkedInputsSuite1(dictMonadReader);
|
|
39
|
+
return dictLoadFile => [
|
|
40
|
+
...linkedOutputsSuite2(dictLoadFile)(Test$dSpecs$dLinkedOutputs.linkedOutputs_cases),
|
|
41
|
+
...linkedInputsSuite2(dictLoadFile)(Test$dSpecs$dLinkedInputs.linkedInputs_cases)
|
|
42
|
+
];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
const filterSuite = dictMonadAff => {
|
|
47
|
+
const $$void = dictMonadAff.MonadEffect0().Monad0().Bind1().Apply0().Functor0().map(v => {});
|
|
48
|
+
return dictMonadError => dictMonadReader => dictLoadFile => files => cases => makeSuite => Data$dFunctor.arrayMap(m => Data$dTuple.$Tuple(m._1, $$void(m._2)))(makeSuite(dictMonadError)(dictMonadReader)(dictLoadFile)(Data$dArray.filterImpl(
|
|
49
|
+
c => Data$dArray.elem(Data$dEq.eqString)(c.file)(files),
|
|
50
|
+
cases
|
|
51
|
+
))(Data$dTuple.$Tuple(1, false)));
|
|
52
|
+
};
|
|
53
|
+
const benchmarks = dictMonadAff => {
|
|
54
|
+
const bwdSuite = Test$dUtil$dSuite.bwdSuite(dictMonadAff);
|
|
55
|
+
return dictMonadError => {
|
|
56
|
+
const bwdSuite1 = bwdSuite(dictMonadError);
|
|
57
|
+
return dictMonadReader => {
|
|
58
|
+
const suite2 = Test$dUtil$dSuite.suite(dictMonadAff)(dictMonadError)(dictMonadReader);
|
|
59
|
+
const bwdSuite2 = bwdSuite1(dictMonadReader);
|
|
60
|
+
return dictLoadFile => {
|
|
61
|
+
const suite3 = suite2(dictLoadFile);
|
|
62
|
+
return [
|
|
63
|
+
suite3(Test$dSpecs$dDesugar.desugar_cases),
|
|
64
|
+
suite3(Test$dSpecs$dMisc.misc_cases),
|
|
65
|
+
suite3(Test$dSpecs$dComments.comments_cases),
|
|
66
|
+
suite3(Test$dSpecs$dParagraph.paragraph_cases),
|
|
67
|
+
bwdSuite2(dictLoadFile)(Test$dSpecs$dBwd.bwd_cases),
|
|
68
|
+
suite3(Test$dSpecs$dGraphics.graphics_cases)
|
|
69
|
+
];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
const asTestSuite = dictMonadAff => {
|
|
75
|
+
const $$void = dictMonadAff.MonadEffect0().Monad0().Bind1().Apply0().Functor0().map(v => {});
|
|
76
|
+
return dictMonadError => dictLoadFile => suite => Data$dFunctor.arrayMap(m => Data$dTuple.$Tuple(m._1, $$void(m._2)))(suite(Data$dTuple.$Tuple(1, false)));
|
|
77
|
+
};
|
|
78
|
+
const allTests = dictMonadAff => {
|
|
79
|
+
const benchmarks1 = benchmarks(dictMonadAff);
|
|
80
|
+
const asTestSuite1 = asTestSuite(dictMonadAff);
|
|
81
|
+
const linkingTests1 = linkingTests(dictMonadAff);
|
|
82
|
+
return dictMonadError => {
|
|
83
|
+
const benchmarks2 = benchmarks1(dictMonadError);
|
|
84
|
+
const asTestSuite2 = asTestSuite1(dictMonadError);
|
|
85
|
+
const linkingTests2 = linkingTests1(dictMonadError);
|
|
86
|
+
return dictMonadReader => {
|
|
87
|
+
const benchmarks3 = benchmarks2(dictMonadReader);
|
|
88
|
+
const linkingTests3 = linkingTests2(dictMonadReader);
|
|
89
|
+
return dictLoadFile => [...Data$dArray.concat(Data$dFunctor.arrayMap(asTestSuite2(dictLoadFile))(benchmarks3(dictLoadFile))), ...linkingTests3(dictLoadFile)];
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
const main = () => {
|
|
94
|
+
for (
|
|
95
|
+
const $0 of Data$dFunctor.arrayMap(m => Data$dTuple.$Tuple(m._1, m._2({fluidSrcPaths: Test$dUtil.fluidSrcPaths})))(allTests(Effect$dAff$dClass.monadAffReader(Effect$dAff$dClass.monadAffAff))(Control$dMonad$dReader$dTrans.monadErrorReaderT(Effect$dAff.monadErrorAff))(Control$dMonad$dReader$dTrans.monadReaderReaderT(Effect$dAff.monadAff))({
|
|
96
|
+
loadFileFromPath: dictMonadError1 => dictMonadAff1 => x => {
|
|
97
|
+
const $1 = File.loadFileAff.loadFileFromPath(Effect$dAff.monadErrorAff)(Effect$dAff$dClass.monadAffAff)(x);
|
|
98
|
+
return v => $1;
|
|
99
|
+
}
|
|
100
|
+
}))
|
|
101
|
+
) {
|
|
102
|
+
Test$dUtil$dMocha.executeTest($0)();
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
const tests = dictMonadAff => allTests(dictMonadAff);
|
|
106
|
+
export {allTests, asTestSuite, benchmarks, filterSuite, linkingTests, main, scratchpad, tests};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import * as $runtime from "../runtime.js";
|
|
2
|
+
import * as App$dUtil from "../App.Util/index.js";
|
|
3
|
+
import * as Control$dMonad$dWriter$dTrans from "../Control.Monad.Writer.Trans/index.js";
|
|
4
|
+
import * as Data$dEq from "../Data.Eq/index.js";
|
|
5
|
+
import * as Data$dHeytingAlgebra from "../Data.HeytingAlgebra/index.js";
|
|
6
|
+
import * as Data$dList$dLazy from "../Data.List.Lazy/index.js";
|
|
7
|
+
import * as Data$dMap$dInternal from "../Data.Map.Internal/index.js";
|
|
8
|
+
import * as Data$dOrd from "../Data.Ord/index.js";
|
|
9
|
+
import * as Data$dShow from "../Data.Show/index.js";
|
|
10
|
+
import * as Data$dString$dCommon from "../Data.String.Common/index.js";
|
|
11
|
+
import * as Data$dTuple from "../Data.Tuple/index.js";
|
|
12
|
+
import * as Desug from "../Desug/index.js";
|
|
13
|
+
import * as Effect$dAff$dClass from "../Effect.Aff.Class/index.js";
|
|
14
|
+
import * as Effect$dConsole from "../Effect.Console/index.js";
|
|
15
|
+
import * as Effect$dException from "../Effect.Exception/index.js";
|
|
16
|
+
import * as Eval from "../Eval/index.js";
|
|
17
|
+
import * as Expr from "../Expr/index.js";
|
|
18
|
+
import * as File from "../File/index.js";
|
|
19
|
+
import * as Graph$dGraphImpl from "../Graph.GraphImpl/index.js";
|
|
20
|
+
import * as Lattice from "../Lattice/index.js";
|
|
21
|
+
import * as Module from "../Module/index.js";
|
|
22
|
+
import * as Parse from "../Parse/index.js";
|
|
23
|
+
import * as Pretty from "../Pretty/index.js";
|
|
24
|
+
import * as Pretty$dDoc from "../Pretty.Doc/index.js";
|
|
25
|
+
import * as SExpr from "../SExpr/index.js";
|
|
26
|
+
import * as Test$dBenchmark$dUtil from "../Test.Benchmark.Util/index.js";
|
|
27
|
+
import * as Util from "../Util/index.js";
|
|
28
|
+
import * as Val from "../Val/index.js";
|
|
29
|
+
const eq = /* #__PURE__ */ (() => SExpr.eqExpr(Data$dEq.eqUnit).eq)();
|
|
30
|
+
const boundedLattice = {BoundedJoinSemilattice0: () => Lattice.boundedJoinSemilatticeBoo, BoundedMeetSemilattice1: () => Lattice.boundedMeetSemilatticeBoo};
|
|
31
|
+
const graphGC = /* #__PURE__ */ Eval.graphGC(Graph$dGraphImpl.graphGraphImpl);
|
|
32
|
+
const graphGC1 = /* #__PURE__ */ graphGC(Val.applyEnvExpr)(Val.applyVal)(Val.foldableEnvExpr)(Val.foldableVal);
|
|
33
|
+
const getPersistent = v => {
|
|
34
|
+
if (v.tag === "Inert") { return false; }
|
|
35
|
+
if (v.tag === "Reactive") { return v._1.persistent; }
|
|
36
|
+
$runtime.fail();
|
|
37
|
+
};
|
|
38
|
+
const prettyVal = /* #__PURE__ */ Pretty.prettyVal(Val.highlightableBoolean);
|
|
39
|
+
const showPrettyShow = /* #__PURE__ */ (() => {
|
|
40
|
+
const $0 = Pretty.prettyExpr1(Val.highlightableBoolean);
|
|
41
|
+
return {show: v => Pretty$dDoc.renderWithIndent(Pretty$dDoc.Stmt)(0)(0)($0.pretty(v))._1};
|
|
42
|
+
})();
|
|
43
|
+
const greaterThanOrEq = /* #__PURE__ */ (() => {
|
|
44
|
+
const $0 = Expr.ordExpr(Data$dOrd.ordBoolean);
|
|
45
|
+
return a1 => a2 => $0.compare(a1)(a2) !== "LT";
|
|
46
|
+
})();
|
|
47
|
+
const showPrettyShow1 = {show: v => Pretty$dDoc.renderWithIndent(Pretty$dDoc.Stmt)(0)(0)(prettyVal.pretty(v))._1};
|
|
48
|
+
const greaterThanOrEq1 = /* #__PURE__ */ (() => {
|
|
49
|
+
const $0 = Val.ordVal(Data$dOrd.ordBoolean);
|
|
50
|
+
return a1 => a2 => $0.compare(a1)(a2) !== "LT";
|
|
51
|
+
})();
|
|
52
|
+
const dual = v => (
|
|
53
|
+
{
|
|
54
|
+
fwd: x => Val.functorEnvExpr.map(Data$dHeytingAlgebra.boolNot)(v.bwd(Val.functorVal.map(Data$dHeytingAlgebra.boolNot)(x))),
|
|
55
|
+
bwd: x => Val.functorVal.map(Data$dHeytingAlgebra.boolNot)(v.fwd(Val.functorEnvExpr.map(Data$dHeytingAlgebra.boolNot)(x)))
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
const graphGC2 = /* #__PURE__ */ graphGC(Val.applyVal)(Val.applyEnvExpr)(Val.foldableVal)(Val.foldableEnvExpr);
|
|
59
|
+
const monadWriterT = /* #__PURE__ */ Control$dMonad$dWriter$dTrans.monadWriterT(Test$dBenchmark$dUtil.monoidBenchRow);
|
|
60
|
+
const monadReaderWriterT = /* #__PURE__ */ Control$dMonad$dWriter$dTrans.monadReaderWriterT(Test$dBenchmark$dUtil.monoidBenchRow);
|
|
61
|
+
const monadWriterWriterT = /* #__PURE__ */ Control$dMonad$dWriter$dTrans.monadWriterWriterT(Test$dBenchmark$dUtil.monoidBenchRow);
|
|
62
|
+
const monadErrorWriterT = /* #__PURE__ */ Control$dMonad$dWriter$dTrans.monadErrorWriterT(Test$dBenchmark$dUtil.monoidBenchRow);
|
|
63
|
+
const testPretty = dictAnn => {
|
|
64
|
+
const prettyP2 = Pretty.prettyP(Pretty.prettyExpr(dictAnn));
|
|
65
|
+
return dictShow => s => dictMonadAff => {
|
|
66
|
+
const MonadEffect0 = dictMonadAff.MonadEffect0();
|
|
67
|
+
const Monad0 = MonadEffect0.Monad0();
|
|
68
|
+
const Bind1 = Monad0.Bind1();
|
|
69
|
+
const $0 = MonadEffect0.Monad0().Applicative0();
|
|
70
|
+
const $1 = Monad0.Applicative0();
|
|
71
|
+
return dictMonadError => {
|
|
72
|
+
const throwLeft = Util.throwLeft(dictMonadError)(Data$dShow.showString);
|
|
73
|
+
const withMsg = Util.withMsg(dictMonadError);
|
|
74
|
+
const $$throw = Util.throw(dictMonadError.MonadThrow0());
|
|
75
|
+
return Bind1.bind($0.pure())(() => Bind1.bind($0.pure())(() => Bind1.bind(withMsg("testPretty")(throwLeft(Parse.parse(Parse.withImports(Parse.expr))(prettyP2(s)))))(v => {
|
|
76
|
+
const $2 = eq(SExpr.functorExpr.map(v$1 => {})(s))(SExpr.functorExpr.map(v$1 => {})(v._1));
|
|
77
|
+
const $3 = $$throw("parse/prettyP round trip:\nOriginal\n" + Pretty$dDoc.renderWithIndent(Pretty$dDoc.Stmt)(0)(0)(Pretty.prettyExpr(Val.annUnit).pretty(SExpr.functorExpr.map(v$1 => {})(s)))._1 + "\nNew\n" + Pretty$dDoc.renderWithIndent(Pretty$dDoc.Stmt)(0)(0)(Pretty.prettyExpr(Val.annUnit).pretty(SExpr.functorExpr.map(v$1 => {})(v._1)))._1);
|
|
78
|
+
if (!$2) { return $3; }
|
|
79
|
+
if ($2) { return $1.pure(); }
|
|
80
|
+
$runtime.fail();
|
|
81
|
+
})));
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
const testPretty1 = /* #__PURE__ */ testPretty(Val.annUnit)(Data$dShow.showUnit);
|
|
86
|
+
const testOutcome = b => s => (b ? "\u001b[32m " : "\u001b[31m ") + (b ? "✔" : "✖") + "\u001b[0m " + s;
|
|
87
|
+
const testCondition = dictMonadThrow => dictMonadEffect => {
|
|
88
|
+
const Monad0 = dictMonadEffect.Monad0();
|
|
89
|
+
const $0 = Monad0.Applicative0();
|
|
90
|
+
return testName => b => msg => Monad0.Bind1().bind(dictMonadEffect.liftEffect(Effect$dConsole.log((b ? "\u001b[32m " : "\u001b[31m ") + (b ? "✔" : "✖") + "\u001b[0m " + testName + ": " + msg)))(() => {
|
|
91
|
+
const $1 = dictMonadThrow.throwError(Effect$dException.error("Test failed"));
|
|
92
|
+
if (!b) { return $1; }
|
|
93
|
+
return $0.pure();
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
const graphBenchmark = dictMonadWriter => name => Test$dBenchmark$dUtil.benchmark(dictMonadWriter)("G-" + name);
|
|
97
|
+
const fluidSrcPaths = ["fluid", "test/fluid"];
|
|
98
|
+
const checkPretty = dictPretty => expect => x => dictMonadEffect => {
|
|
99
|
+
const $0 = dictMonadEffect.Monad0().Applicative0();
|
|
100
|
+
return dictMonadError => {
|
|
101
|
+
const $1 = Data$dString$dCommon.trim(expect) === Pretty$dDoc.renderWithIndent(Pretty$dDoc.Stmt)(0)(0)(dictPretty.pretty(x))._1;
|
|
102
|
+
const $2 = dictMonadError.MonadThrow0().throwError(Effect$dException.error("checkPretty:\nExpected\n" + expect + "\nReceived\n" + Pretty$dDoc.renderWithIndent(Pretty$dDoc.Stmt)(0)(0)(dictPretty.pretty(x))._1));
|
|
103
|
+
if (!$1) { return $2; }
|
|
104
|
+
if ($1) { return $0.pure(); }
|
|
105
|
+
$runtime.fail();
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
const checkEq = dictBotOf => dictNeg => dictMeetSemilattice => dictEq => dictPretty => dictMonadError => {
|
|
109
|
+
const MonadThrow0 = dictMonadError.MonadThrow0();
|
|
110
|
+
return op1 => op2 => x => y => {
|
|
111
|
+
const v = Pretty.compare(dictBotOf)(dictNeg)(dictMeetSemilattice)(dictEq)(dictPretty)(op1)(op2)(x)(y);
|
|
112
|
+
const $0 = v._2;
|
|
113
|
+
return MonadThrow0.Monad0().Bind1().bind(Util.check(MonadThrow0)(v._1 === "")(v._1))(() => Util.check(MonadThrow0)($0 === "")($0));
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
const benchNames = {eval: "Eval", bwd: "Demands", demBy: "DemBy", fwd: "Suffices", demBy_G_direct: "DemBy-Dir", demBy_G_suff_dual: "DemBy-Suff"};
|
|
117
|
+
const testProperties = dictMonadReader => dictLoadFile => dictMonadWriter => s => gconfig => v => dictMonadAff => {
|
|
118
|
+
const MonadEffect0 = dictMonadAff.MonadEffect0();
|
|
119
|
+
const Monad0 = MonadEffect0.Monad0();
|
|
120
|
+
const Bind1 = Monad0.Bind1();
|
|
121
|
+
const graphEval = Eval.graphEval(dictMonadAff)(dictMonadReader)(dictLoadFile);
|
|
122
|
+
const Applicative0 = Monad0.Applicative0();
|
|
123
|
+
return dictMonadError => {
|
|
124
|
+
const graphEval1 = graphEval(dictMonadError);
|
|
125
|
+
const checkSatisfies = Util.checkSatisfies(dictMonadError.MonadThrow0());
|
|
126
|
+
const checkSatisfies1 = checkSatisfies(showPrettyShow);
|
|
127
|
+
const checkSatisfies2 = checkSatisfies(showPrettyShow1);
|
|
128
|
+
const withMsg = Util.withMsg(dictMonadError);
|
|
129
|
+
const $0 = v.bwd_expect;
|
|
130
|
+
const $1 = v.fwd_expect;
|
|
131
|
+
return Bind1.bind(Desug.desugGC(dictMonadError)(Data$dEq.eqBoolean)(boundedLattice)(s))(v1 => {
|
|
132
|
+
const $2 = v1.gc;
|
|
133
|
+
const $3 = v1.e;
|
|
134
|
+
return Bind1.bind(Test$dBenchmark$dUtil.benchmark$p(dictMonadWriter)("G-Eval")(v2 => graphEval1(gconfig)($3))(MonadEffect0)(dictMonadError))(v2 => {
|
|
135
|
+
const $4 = v2.g;
|
|
136
|
+
const $5 = graphGC1(v2);
|
|
137
|
+
const $6 = {fwd: x => $5.fwd(x)._1, bwd: x => $5.bwd(x)._1};
|
|
138
|
+
const out0 = Val.functorVal.map(getPersistent)(v["δv"](Val.functorVal.map(v$1 => App$dUtil.unselected)(Val.functorVal.map(v$1 => true)(v2["outα"])))._1);
|
|
139
|
+
return Bind1.bind(Test$dBenchmark$dUtil.benchmark$p(dictMonadWriter)("G-Demands")(v5 => Applicative0.pure($6.bwd(Util.spyWhen(false)("Selection for bwd")(Pretty.prettyP(prettyVal))(out0))))(MonadEffect0)(dictMonadError))(v5 => {
|
|
140
|
+
const $7 = v5._2;
|
|
141
|
+
const $8 = v5._1;
|
|
142
|
+
const in_s = $2.bwd($7);
|
|
143
|
+
return Bind1.bind((() => {
|
|
144
|
+
const in_e$p = $2.fwd(in_s);
|
|
145
|
+
return Bind1.bind(checkSatisfies1("fwd ⚬ bwd round-trip (desugar)")(in_e$p)(x => greaterThanOrEq(x)($7)))(() => Test$dBenchmark$dUtil.benchmark$p(dictMonadWriter)("G-Suffices")(v6 => Applicative0.pure($6.fwd(Val.$EnvExpr(
|
|
146
|
+
$8,
|
|
147
|
+
in_e$p
|
|
148
|
+
))))(MonadEffect0)(dictMonadError));
|
|
149
|
+
})())(out1 => Bind1.bind(checkSatisfies2("fwd ⚬ bwd round-trip (eval)")(out1)(x => greaterThanOrEq1(x)(out0)))(() => Bind1.bind((() => {
|
|
150
|
+
const $9 = $0 === "";
|
|
151
|
+
const $10 = withMsg("bwd_expect")(checkPretty(Pretty.prettyExpr(Val.annBoolean))($0)(in_s)(MonadEffect0)(dictMonadError));
|
|
152
|
+
if (!$9) { return $10; }
|
|
153
|
+
if ($9) { return Applicative0.pure(); }
|
|
154
|
+
$runtime.fail();
|
|
155
|
+
})())(() => Bind1.bind((() => {
|
|
156
|
+
const $9 = $1 === "";
|
|
157
|
+
const $10 = withMsg("fwd_expect")(checkPretty(prettyVal)($1)(Util.spyWhen(false)("fwd ⚬ bwd")(Pretty.prettyP(prettyVal))(out1))(MonadEffect0)(dictMonadError));
|
|
158
|
+
if (!$9) { return $10; }
|
|
159
|
+
if ($9) { return Applicative0.pure(); }
|
|
160
|
+
$runtime.fail();
|
|
161
|
+
})())(() => Bind1.bind(Test$dBenchmark$dUtil.recordGraphSize(Graph$dGraphImpl.graphGraphImpl)(dictMonadWriter)($4))(() => Bind1.bind(Applicative0.pure())(() => {
|
|
162
|
+
const $9 = dual($6);
|
|
163
|
+
const $10 = graphGC2({
|
|
164
|
+
g: Graph$dGraphImpl.$GraphImpl({out: v2.g._1.in_, in_: v2.g._1.out, sinks: v2.g._1.sources, sources: v2.g._1.sinks, vertices: v2.g._1.vertices}),
|
|
165
|
+
graph_fwd: v2.graph_fwd,
|
|
166
|
+
graph_bwd: v2.graph_bwd,
|
|
167
|
+
"inα": v2["outα"],
|
|
168
|
+
"outα": v2["inα"]
|
|
169
|
+
});
|
|
170
|
+
return Bind1.bind(Test$dBenchmark$dUtil.benchmark$p(dictMonadWriter)("G-DemBy-Dir")(v8 => Applicative0.pure($10.bwd(v5)._1))(MonadEffect0)(dictMonadError))(out2 => Bind1.bind(Test$dBenchmark$dUtil.benchmark$p(dictMonadWriter)("G-DemBy-Suff")(v8 => Applicative0.pure($9.bwd(v5)))(MonadEffect0)(dictMonadError))(out3 => Applicative0.pure()));
|
|
171
|
+
}))))));
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
const test = dictMonadReader => {
|
|
178
|
+
const testProperties1 = testProperties(monadReaderWriterT(dictMonadReader));
|
|
179
|
+
return dictLoadFile => file => primitives => spec => v => dictMonadAff => {
|
|
180
|
+
const MonadEffect0 = dictMonadAff.MonadEffect0();
|
|
181
|
+
const Monad0 = MonadEffect0.Monad0();
|
|
182
|
+
const Bind1 = Monad0.Bind1();
|
|
183
|
+
const loadFile1 = File.loadFile(dictLoadFile)(Monad0);
|
|
184
|
+
const $0 = MonadEffect0.Monad0().Applicative0();
|
|
185
|
+
const prepConfig = Module.prepConfig(dictMonadAff);
|
|
186
|
+
const replicateM = Data$dList$dLazy.replicateM(monadWriterT(Monad0));
|
|
187
|
+
const monadWriterWriterT1 = monadWriterWriterT(Monad0);
|
|
188
|
+
const monadAffWriter = Effect$dAff$dClass.monadAffWriter(dictMonadAff)(Test$dBenchmark$dUtil.monoidBenchRow);
|
|
189
|
+
return dictMonadError => {
|
|
190
|
+
const prepConfig1 = prepConfig(dictMonadError)(dictMonadReader)(dictLoadFile);
|
|
191
|
+
const testProperties2 = testProperties1((() => {
|
|
192
|
+
const $1 = dictMonadAff.MonadEffect0().Monad0();
|
|
193
|
+
const loadFileFromPath1 = dictLoadFile.loadFileFromPath(dictMonadError)(dictMonadAff);
|
|
194
|
+
return {
|
|
195
|
+
loadFileFromPath: dictMonadError1 => dictMonadAff1 => x => $1.Bind1().bind(loadFileFromPath1(x))(a => $1.Applicative0().pure(Data$dTuple.$Tuple(
|
|
196
|
+
a,
|
|
197
|
+
Data$dMap$dInternal.Leaf
|
|
198
|
+
)))
|
|
199
|
+
};
|
|
200
|
+
})())(monadWriterWriterT1);
|
|
201
|
+
const monadErrorWriterT1 = monadErrorWriterT(dictMonadError);
|
|
202
|
+
const $1 = v._1;
|
|
203
|
+
return Bind1.bind(loadFile1(dictMonadError)(dictMonadAff)(fluidSrcPaths)(file))(fluidSrc => Bind1.bind($0.pure())(() => Bind1.bind(prepConfig1(primitives)(fluidSrc))(v1 => {
|
|
204
|
+
const $2 = v1.gconfig;
|
|
205
|
+
const $3 = v1.s;
|
|
206
|
+
return Bind1.bind(testPretty1($3)(dictMonadAff)(dictMonadError))(() => Bind1.bind(replicateM($1)(testProperties2($3)($2)(spec)(monadAffWriter)(monadErrorWriterT1)))(v2 => Monad0.Applicative0().pure(Test$dBenchmark$dUtil.divRow(v2._2)($1))));
|
|
207
|
+
})));
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
export {
|
|
212
|
+
benchNames,
|
|
213
|
+
boundedLattice,
|
|
214
|
+
checkEq,
|
|
215
|
+
checkPretty,
|
|
216
|
+
dual,
|
|
217
|
+
eq,
|
|
218
|
+
fluidSrcPaths,
|
|
219
|
+
getPersistent,
|
|
220
|
+
graphBenchmark,
|
|
221
|
+
graphGC,
|
|
222
|
+
graphGC1,
|
|
223
|
+
graphGC2,
|
|
224
|
+
greaterThanOrEq,
|
|
225
|
+
greaterThanOrEq1,
|
|
226
|
+
monadErrorWriterT,
|
|
227
|
+
monadReaderWriterT,
|
|
228
|
+
monadWriterT,
|
|
229
|
+
monadWriterWriterT,
|
|
230
|
+
prettyVal,
|
|
231
|
+
showPrettyShow,
|
|
232
|
+
showPrettyShow1,
|
|
233
|
+
test,
|
|
234
|
+
testCondition,
|
|
235
|
+
testOutcome,
|
|
236
|
+
testPretty,
|
|
237
|
+
testPretty1,
|
|
238
|
+
testProperties
|
|
239
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Test$dUtil$dDebug$dDefaults from "../Test.Util.Debug.Defaults/index.js";
|
|
2
|
+
const tracing = Test$dUtil$dDebug$dDefaults.tracingDefaults;
|
|
3
|
+
const timing = Test$dUtil$dDebug$dDefaults.timingDefaults;
|
|
4
|
+
const testing = Test$dUtil$dDebug$dDefaults.testingDefaults;
|
|
5
|
+
const checking = Test$dUtil$dDebug$dDefaults.checkingDefaults;
|
|
6
|
+
export {checking, testing, timing, tracing};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const tracingDefaults = {
|
|
2
|
+
runWithGraphT: false,
|
|
3
|
+
graphBwdSlice: false,
|
|
4
|
+
graphBwdSlice_vertexData: false,
|
|
5
|
+
graphFwdSlice: false,
|
|
6
|
+
checkEq: false,
|
|
7
|
+
bwdSelection: false,
|
|
8
|
+
fwdAfterBwd: false,
|
|
9
|
+
mediatingData: false,
|
|
10
|
+
mouseEvent: false,
|
|
11
|
+
intermediates: true
|
|
12
|
+
};
|
|
13
|
+
const timingDefaults = {selectionResult: false};
|
|
14
|
+
const testingDefaults = {fwdPreservesTop: false, bwdDuals: false, fwdDuals: false, naiveFwd: false};
|
|
15
|
+
const checkingDefaults = {edgeListGC: false, edgeListSorted: false, inputsAreSinks: false, outputsInGraph: false, allocRoundTrip: false, mustEq: false};
|
|
16
|
+
export {checkingDefaults, testingDefaults, timingDefaults, tracingDefaults};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* global exports, it, describe */
|
|
2
|
+
|
|
3
|
+
// module Test.Spec.Mocha2
|
|
4
|
+
|
|
5
|
+
if (typeof describe !== 'function' || typeof it !== 'function') {
|
|
6
|
+
throw new Error('Mocha globals seem to be unavailable!');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
only :: Boolean
|
|
11
|
+
name :: String
|
|
12
|
+
run :: (Effect Unit -> (Error -> Effect Unit) -> Effect Unit)
|
|
13
|
+
done
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
export function itAsync(only) {
|
|
17
|
+
"use strict";
|
|
18
|
+
return function (name) {
|
|
19
|
+
return function (run) {
|
|
20
|
+
return function () {
|
|
21
|
+
var f = only ? it.only : it;
|
|
22
|
+
f(name, function (done) { // f :: String ->
|
|
23
|
+
return run(function () {
|
|
24
|
+
done();
|
|
25
|
+
return function () {};
|
|
26
|
+
})(function (err) {
|
|
27
|
+
done(err);
|
|
28
|
+
return function () {};
|
|
29
|
+
})();
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function itPending(name) {
|
|
37
|
+
"use strict";
|
|
38
|
+
return function () {
|
|
39
|
+
it(name);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function describe(only) {
|
|
44
|
+
"use strict";
|
|
45
|
+
return function (name) {
|
|
46
|
+
return function (nested) {
|
|
47
|
+
return function () {
|
|
48
|
+
var f = only ? describe.only : describe;
|
|
49
|
+
f(name, function () {
|
|
50
|
+
nested();
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as $runtime from "../runtime.js";
|
|
2
|
+
import * as Effect$dAff from "../Effect.Aff/index.js";
|
|
3
|
+
import {describe, itAsync, itPending} from "./foreign.js";
|
|
4
|
+
const executeTest = v => {
|
|
5
|
+
const $0 = v._2;
|
|
6
|
+
return itAsync(true)(v._1)(onSuccess => onError => {
|
|
7
|
+
const $1 = Effect$dAff.runAff(v2 => {
|
|
8
|
+
if (v2.tag === "Left") { return onError(v2._1); }
|
|
9
|
+
if (v2.tag === "Right") { return onSuccess; }
|
|
10
|
+
$runtime.fail();
|
|
11
|
+
})($0);
|
|
12
|
+
return () => {$1();};
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
const run = a => () => {
|
|
16
|
+
for (const $0 of a) {
|
|
17
|
+
executeTest($0)();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {executeTest, run};
|
|
21
|
+
export * from "./foreign.js";
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as Control$dPromise from "../Control.Promise/index.js";
|
|
2
|
+
import * as Data$dFoldable from "../Data.Foldable/index.js";
|
|
3
|
+
import * as Data$dShow from "../Data.Show/index.js";
|
|
4
|
+
import * as Data$dString$dCodeUnits from "../Data.String.CodeUnits/index.js";
|
|
5
|
+
import * as Effect$dAff from "../Effect.Aff/index.js";
|
|
6
|
+
import * as Effect$dConsole from "../Effect.Console/index.js";
|
|
7
|
+
import * as Effect$dException from "../Effect.Exception/index.js";
|
|
8
|
+
import * as Test$dUtil from "../Test.Util/index.js";
|
|
9
|
+
import * as Toppokki from "../Toppokki/index.js";
|
|
10
|
+
import {_launch} from "./foreign.js";
|
|
11
|
+
const sequence_ = /* #__PURE__ */ Data$dFoldable.traverse_(Effect$dAff.applicativeAff)(Data$dFoldable.foldableArray)(Data$dFoldable.identity);
|
|
12
|
+
const testCondition = /* #__PURE__ */ Test$dUtil.testCondition(Effect$dAff.monadThrowAff)(Effect$dAff.monadEffectAff);
|
|
13
|
+
const for_ = /* #__PURE__ */ Data$dFoldable.for_(Effect$dAff.applicativeAff)(Data$dFoldable.foldableArray);
|
|
14
|
+
const timeout = 60000;
|
|
15
|
+
const textContentValue = page => selector => Effect$dAff._bind(Toppokki.runPromiseAffE3(Toppokki._unsafePageEval)(selector)("element => element.textContent")(page))(captionText => Effect$dAff._pure(captionText));
|
|
16
|
+
const show$p = v => v;
|
|
17
|
+
const runTests = arr => Control$dPromise.fromAff(sequence_(arr));
|
|
18
|
+
const puppeteerTests = {logging: true, headless: true};
|
|
19
|
+
const log$p = dictMonadEffect => x => dictMonadEffect.liftEffect(Effect$dConsole.log(x));
|
|
20
|
+
const waitFor = selector => page => {
|
|
21
|
+
const report = testCondition(selector);
|
|
22
|
+
return Effect$dAff._bind(Effect$dAff._liftEffect(Effect$dConsole.log("Waiting for " + selector)))(() => Effect$dAff._catchError(Effect$dAff._bind(Effect$dAff._map(v => {})(Toppokki.runPromiseAffE3(Toppokki._pageWaitForSelector)(selector)({
|
|
23
|
+
timeout: 60000,
|
|
24
|
+
visible: true
|
|
25
|
+
})(page)))(() => Effect$dAff._bind(Effect$dAff._liftEffect(Effect$dConsole.log("-> found")))(() => report(true)("exists"))))(e => report(false)(Effect$dException.showErrorImpl(e))));
|
|
26
|
+
};
|
|
27
|
+
const waitForHidden = selector => page => Effect$dAff._bind(Effect$dAff._liftEffect(Effect$dConsole.log("Waiting for " + selector)))(() => Effect$dAff._bind(Effect$dAff._map(v => {})(Toppokki.runPromiseAffE3(Toppokki._pageWaitForSelector)(selector)({
|
|
28
|
+
timeout: 60000,
|
|
29
|
+
visible: false
|
|
30
|
+
})(page)))(() => Effect$dAff._liftEffect(Effect$dConsole.log("-> found"))));
|
|
31
|
+
const launch = /* #__PURE__ */ Toppokki.runPromiseAffE1(_launch);
|
|
32
|
+
const $$goto = v => page => Effect$dAff._bind(Effect$dAff._liftEffect(Effect$dConsole.log("Going to " + Data$dShow.showStringImpl(v))))(() => Effect$dAff._bind(Effect$dAff._liftEffect(Toppokki._goto(
|
|
33
|
+
v,
|
|
34
|
+
page
|
|
35
|
+
)))(Control$dPromise.toAff$p(Control$dPromise.coerce)));
|
|
36
|
+
const getAttributeValue = page => selector => attribute => Effect$dAff._bind(Toppokki.runPromiseAffE3(Toppokki._unsafePageEval)(selector)("element => element.getAttribute('" + attribute + "')")(page))(attrValue => Effect$dAff._pure(attrValue));
|
|
37
|
+
const defaultViewport = {deviceScaleFactor: 1.0, hasTouch: false, height: 800.0, isLandscape: false, isMobile: false, width: 1200.0};
|
|
38
|
+
const click = element => page => Effect$dAff._bind(Effect$dAff._bind(Effect$dAff._liftEffect(Toppokki._click(element, page)))(Control$dPromise.toAff$p(Control$dPromise.coerce)))(() => testCondition(element)(true)("click"));
|
|
39
|
+
const clickToggle = page => idPrev => Effect$dAff._bind(waitFor("#grid.data-pane-hidden")(page))(() => {
|
|
40
|
+
const toggle = "div#" + idPrev + " + div";
|
|
41
|
+
return Effect$dAff._bind(waitFor(toggle)(page))(() => Effect$dAff._bind(click(toggle)(page))(() => waitFor("#grid:not(.data-pane-hidden)")(page)));
|
|
42
|
+
});
|
|
43
|
+
const checkTextContent = page => selector => expected => Effect$dAff._bind(waitFor(selector)(page))(() => Effect$dAff._bind(textContentValue(page)(selector))(text => Effect$dAff._bind(testCondition(selector)(text === expected)("text == " + Data$dShow.showStringImpl(expected)))(() => Effect$dAff._pure())));
|
|
44
|
+
const checkAttributeContains = page => sel => attr => expected => Effect$dAff._bind(getAttributeValue(page)(sel)(attr))(found => {
|
|
45
|
+
const success = Data$dString$dCodeUnits.contains(expected)(found);
|
|
46
|
+
return testCondition(sel)(success)(attr + " contains " + Data$dShow.showStringImpl(expected) + (success ? "" : " (got " + found + ")"));
|
|
47
|
+
});
|
|
48
|
+
const checkAttribute = page => sel => attr => expected => Effect$dAff._bind(getAttributeValue(page)(sel)(attr))(found => testCondition(sel)(found === expected)(attr + " == " + Data$dShow.showStringImpl(expected) + (found === expected
|
|
49
|
+
? ""
|
|
50
|
+
: " (got \"" + found + "\")")));
|
|
51
|
+
const browserTests = suffix => browserName => launchBrowser => tests => Effect$dAff._bind(Effect$dAff._liftEffect(Effect$dConsole.log("browserTests: " + browserName)))(() => Effect$dAff._bind(launchBrowser)(browser => Effect$dAff._bind(Effect$dAff._bind(Effect$dAff._liftEffect(Toppokki._newPage(browser)))(Control$dPromise.toAff$p(Control$dPromise.coerce)))(page => {
|
|
52
|
+
const url = "http://127.0.0.1:8080/" + suffix;
|
|
53
|
+
return Effect$dAff._bind(for_(tests)(test => Effect$dAff._bind($$goto(url)(page))(() => test(page))))(() => Effect$dAff._bind(Effect$dAff._liftEffect(Toppokki._close(browser)))(Control$dPromise.toAff$p(Control$dPromise.coerce)));
|
|
54
|
+
})));
|
|
55
|
+
const testURL = suffix => tests => {
|
|
56
|
+
const testOn = browser => browserTests(suffix)(browser)(Effect$dAff._bind(Effect$dAff._liftEffect(_launch({browser, defaultViewport, headless: true})))(Control$dPromise.toAff$p(Control$dPromise.coerce)))(tests);
|
|
57
|
+
return [testOn("chrome"), testOn("firefox")];
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
browserTests,
|
|
61
|
+
checkAttribute,
|
|
62
|
+
checkAttributeContains,
|
|
63
|
+
checkTextContent,
|
|
64
|
+
click,
|
|
65
|
+
clickToggle,
|
|
66
|
+
defaultViewport,
|
|
67
|
+
for_,
|
|
68
|
+
getAttributeValue,
|
|
69
|
+
$$goto as goto,
|
|
70
|
+
launch,
|
|
71
|
+
log$p,
|
|
72
|
+
puppeteerTests,
|
|
73
|
+
runTests,
|
|
74
|
+
sequence_,
|
|
75
|
+
show$p,
|
|
76
|
+
testCondition,
|
|
77
|
+
testURL,
|
|
78
|
+
textContentValue,
|
|
79
|
+
timeout,
|
|
80
|
+
waitFor,
|
|
81
|
+
waitForHidden
|
|
82
|
+
};
|
|
83
|
+
export * from "./foreign.js";
|