@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,125 @@
|
|
|
1
|
+
import * as $runtime from "../runtime.js";
|
|
2
|
+
import * as Affjax from "../Affjax/index.js";
|
|
3
|
+
import * as Affjax$dResponseFormat from "../Affjax.ResponseFormat/index.js";
|
|
4
|
+
import * as Affjax$dWeb from "../Affjax.Web/index.js";
|
|
5
|
+
import * as Control$dApply from "../Control.Apply/index.js";
|
|
6
|
+
import * as Control$dMonad$dExcept$dTrans from "../Control.Monad.Except.Trans/index.js";
|
|
7
|
+
import * as Data$dArray from "../Data.Array/index.js";
|
|
8
|
+
import * as Data$dEither from "../Data.Either/index.js";
|
|
9
|
+
import * as Data$dFunctor from "../Data.Functor/index.js";
|
|
10
|
+
import * as Data$dHTTP$dMethod from "../Data.HTTP.Method/index.js";
|
|
11
|
+
import * as Data$dMaybe from "../Data.Maybe/index.js";
|
|
12
|
+
import * as Data$dMonoid from "../Data.Monoid/index.js";
|
|
13
|
+
import * as Data$dSemigroup from "../Data.Semigroup/index.js";
|
|
14
|
+
import * as Data$dShow from "../Data.Show/index.js";
|
|
15
|
+
import * as Data$dTuple from "../Data.Tuple/index.js";
|
|
16
|
+
import * as Effect$dAff from "../Effect.Aff/index.js";
|
|
17
|
+
import * as Effect$dException from "../Effect.Exception/index.js";
|
|
18
|
+
const bindExceptT = /* #__PURE__ */ Control$dMonad$dExcept$dTrans.bindExceptT(Effect$dAff.monadAff);
|
|
19
|
+
const applicativeExceptT = /* #__PURE__ */ Control$dMonad$dExcept$dTrans.applicativeExceptT(Effect$dAff.monadAff);
|
|
20
|
+
const Folder = x => x;
|
|
21
|
+
const FileCxt = x => x;
|
|
22
|
+
const File = x => x;
|
|
23
|
+
const showFolder = Data$dShow.showString;
|
|
24
|
+
const showFile = Data$dShow.showString;
|
|
25
|
+
const show = /* #__PURE__ */ Data$dShow.showArrayImpl(Data$dShow.showStringImpl);
|
|
26
|
+
const semigroupFolder = {append: v => v1 => v + "/" + v1};
|
|
27
|
+
const semigroupFile = Data$dSemigroup.semigroupString;
|
|
28
|
+
const newtypeFolder_ = {Coercible0: () => {}};
|
|
29
|
+
const newtypeFile_ = {Coercible0: () => {}};
|
|
30
|
+
const monoidFile = Data$dMonoid.monoidString;
|
|
31
|
+
const loadFileAff = {
|
|
32
|
+
loadFileFromPath: dictMonadError => dictMonadAff => v => Effect$dAff._bind(bindExceptT.bind(dictMonadAff.liftAff(Effect$dAff._bind(Affjax.request(Affjax$dWeb.driver)({
|
|
33
|
+
method: Data$dEither.$Either("Left", Data$dHTTP$dMethod.GET),
|
|
34
|
+
url: v,
|
|
35
|
+
headers: [],
|
|
36
|
+
content: Data$dMaybe.Nothing,
|
|
37
|
+
username: Data$dMaybe.Nothing,
|
|
38
|
+
password: Data$dMaybe.Nothing,
|
|
39
|
+
withCredentials: false,
|
|
40
|
+
responseFormat: Affjax$dResponseFormat.$ResponseFormat("String", Affjax$dResponseFormat.identity),
|
|
41
|
+
timeout: Data$dMaybe.Nothing
|
|
42
|
+
}))(resp => Effect$dAff._pure((() => {
|
|
43
|
+
if (resp.tag === "Right") {
|
|
44
|
+
if (resp._1.status === 200) { return Data$dEither.$Either("Right", Data$dTuple.$Tuple(resp._1, v)); }
|
|
45
|
+
return Data$dEither.$Either("Left", Affjax.RequestFailedError);
|
|
46
|
+
}
|
|
47
|
+
if (resp.tag === "Left") { return Data$dEither.$Either("Left", resp._1); }
|
|
48
|
+
$runtime.fail();
|
|
49
|
+
})()))))(v1 => {
|
|
50
|
+
const $0 = v1._1;
|
|
51
|
+
return bindExceptT.bind(applicativeExceptT.pure())(() => applicativeExceptT.pure($0.body));
|
|
52
|
+
}))(result => Effect$dAff._pure((() => {
|
|
53
|
+
if (result.tag === "Left") { return Data$dMaybe.Nothing; }
|
|
54
|
+
if (result.tag === "Right") { return Data$dMaybe.$Maybe("Just", result._1); }
|
|
55
|
+
$runtime.fail();
|
|
56
|
+
})()))
|
|
57
|
+
};
|
|
58
|
+
const prependFolder = v => v1 => v + "/" + v1;
|
|
59
|
+
const loadFileFromPath = dict => dict.loadFileFromPath;
|
|
60
|
+
const loadFileStateT = dictMonadAff => {
|
|
61
|
+
const $0 = dictMonadAff.MonadEffect0().Monad0();
|
|
62
|
+
return dictMonadError => dictLoadFile => {
|
|
63
|
+
const loadFileFromPath1 = dictLoadFile.loadFileFromPath(dictMonadError)(dictMonadAff);
|
|
64
|
+
return {
|
|
65
|
+
loadFileFromPath: dictMonadError1 => dictMonadAff1 => x => {
|
|
66
|
+
const $1 = loadFileFromPath1(x);
|
|
67
|
+
return s => $0.Bind1().bind($1)(x$1 => $0.Applicative0().pure(Data$dTuple.$Tuple(x$1, s)));
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
const loadFileWriterT = dictMonoid => {
|
|
73
|
+
const mempty = dictMonoid.mempty;
|
|
74
|
+
return dictMonadError => dictMonadAff => {
|
|
75
|
+
const $0 = dictMonadAff.MonadEffect0().Monad0();
|
|
76
|
+
return dictLoadFile => {
|
|
77
|
+
const loadFileFromPath1 = dictLoadFile.loadFileFromPath(dictMonadError)(dictMonadAff);
|
|
78
|
+
return {loadFileFromPath: dictMonadError1 => dictMonadAff1 => x => $0.Bind1().bind(loadFileFromPath1(x))(a => $0.Applicative0().pure(Data$dTuple.$Tuple(a, mempty)))};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
const loadFile = dictLoadFile => dictMonad => {
|
|
83
|
+
const $0 = dictMonad.Applicative0();
|
|
84
|
+
return dictMonadError => {
|
|
85
|
+
const loadFileFromPath2 = dictLoadFile.loadFileFromPath(dictMonadError);
|
|
86
|
+
return dictMonadAff => {
|
|
87
|
+
const loadFileFromPath3 = loadFileFromPath2(dictMonadAff);
|
|
88
|
+
return folders => file => {
|
|
89
|
+
const paths = Control$dApply.arrayApply(Data$dFunctor.arrayMap(prependFolder)(folders))([file]);
|
|
90
|
+
return dictMonad.Bind1().bind(Data$dArray.foldM(dictMonad)(v => v1 => {
|
|
91
|
+
if (v.tag === "Just") { return $0.pure(Data$dMaybe.$Maybe("Just", v._1)); }
|
|
92
|
+
if (v.tag === "Nothing") { return loadFileFromPath3(v1); }
|
|
93
|
+
$runtime.fail();
|
|
94
|
+
})(Data$dMaybe.Nothing)(paths))(result => {
|
|
95
|
+
if (result.tag === "Just") { return $0.pure(result._1); }
|
|
96
|
+
if (result.tag === "Nothing") { return Effect$dException.throwException(Effect$dException.error("File not found in any path: " + show(paths)))(); }
|
|
97
|
+
$runtime.fail();
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
const fluidExtension = ".fld";
|
|
104
|
+
export {
|
|
105
|
+
File,
|
|
106
|
+
FileCxt,
|
|
107
|
+
Folder,
|
|
108
|
+
applicativeExceptT,
|
|
109
|
+
bindExceptT,
|
|
110
|
+
fluidExtension,
|
|
111
|
+
loadFile,
|
|
112
|
+
loadFileAff,
|
|
113
|
+
loadFileFromPath,
|
|
114
|
+
loadFileStateT,
|
|
115
|
+
loadFileWriterT,
|
|
116
|
+
monoidFile,
|
|
117
|
+
newtypeFile_,
|
|
118
|
+
newtypeFolder_,
|
|
119
|
+
prependFolder,
|
|
120
|
+
semigroupFile,
|
|
121
|
+
semigroupFolder,
|
|
122
|
+
show,
|
|
123
|
+
showFile,
|
|
124
|
+
showFolder
|
|
125
|
+
};
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import * as $runtime from "../runtime.js";
|
|
2
|
+
import * as Control$dMonad$dReader$dTrans from "../Control.Monad.Reader.Trans/index.js";
|
|
3
|
+
import * as Data$dArray from "../Data.Array/index.js";
|
|
4
|
+
import * as Data$dEither from "../Data.Either/index.js";
|
|
5
|
+
import * as Data$dFunctor from "../Data.Functor/index.js";
|
|
6
|
+
import * as Data$dMaybe from "../Data.Maybe/index.js";
|
|
7
|
+
import * as Data$dShow from "../Data.Show/index.js";
|
|
8
|
+
import * as Data$dString$dCodeUnits from "../Data.String.CodeUnits/index.js";
|
|
9
|
+
import * as Data$dString$dCommon from "../Data.String.Common/index.js";
|
|
10
|
+
import * as Data$dTuple from "../Data.Tuple/index.js";
|
|
11
|
+
import * as Effect$dAff from "../Effect.Aff/index.js";
|
|
12
|
+
import * as Effect$dAff$dClass from "../Effect.Aff.Class/index.js";
|
|
13
|
+
import * as Effect$dConsole from "../Effect.Console/index.js";
|
|
14
|
+
import * as Effect$dException from "../Effect.Exception/index.js";
|
|
15
|
+
import * as Eval from "../Eval/index.js";
|
|
16
|
+
import * as ExitCodes from "../ExitCodes/index.js";
|
|
17
|
+
import * as File from "../File/index.js";
|
|
18
|
+
import * as Module from "../Module/index.js";
|
|
19
|
+
import * as Module$dNode from "../Module.Node/index.js";
|
|
20
|
+
import * as Options$dApplicative$dBuilder from "../Options.Applicative.Builder/index.js";
|
|
21
|
+
import * as Options$dApplicative$dBuilder$dInternal from "../Options.Applicative.Builder.Internal/index.js";
|
|
22
|
+
import * as Options$dApplicative$dExtra from "../Options.Applicative.Extra/index.js";
|
|
23
|
+
import * as Options$dApplicative$dInternal$dUtils from "../Options.Applicative.Internal.Utils/index.js";
|
|
24
|
+
import * as Options$dApplicative$dTypes from "../Options.Applicative.Types/index.js";
|
|
25
|
+
import * as Parse from "../Parse/index.js";
|
|
26
|
+
import * as Pretty from "../Pretty/index.js";
|
|
27
|
+
import * as Pretty$dDoc from "../Pretty.Doc/index.js";
|
|
28
|
+
import * as Primitive$dDefs from "../Primitive.Defs/index.js";
|
|
29
|
+
import * as Val from "../Val/index.js";
|
|
30
|
+
const $Command = (tag, _1) => ({tag, _1});
|
|
31
|
+
const $EvalArgs = _1 => ({tag: "EvalArgs", _1});
|
|
32
|
+
const bind = /* #__PURE__ */ (() => Control$dMonad$dReader$dTrans.bindReaderT(Effect$dAff.bindAff).bind)();
|
|
33
|
+
const loadFileNodeT = /* #__PURE__ */ Module$dNode.loadFileNodeT(Effect$dAff.monadAff);
|
|
34
|
+
const monadErrorErrorNodeT = /* #__PURE__ */ Control$dMonad$dReader$dTrans.monadErrorReaderT(Effect$dAff.monadErrorAff);
|
|
35
|
+
const monadAffNodeT = /* #__PURE__ */ Effect$dAff$dClass.monadAffReader(Effect$dAff$dClass.monadAffAff);
|
|
36
|
+
const loadFile = /* #__PURE__ */ File.loadFile(loadFileNodeT)(/* #__PURE__ */ Control$dMonad$dReader$dTrans.monadReaderT(Effect$dAff.monadAff))(monadErrorErrorNodeT)(monadAffNodeT);
|
|
37
|
+
const monadReaderFileCxtNodeT = /* #__PURE__ */ Control$dMonad$dReader$dTrans.monadReaderReaderT(Effect$dAff.monadAff);
|
|
38
|
+
const prepConfig = /* #__PURE__ */ Module.prepConfig(monadAffNodeT)(monadErrorErrorNodeT)(monadReaderFileCxtNodeT)(loadFileNodeT);
|
|
39
|
+
const graphEval = /* #__PURE__ */ Eval.graphEval(monadAffNodeT)(monadReaderFileCxtNodeT)(loadFileNodeT)(monadErrorErrorNodeT);
|
|
40
|
+
const EvalArgs = value0 => $EvalArgs(value0);
|
|
41
|
+
const Evaluate = value0 => $Command("Evaluate", value0);
|
|
42
|
+
const Parse_ = value0 => $Command("Parse_", value0);
|
|
43
|
+
const parseLocal = /* #__PURE__ */ Options$dApplicative$dTypes.$Parser(
|
|
44
|
+
"AltP",
|
|
45
|
+
/* #__PURE__ */ Options$dApplicative$dBuilder.flag$p(true)(/* #__PURE__ */ (() => {
|
|
46
|
+
const $0 = Options$dApplicative$dBuilder.help("Are you running fluid as a library?");
|
|
47
|
+
const $1 = $0._2._1.tag === "Nothing" ? Data$dMaybe.Nothing : $0._2._1;
|
|
48
|
+
const $2 = $0._2._2.tag === "Nothing" ? Data$dMaybe.Nothing : $0._2._2;
|
|
49
|
+
return Options$dApplicative$dBuilder$dInternal.$Mod(
|
|
50
|
+
x => $0._1({
|
|
51
|
+
flagNames: [Options$dApplicative$dTypes.$OptName("OptShort", "l"), Options$dApplicative$dTypes.$OptName("OptLong", "local"), ...x.flagNames],
|
|
52
|
+
flagActive: x.flagActive
|
|
53
|
+
}),
|
|
54
|
+
Options$dApplicative$dBuilder$dInternal.$DefaultProp($1.tag === "Nothing" ? Data$dMaybe.Nothing : $1, $2.tag === "Nothing" ? Data$dMaybe.Nothing : $2),
|
|
55
|
+
x => $0._3(x)
|
|
56
|
+
);
|
|
57
|
+
})()),
|
|
58
|
+
/* #__PURE__ */ Options$dApplicative$dTypes.$Parser("NilP", false)
|
|
59
|
+
);
|
|
60
|
+
const parseEvaluate = /* #__PURE__ */ (() => Options$dApplicative$dTypes.$Parser(
|
|
61
|
+
"MultP",
|
|
62
|
+
Options$dApplicative$dTypes.$MultPE(
|
|
63
|
+
Options$dApplicative$dTypes.$Parser(
|
|
64
|
+
"MultP",
|
|
65
|
+
Options$dApplicative$dTypes.$MultPE(
|
|
66
|
+
Options$dApplicative$dTypes.parserFunctor.map(v => v1 => v2 => $EvalArgs({local: v, fileName: v1, fluidSrcPath: v2}))(parseLocal),
|
|
67
|
+
Options$dApplicative$dBuilder.option(Options$dApplicative$dTypes.readerAsk)((() => {
|
|
68
|
+
const $0 = Options$dApplicative$dBuilder.help("The file to parse");
|
|
69
|
+
const $1 = $0._2._1.tag === "Nothing" ? Data$dMaybe.Nothing : $0._2._1;
|
|
70
|
+
const $2 = $0._2._2.tag === "Nothing" ? Data$dMaybe.Nothing : $0._2._2;
|
|
71
|
+
return Options$dApplicative$dBuilder$dInternal.$Mod(
|
|
72
|
+
x => $0._1({
|
|
73
|
+
optNames: [Options$dApplicative$dTypes.$OptName("OptShort", "f"), Options$dApplicative$dTypes.$OptName("OptLong", "file"), ...x.optNames],
|
|
74
|
+
optCompleter: x.optCompleter,
|
|
75
|
+
optNoArgError: x.optNoArgError
|
|
76
|
+
}),
|
|
77
|
+
Options$dApplicative$dBuilder$dInternal.$DefaultProp($1.tag === "Nothing" ? Data$dMaybe.Nothing : $1, $2.tag === "Nothing" ? Data$dMaybe.Nothing : $2),
|
|
78
|
+
x => $0._3(x)
|
|
79
|
+
);
|
|
80
|
+
})())
|
|
81
|
+
)
|
|
82
|
+
),
|
|
83
|
+
Options$dApplicative$dTypes.parserFunctor.map(File.Folder)(Options$dApplicative$dBuilder.option(Options$dApplicative$dTypes.readerAsk)((() => {
|
|
84
|
+
const $0 = Options$dApplicative$dBuilder.help("The path containing the program files");
|
|
85
|
+
const $1 = $0._2._1.tag === "Nothing" ? Data$dMaybe.Nothing : $0._2._1;
|
|
86
|
+
const $2 = $0._2._2.tag === "Nothing" ? Data$dMaybe.Nothing : $0._2._2;
|
|
87
|
+
return Options$dApplicative$dBuilder$dInternal.$Mod(
|
|
88
|
+
x => $0._1({
|
|
89
|
+
optNames: [Options$dApplicative$dTypes.$OptName("OptShort", "p"), Options$dApplicative$dTypes.$OptName("OptLong", "fluid-src-path"), ...x.optNames],
|
|
90
|
+
optCompleter: x.optCompleter,
|
|
91
|
+
optNoArgError: x.optNoArgError
|
|
92
|
+
}),
|
|
93
|
+
Options$dApplicative$dBuilder$dInternal.$DefaultProp($1.tag === "Nothing" ? Data$dMaybe.Nothing : $1, $2.tag === "Nothing" ? Data$dMaybe.Nothing : $2),
|
|
94
|
+
x => $0._3(x)
|
|
95
|
+
);
|
|
96
|
+
})()))
|
|
97
|
+
)
|
|
98
|
+
))();
|
|
99
|
+
const fluidLibraryPath = "node_modules/@explorable-viz/fluid";
|
|
100
|
+
const parse = v => {
|
|
101
|
+
const fluidSrcPaths = [v._1.fluidSrcPath, ...v._1.local ? ["node_modules/@explorable-viz/fluid/dist/fluid/fluid"] : []];
|
|
102
|
+
return bind(loadFile(fluidSrcPaths)(v._1.fileName))(fluidSrc => {
|
|
103
|
+
const v1 = Parse.parse(Parse.withImports(Parse.expr))(fluidSrc);
|
|
104
|
+
if (v1.tag === "Left") {
|
|
105
|
+
const $0 = Effect$dAff._pure(v1._1);
|
|
106
|
+
return v$1 => $0;
|
|
107
|
+
}
|
|
108
|
+
if (v1.tag === "Right") {
|
|
109
|
+
const $0 = Effect$dAff._pure(Pretty$dDoc.renderWithIndent(Pretty$dDoc.Stmt)(0)(0)(Pretty.prettyExpr(Val.annUnit).pretty(v1._1._1))._1);
|
|
110
|
+
return v$1 => $0;
|
|
111
|
+
}
|
|
112
|
+
$runtime.fail();
|
|
113
|
+
})({fluidSrcPaths});
|
|
114
|
+
};
|
|
115
|
+
const evaluate = v => {
|
|
116
|
+
const fluidSrcPaths = [v._1.fluidSrcPath, ...v._1.local ? ["node_modules/@explorable-viz/fluid/dist/fluid/fluid"] : []];
|
|
117
|
+
return bind(loadFile(fluidSrcPaths)(v._1.fileName))(fluidSrc => bind(prepConfig(Primitive$dDefs.primitives)(fluidSrc))(v1 => bind(graphEval(v1.gconfig)(v1.e))(v2 => {
|
|
118
|
+
const $0 = Effect$dAff._pure(Val.functorVal.map(v$1 => {})(v2["outα"]));
|
|
119
|
+
return v$1 => $0;
|
|
120
|
+
})))({fluidSrcPaths});
|
|
121
|
+
};
|
|
122
|
+
const dispatchCommand = v => {
|
|
123
|
+
if (v.tag === "Evaluate") {
|
|
124
|
+
return Effect$dAff._bind(evaluate(v._1))(v1 => Effect$dAff._liftEffect(Effect$dConsole.log(Pretty$dDoc.renderWithIndent(Pretty$dDoc.Stmt)(0)(0)(Pretty.prettyVal(Val.highlightableUnit).pretty(v1))._1)));
|
|
125
|
+
}
|
|
126
|
+
if (v.tag === "Parse_") { return Effect$dAff._bind(parse(v._1))(r => Effect$dAff._liftEffect(Effect$dConsole.log(r))); }
|
|
127
|
+
$runtime.fail();
|
|
128
|
+
};
|
|
129
|
+
const commands = /* #__PURE__ */ (() => (
|
|
130
|
+
{evaluate: Options$dApplicative$dTypes.parserFunctor.map(Evaluate)(parseEvaluate), parse: Options$dApplicative$dTypes.parserFunctor.map(Parse_)(parseEvaluate)}
|
|
131
|
+
))();
|
|
132
|
+
const commandParser = /* #__PURE__ */ Options$dApplicative$dBuilder.subparser(/* #__PURE__ */ (() => {
|
|
133
|
+
const $0 = Options$dApplicative$dBuilder.command("evaluate")(Options$dApplicative$dBuilder.progDesc("Evaluate a file")({
|
|
134
|
+
infoParser: commands.evaluate,
|
|
135
|
+
infoFullDesc: true,
|
|
136
|
+
infoProgDesc: Data$dMaybe.Nothing,
|
|
137
|
+
infoHeader: Data$dMaybe.Nothing,
|
|
138
|
+
infoFooter: Data$dMaybe.Nothing,
|
|
139
|
+
infoFailureCode: ExitCodes.Error,
|
|
140
|
+
infoPolicy: Options$dApplicative$dTypes.Intersperse
|
|
141
|
+
}));
|
|
142
|
+
const $1 = Options$dApplicative$dBuilder.command("parse")(Options$dApplicative$dBuilder.progDesc("Parse a file")({
|
|
143
|
+
infoParser: commands.parse,
|
|
144
|
+
infoFullDesc: true,
|
|
145
|
+
infoProgDesc: Data$dMaybe.Nothing,
|
|
146
|
+
infoHeader: Data$dMaybe.Nothing,
|
|
147
|
+
infoFooter: Data$dMaybe.Nothing,
|
|
148
|
+
infoFailureCode: ExitCodes.Error,
|
|
149
|
+
infoPolicy: Options$dApplicative$dTypes.Intersperse
|
|
150
|
+
}));
|
|
151
|
+
return Options$dApplicative$dBuilder$dInternal.$Mod(
|
|
152
|
+
x => $1._1($0._1(x)),
|
|
153
|
+
Options$dApplicative$dBuilder$dInternal.$DefaultProp($1._2._1.tag === "Nothing" ? $0._2._1 : $1._2._1, $1._2._2.tag === "Nothing" ? $0._2._2 : $1._2._2),
|
|
154
|
+
x => $1._3($0._3(x))
|
|
155
|
+
);
|
|
156
|
+
})());
|
|
157
|
+
const callback = v => {
|
|
158
|
+
if (v.tag === "Left") { return Effect$dConsole.log(Effect$dException.showErrorImpl(v._1)); }
|
|
159
|
+
if (v.tag === "Right") { return () => {}; }
|
|
160
|
+
$runtime.fail();
|
|
161
|
+
};
|
|
162
|
+
const main = /* #__PURE__ */ (() => {
|
|
163
|
+
const $0 = Effect$dAff.runAff(callback)(Effect$dAff._bind(Effect$dAff._liftEffect((() => {
|
|
164
|
+
const $0 = Options$dApplicative$dBuilder.header("parse - a simple parser")(Options$dApplicative$dBuilder.progDesc("Parse a file")({
|
|
165
|
+
infoFullDesc: true,
|
|
166
|
+
infoFailureCode: ExitCodes.Error,
|
|
167
|
+
infoFooter: Data$dMaybe.Nothing,
|
|
168
|
+
infoHeader: Data$dMaybe.Nothing,
|
|
169
|
+
infoParser: Options$dApplicative$dInternal$dUtils.apApplyFlipped(Options$dApplicative$dTypes.parserApply)(commandParser)(Options$dApplicative$dExtra.helper),
|
|
170
|
+
infoPolicy: Options$dApplicative$dTypes.Intersperse,
|
|
171
|
+
infoProgDesc: Data$dMaybe.Nothing
|
|
172
|
+
}));
|
|
173
|
+
return () => {
|
|
174
|
+
const a$p = Options$dApplicative$dExtra.getArgs();
|
|
175
|
+
return Options$dApplicative$dExtra.handleParseResult(Options$dApplicative$dExtra.execParserPure(Options$dApplicative$dBuilder.defaultPrefs)($0)(a$p))();
|
|
176
|
+
};
|
|
177
|
+
})()))(dispatchCommand));
|
|
178
|
+
return () => {$0();};
|
|
179
|
+
})();
|
|
180
|
+
const between = p1 => p2 => f => s => {
|
|
181
|
+
const $0 = Data$dString$dCodeUnits.stripPrefix(p1)(s);
|
|
182
|
+
const v = (() => {
|
|
183
|
+
if ($0.tag === "Just") { return Data$dString$dCodeUnits.stripSuffix(p2)($0._1); }
|
|
184
|
+
if ($0.tag === "Nothing") { return Data$dMaybe.Nothing; }
|
|
185
|
+
$runtime.fail();
|
|
186
|
+
})();
|
|
187
|
+
if (v.tag === "Just") { return f(v._1); }
|
|
188
|
+
if (v.tag === "Nothing") {
|
|
189
|
+
return Data$dEither.$Either("Left", "Expected (Pattern " + Data$dShow.showStringImpl(p1) + ")...(Pattern " + Data$dShow.showStringImpl(p2) + ") but got ...");
|
|
190
|
+
}
|
|
191
|
+
$runtime.fail();
|
|
192
|
+
};
|
|
193
|
+
const parseImports$p = open => close => between(open)(close)(s => Data$dEither.$Either(
|
|
194
|
+
"Right",
|
|
195
|
+
Data$dFunctor.arrayMap(Data$dString$dCommon.trim)(Data$dArray.filterImpl(x => x !== "", Data$dString$dCommon.split(",")(s)))
|
|
196
|
+
));
|
|
197
|
+
const parsePair = /* #__PURE__ */ between("(")(")")(s => {
|
|
198
|
+
const v = Data$dString$dCommon.split(",")(s);
|
|
199
|
+
if (v.length === 2) { return Data$dEither.$Either("Right", Data$dTuple.$Tuple(Data$dString$dCommon.trim(v[0]), Data$dString$dCommon.trim(v[1]))); }
|
|
200
|
+
return Data$dEither.$Either("Left", "Expected a pair but got " + s);
|
|
201
|
+
});
|
|
202
|
+
export {
|
|
203
|
+
$Command,
|
|
204
|
+
$EvalArgs,
|
|
205
|
+
EvalArgs,
|
|
206
|
+
Evaluate,
|
|
207
|
+
Parse_,
|
|
208
|
+
between,
|
|
209
|
+
bind,
|
|
210
|
+
callback,
|
|
211
|
+
commandParser,
|
|
212
|
+
commands,
|
|
213
|
+
dispatchCommand,
|
|
214
|
+
evaluate,
|
|
215
|
+
fluidLibraryPath,
|
|
216
|
+
graphEval,
|
|
217
|
+
loadFile,
|
|
218
|
+
loadFileNodeT,
|
|
219
|
+
main,
|
|
220
|
+
monadAffNodeT,
|
|
221
|
+
monadErrorErrorNodeT,
|
|
222
|
+
monadReaderFileCxtNodeT,
|
|
223
|
+
parse,
|
|
224
|
+
parseEvaluate,
|
|
225
|
+
parseImports$p,
|
|
226
|
+
parseLocal,
|
|
227
|
+
parsePair,
|
|
228
|
+
prepConfig
|
|
229
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function typeOf(value) {
|
|
2
|
+
return typeof value;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export function tagOf(value) {
|
|
6
|
+
return Object.prototype.toString.call(value).slice(8, -1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function isNull(value) {
|
|
10
|
+
return value === null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function isUndefined(value) {
|
|
14
|
+
return value === undefined;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const isArray = Array.isArray || function (value) {
|
|
18
|
+
return Object.prototype.toString.call(value) === "[object Array]";
|
|
19
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// | This module defines types and functions for working with _foreign_
|
|
2
|
+
// | data.
|
|
3
|
+
// |
|
|
4
|
+
// | `ExceptT (NonEmptyList ForeignError) m` is used in this library
|
|
5
|
+
// | to encode possible failures when dealing with foreign data.
|
|
6
|
+
// |
|
|
7
|
+
// | The `Alt` instance for `ExceptT` allows us to accumulate errors,
|
|
8
|
+
// | unlike `Either`, which preserves only the last error.
|
|
9
|
+
import * as $runtime from "../runtime.js";
|
|
10
|
+
import * as Control$dMonad$dExcept$dTrans from "../Control.Monad.Except.Trans/index.js";
|
|
11
|
+
import * as Data$dEither from "../Data.Either/index.js";
|
|
12
|
+
import * as Data$dInt from "../Data.Int/index.js";
|
|
13
|
+
import * as Data$dList$dTypes from "../Data.List.Types/index.js";
|
|
14
|
+
import * as Data$dMaybe from "../Data.Maybe/index.js";
|
|
15
|
+
import * as Data$dNonEmpty from "../Data.NonEmpty/index.js";
|
|
16
|
+
import * as Data$dOrd from "../Data.Ord/index.js";
|
|
17
|
+
import * as Data$dOrdering from "../Data.Ordering/index.js";
|
|
18
|
+
import * as Data$dShow from "../Data.Show/index.js";
|
|
19
|
+
import * as Data$dString$dCodeUnits from "../Data.String.CodeUnits/index.js";
|
|
20
|
+
import * as Unsafe$dCoerce from "../Unsafe.Coerce/index.js";
|
|
21
|
+
import {isArray, isNull, isUndefined, tagOf, typeOf} from "./foreign.js";
|
|
22
|
+
const $ForeignError = (tag, _1, _2) => ({tag, _1, _2});
|
|
23
|
+
const ForeignError = value0 => $ForeignError("ForeignError", value0);
|
|
24
|
+
const TypeMismatch = value0 => value1 => $ForeignError("TypeMismatch", value0, value1);
|
|
25
|
+
const ErrorAtIndex = value0 => value1 => $ForeignError("ErrorAtIndex", value0, value1);
|
|
26
|
+
const ErrorAtProperty = value0 => value1 => $ForeignError("ErrorAtProperty", value0, value1);
|
|
27
|
+
const unsafeToForeign = Unsafe$dCoerce.unsafeCoerce;
|
|
28
|
+
const unsafeFromForeign = Unsafe$dCoerce.unsafeCoerce;
|
|
29
|
+
const showForeignError = {
|
|
30
|
+
show: v => {
|
|
31
|
+
if (v.tag === "ForeignError") { return "(ForeignError " + Data$dShow.showStringImpl(v._1) + ")"; }
|
|
32
|
+
if (v.tag === "ErrorAtIndex") { return "(ErrorAtIndex " + Data$dShow.showIntImpl(v._1) + " " + showForeignError.show(v._2) + ")"; }
|
|
33
|
+
if (v.tag === "ErrorAtProperty") { return "(ErrorAtProperty " + Data$dShow.showStringImpl(v._1) + " " + showForeignError.show(v._2) + ")"; }
|
|
34
|
+
if (v.tag === "TypeMismatch") { return "(TypeMismatch " + Data$dShow.showStringImpl(v._1) + " " + Data$dShow.showStringImpl(v._2) + ")"; }
|
|
35
|
+
$runtime.fail();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const renderForeignError = v => {
|
|
39
|
+
if (v.tag === "ForeignError") { return v._1; }
|
|
40
|
+
if (v.tag === "ErrorAtIndex") { return "Error at array index " + Data$dShow.showIntImpl(v._1) + ": " + renderForeignError(v._2); }
|
|
41
|
+
if (v.tag === "ErrorAtProperty") { return "Error at property " + Data$dShow.showStringImpl(v._1) + ": " + renderForeignError(v._2); }
|
|
42
|
+
if (v.tag === "TypeMismatch") { return "Type mismatch: expected " + v._1 + ", found " + v._2; }
|
|
43
|
+
$runtime.fail();
|
|
44
|
+
};
|
|
45
|
+
const readUndefined = dictMonad => {
|
|
46
|
+
const $0 = Control$dMonad$dExcept$dTrans.applicativeExceptT(dictMonad);
|
|
47
|
+
return value => {
|
|
48
|
+
if (isUndefined(value)) { return $0.pure(Data$dMaybe.Nothing); }
|
|
49
|
+
return $0.pure(Data$dMaybe.$Maybe("Just", value));
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
const readNullOrUndefined = dictMonad => {
|
|
53
|
+
const $0 = Control$dMonad$dExcept$dTrans.applicativeExceptT(dictMonad);
|
|
54
|
+
return value => {
|
|
55
|
+
if (isNull(value) || isUndefined(value)) { return $0.pure(Data$dMaybe.Nothing); }
|
|
56
|
+
return $0.pure(Data$dMaybe.$Maybe("Just", value));
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
const readNull = dictMonad => {
|
|
60
|
+
const $0 = Control$dMonad$dExcept$dTrans.applicativeExceptT(dictMonad);
|
|
61
|
+
return value => {
|
|
62
|
+
if (isNull(value)) { return $0.pure(Data$dMaybe.Nothing); }
|
|
63
|
+
return $0.pure(Data$dMaybe.$Maybe("Just", value));
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const fail = dictMonad => x => Control$dMonad$dExcept$dTrans.monadThrowExceptT(dictMonad).throwError(Data$dNonEmpty.$NonEmpty(x, Data$dList$dTypes.Nil));
|
|
67
|
+
const readArray = dictMonad => value => {
|
|
68
|
+
if (isArray(value)) { return Control$dMonad$dExcept$dTrans.applicativeExceptT(dictMonad).pure(value); }
|
|
69
|
+
return Control$dMonad$dExcept$dTrans.monadThrowExceptT(dictMonad).throwError(Data$dNonEmpty.$NonEmpty($ForeignError("TypeMismatch", "array", tagOf(value)), Data$dList$dTypes.Nil));
|
|
70
|
+
};
|
|
71
|
+
const unsafeReadTagged = dictMonad => tag => value => {
|
|
72
|
+
if (tagOf(value) === tag) { return Control$dMonad$dExcept$dTrans.applicativeExceptT(dictMonad).pure(value); }
|
|
73
|
+
return Control$dMonad$dExcept$dTrans.monadThrowExceptT(dictMonad).throwError(Data$dNonEmpty.$NonEmpty($ForeignError("TypeMismatch", tag, tagOf(value)), Data$dList$dTypes.Nil));
|
|
74
|
+
};
|
|
75
|
+
const readBoolean = dictMonad => unsafeReadTagged(dictMonad)("Boolean");
|
|
76
|
+
const readNumber = dictMonad => unsafeReadTagged(dictMonad)("Number");
|
|
77
|
+
const readInt = dictMonad => value => {
|
|
78
|
+
const error = Data$dEither.$Either("Left", Data$dNonEmpty.$NonEmpty($ForeignError("TypeMismatch", "Int", tagOf(value)), Data$dList$dTypes.Nil));
|
|
79
|
+
return dictMonad.Bind1().Apply0().Functor0().map(v2 => {
|
|
80
|
+
if (v2.tag === "Left") { return error; }
|
|
81
|
+
if (v2.tag === "Right") {
|
|
82
|
+
const $0 = Data$dInt.fromNumber(v2._1);
|
|
83
|
+
if ($0.tag === "Nothing") { return error; }
|
|
84
|
+
if ($0.tag === "Just") { return Data$dEither.$Either("Right", $0._1); }
|
|
85
|
+
}
|
|
86
|
+
$runtime.fail();
|
|
87
|
+
})(unsafeReadTagged(dictMonad)("Number")(value));
|
|
88
|
+
};
|
|
89
|
+
const readString = dictMonad => unsafeReadTagged(dictMonad)("String");
|
|
90
|
+
const readChar = dictMonad => value => {
|
|
91
|
+
const error = Data$dEither.$Either("Left", Data$dNonEmpty.$NonEmpty($ForeignError("TypeMismatch", "Char", tagOf(value)), Data$dList$dTypes.Nil));
|
|
92
|
+
return dictMonad.Bind1().Apply0().Functor0().map(v2 => {
|
|
93
|
+
if (v2.tag === "Left") { return error; }
|
|
94
|
+
if (v2.tag === "Right") {
|
|
95
|
+
const $0 = Data$dString$dCodeUnits.toChar(v2._1);
|
|
96
|
+
if ($0.tag === "Nothing") { return error; }
|
|
97
|
+
if ($0.tag === "Just") { return Data$dEither.$Either("Right", $0._1); }
|
|
98
|
+
}
|
|
99
|
+
$runtime.fail();
|
|
100
|
+
})(unsafeReadTagged(dictMonad)("String")(value));
|
|
101
|
+
};
|
|
102
|
+
const eqForeignError = {
|
|
103
|
+
eq: x => y => {
|
|
104
|
+
if (x.tag === "ForeignError") { return y.tag === "ForeignError" && x._1 === y._1; }
|
|
105
|
+
if (x.tag === "TypeMismatch") { return y.tag === "TypeMismatch" && x._1 === y._1 && x._2 === y._2; }
|
|
106
|
+
if (x.tag === "ErrorAtIndex") { return y.tag === "ErrorAtIndex" && x._1 === y._1 && eqForeignError.eq(x._2)(y._2); }
|
|
107
|
+
return x.tag === "ErrorAtProperty" && y.tag === "ErrorAtProperty" && x._1 === y._1 && eqForeignError.eq(x._2)(y._2);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const ordForeignError = {
|
|
111
|
+
compare: x => y => {
|
|
112
|
+
if (x.tag === "ForeignError") {
|
|
113
|
+
if (y.tag === "ForeignError") { return Data$dOrd.ordString.compare(x._1)(y._1); }
|
|
114
|
+
return Data$dOrdering.LT;
|
|
115
|
+
}
|
|
116
|
+
if (y.tag === "ForeignError") { return Data$dOrdering.GT; }
|
|
117
|
+
if (x.tag === "TypeMismatch") {
|
|
118
|
+
if (y.tag === "TypeMismatch") {
|
|
119
|
+
const v = Data$dOrd.ordString.compare(x._1)(y._1);
|
|
120
|
+
if (v === "LT") { return Data$dOrdering.LT; }
|
|
121
|
+
if (v === "GT") { return Data$dOrdering.GT; }
|
|
122
|
+
return Data$dOrd.ordString.compare(x._2)(y._2);
|
|
123
|
+
}
|
|
124
|
+
return Data$dOrdering.LT;
|
|
125
|
+
}
|
|
126
|
+
if (y.tag === "TypeMismatch") { return Data$dOrdering.GT; }
|
|
127
|
+
if (x.tag === "ErrorAtIndex") {
|
|
128
|
+
if (y.tag === "ErrorAtIndex") {
|
|
129
|
+
const v = Data$dOrd.ordInt.compare(x._1)(y._1);
|
|
130
|
+
if (v === "LT") { return Data$dOrdering.LT; }
|
|
131
|
+
if (v === "GT") { return Data$dOrdering.GT; }
|
|
132
|
+
return ordForeignError.compare(x._2)(y._2);
|
|
133
|
+
}
|
|
134
|
+
return Data$dOrdering.LT;
|
|
135
|
+
}
|
|
136
|
+
if (y.tag === "ErrorAtIndex") { return Data$dOrdering.GT; }
|
|
137
|
+
if (x.tag === "ErrorAtProperty" && y.tag === "ErrorAtProperty") {
|
|
138
|
+
const v = Data$dOrd.ordString.compare(x._1)(y._1);
|
|
139
|
+
if (v === "LT") { return Data$dOrdering.LT; }
|
|
140
|
+
if (v === "GT") { return Data$dOrdering.GT; }
|
|
141
|
+
return ordForeignError.compare(x._2)(y._2);
|
|
142
|
+
}
|
|
143
|
+
$runtime.fail();
|
|
144
|
+
},
|
|
145
|
+
Eq0: () => eqForeignError
|
|
146
|
+
};
|
|
147
|
+
export {
|
|
148
|
+
$ForeignError,
|
|
149
|
+
ErrorAtIndex,
|
|
150
|
+
ErrorAtProperty,
|
|
151
|
+
ForeignError,
|
|
152
|
+
TypeMismatch,
|
|
153
|
+
eqForeignError,
|
|
154
|
+
fail,
|
|
155
|
+
ordForeignError,
|
|
156
|
+
readArray,
|
|
157
|
+
readBoolean,
|
|
158
|
+
readChar,
|
|
159
|
+
readInt,
|
|
160
|
+
readNull,
|
|
161
|
+
readNullOrUndefined,
|
|
162
|
+
readNumber,
|
|
163
|
+
readString,
|
|
164
|
+
readUndefined,
|
|
165
|
+
renderForeignError,
|
|
166
|
+
showForeignError,
|
|
167
|
+
unsafeFromForeign,
|
|
168
|
+
unsafeReadTagged,
|
|
169
|
+
unsafeToForeign
|
|
170
|
+
};
|
|
171
|
+
export * from "./foreign.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function unsafeReadPropImpl(f, s, key, value) {
|
|
2
|
+
return value == null ? f : s(value[key]);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export function unsafeHasOwnProperty(prop, value) {
|
|
6
|
+
return Object.prototype.hasOwnProperty.call(value, prop);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function unsafeHasProperty(prop, value) {
|
|
10
|
+
return prop in value;
|
|
11
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// | This module defines a type class for types which act like
|
|
2
|
+
// | _property indices_.
|
|
3
|
+
import * as Control$dMonad$dExcept$dTrans from "../Control.Monad.Except.Trans/index.js";
|
|
4
|
+
import * as Data$dList$dTypes from "../Data.List.Types/index.js";
|
|
5
|
+
import * as Data$dNonEmpty from "../Data.NonEmpty/index.js";
|
|
6
|
+
import * as Foreign from "../Foreign/index.js";
|
|
7
|
+
import {unsafeHasOwnProperty, unsafeHasProperty, unsafeReadPropImpl} from "./foreign.js";
|
|
8
|
+
const unsafeReadProp = dictMonad => {
|
|
9
|
+
const pure = Control$dMonad$dExcept$dTrans.applicativeExceptT(dictMonad).pure;
|
|
10
|
+
return k => value => unsafeReadPropImpl(
|
|
11
|
+
Control$dMonad$dExcept$dTrans.monadThrowExceptT(dictMonad).throwError(Data$dNonEmpty.$NonEmpty(
|
|
12
|
+
Foreign.$ForeignError("TypeMismatch", "object", Foreign.typeOf(value)),
|
|
13
|
+
Data$dList$dTypes.Nil
|
|
14
|
+
)),
|
|
15
|
+
pure,
|
|
16
|
+
k,
|
|
17
|
+
value
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
const readProp = dictMonad => unsafeReadProp(dictMonad);
|
|
21
|
+
const readIndex = dictMonad => unsafeReadProp(dictMonad);
|
|
22
|
+
const ix = dict => dict.ix;
|
|
23
|
+
const index = dict => dict.index;
|
|
24
|
+
const indexableExceptT = dictMonad => {
|
|
25
|
+
const $0 = Control$dMonad$dExcept$dTrans.bindExceptT(dictMonad);
|
|
26
|
+
return {ix: dictIndex => f => i => $0.bind(f)(a => dictIndex.index(a)(i))};
|
|
27
|
+
};
|
|
28
|
+
const indexableForeign = dictMonad => ({ix: dictIndex => dictIndex.index});
|
|
29
|
+
const hasPropertyImpl = v => v1 => {
|
|
30
|
+
if (Foreign.isNull(v1)) { return false; }
|
|
31
|
+
if (Foreign.isUndefined(v1)) { return false; }
|
|
32
|
+
return (Foreign.typeOf(v1) === "object" || Foreign.typeOf(v1) === "function") && unsafeHasProperty(v, v1);
|
|
33
|
+
};
|
|
34
|
+
const hasProperty = dict => dict.hasProperty;
|
|
35
|
+
const hasOwnPropertyImpl = v => v1 => {
|
|
36
|
+
if (Foreign.isNull(v1)) { return false; }
|
|
37
|
+
if (Foreign.isUndefined(v1)) { return false; }
|
|
38
|
+
return (Foreign.typeOf(v1) === "object" || Foreign.typeOf(v1) === "function") && unsafeHasOwnProperty(v, v1);
|
|
39
|
+
};
|
|
40
|
+
const indexInt = dictMonad => (
|
|
41
|
+
{
|
|
42
|
+
index: (() => {
|
|
43
|
+
const $0 = unsafeReadProp(dictMonad);
|
|
44
|
+
return b => a => $0(a)(b);
|
|
45
|
+
})(),
|
|
46
|
+
hasProperty: hasPropertyImpl,
|
|
47
|
+
hasOwnProperty: hasOwnPropertyImpl,
|
|
48
|
+
errorAt: Foreign.ErrorAtIndex
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
const indexString = dictMonad => (
|
|
52
|
+
{
|
|
53
|
+
index: (() => {
|
|
54
|
+
const $0 = unsafeReadProp(dictMonad);
|
|
55
|
+
return b => a => $0(a)(b);
|
|
56
|
+
})(),
|
|
57
|
+
hasProperty: hasPropertyImpl,
|
|
58
|
+
hasOwnProperty: hasOwnPropertyImpl,
|
|
59
|
+
errorAt: Foreign.ErrorAtProperty
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
const hasOwnProperty = dict => dict.hasOwnProperty;
|
|
63
|
+
const errorAt = dict => dict.errorAt;
|
|
64
|
+
export {
|
|
65
|
+
errorAt,
|
|
66
|
+
hasOwnProperty,
|
|
67
|
+
hasOwnPropertyImpl,
|
|
68
|
+
hasProperty,
|
|
69
|
+
hasPropertyImpl,
|
|
70
|
+
index,
|
|
71
|
+
indexInt,
|
|
72
|
+
indexString,
|
|
73
|
+
indexableExceptT,
|
|
74
|
+
indexableForeign,
|
|
75
|
+
ix,
|
|
76
|
+
readIndex,
|
|
77
|
+
readProp,
|
|
78
|
+
unsafeReadProp
|
|
79
|
+
};
|
|
80
|
+
export * from "./foreign.js";
|