@explorable-viz/fluid 0.12.3 → 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.
Files changed (792) hide show
  1. package/output-es/Affjax/foreign.js +52 -0
  2. package/output-es/Affjax/index.js +387 -0
  3. package/output-es/Affjax.RequestBody/index.js +22 -0
  4. package/output-es/Affjax.RequestHeader/index.js +58 -0
  5. package/output-es/Affjax.ResponseFormat/index.js +47 -0
  6. package/output-es/Affjax.ResponseHeader/index.js +19 -0
  7. package/output-es/Affjax.StatusCode/index.js +8 -0
  8. package/output-es/Affjax.Web/foreign.js +8 -0
  9. package/output-es/Affjax.Web/index.js +14 -0
  10. package/output-es/App.CodeMirror/foreign.js +69 -0
  11. package/output-es/App.CodeMirror/index.js +3 -0
  12. package/output-es/App.Fig/index.js +713 -0
  13. package/output-es/App.LoadFigure/index.js +131 -0
  14. package/output-es/App.Util/index.js +773 -0
  15. package/output-es/App.Util.Selector/index.js +273 -0
  16. package/output-es/App.View/index.js +310 -0
  17. package/output-es/App.View.BarChart/index.js +153 -0
  18. package/output-es/App.View.DocView/index.js +40 -0
  19. package/output-es/App.View.LineChart/index.js +437 -0
  20. package/output-es/App.View.MatrixView/foreign.js +182 -0
  21. package/output-es/App.View.MatrixView/index.js +232 -0
  22. package/output-es/App.View.MultiView/index.js +30 -0
  23. package/output-es/App.View.Paragraph/index.js +44 -0
  24. package/output-es/App.View.ScatterPlot/foreign.js +110 -0
  25. package/output-es/App.View.ScatterPlot/index.js +122 -0
  26. package/output-es/App.View.Segment/index.js +92 -0
  27. package/output-es/App.View.StackedBar/index.js +54 -0
  28. package/output-es/App.View.TableView/index.js +397 -0
  29. package/output-es/App.View.Text/index.js +157 -0
  30. package/output-es/App.View.Util/index.js +222 -0
  31. package/output-es/App.View.Util.Axes/index.js +79 -0
  32. package/output-es/App.View.Util.D3/foreign.js +263 -0
  33. package/output-es/App.View.Util.D3/index.js +678 -0
  34. package/output-es/App.View.Util.Point/index.js +3 -0
  35. package/output-es/Benchmark/index.js +63 -0
  36. package/output-es/Bind/index.js +24 -0
  37. package/output-es/Control.Alt/index.js +5 -0
  38. package/output-es/Control.Alternative/index.js +11 -0
  39. package/output-es/Control.Applicative/index.js +18 -0
  40. package/output-es/Control.Apply/foreign.js +15 -0
  41. package/output-es/Control.Apply/index.js +17 -0
  42. package/output-es/Control.Biapplicative/index.js +5 -0
  43. package/output-es/Control.Biapply/index.js +11 -0
  44. package/output-es/Control.Bind/foreign.js +9 -0
  45. package/output-es/Control.Bind/index.js +21 -0
  46. package/output-es/Control.Category/index.js +4 -0
  47. package/output-es/Control.Comonad/index.js +2 -0
  48. package/output-es/Control.Comonad.Cofree/index.js +255 -0
  49. package/output-es/Control.Comonad.Cofree.Class/index.js +43 -0
  50. package/output-es/Control.Comonad.Env/index.js +8 -0
  51. package/output-es/Control.Comonad.Env.Class/index.js +17 -0
  52. package/output-es/Control.Comonad.Env.Trans/index.js +113 -0
  53. package/output-es/Control.Comonad.Store/index.js +5 -0
  54. package/output-es/Control.Comonad.Store.Class/index.js +56 -0
  55. package/output-es/Control.Comonad.Store.Trans/index.js +27 -0
  56. package/output-es/Control.Comonad.Traced/index.js +4 -0
  57. package/output-es/Control.Comonad.Traced.Class/index.js +16 -0
  58. package/output-es/Control.Comonad.Traced.Trans/index.js +28 -0
  59. package/output-es/Control.Comonad.Trans.Class/index.js +3 -0
  60. package/output-es/Control.Extend/foreign.js +7 -0
  61. package/output-es/Control.Extend/index.js +12 -0
  62. package/output-es/Control.Lazy/index.js +10 -0
  63. package/output-es/Control.Monad/index.js +27 -0
  64. package/output-es/Control.Monad.Cont/index.js +6 -0
  65. package/output-es/Control.Monad.Cont.Class/index.js +3 -0
  66. package/output-es/Control.Monad.Cont.Trans/index.js +122 -0
  67. package/output-es/Control.Monad.Error.Class/index.js +83 -0
  68. package/output-es/Control.Monad.Except/index.js +10 -0
  69. package/output-es/Control.Monad.Except.Trans/index.js +241 -0
  70. package/output-es/Control.Monad.Free/index.js +423 -0
  71. package/output-es/Control.Monad.Free.Class/index.js +45 -0
  72. package/output-es/Control.Monad.Gen/index.js +132 -0
  73. package/output-es/Control.Monad.Gen.Class/index.js +6 -0
  74. package/output-es/Control.Monad.Gen.Common/index.js +44 -0
  75. package/output-es/Control.Monad.Identity.Trans/index.js +88 -0
  76. package/output-es/Control.Monad.List.Trans/index.js +536 -0
  77. package/output-es/Control.Monad.Maybe.Trans/index.js +217 -0
  78. package/output-es/Control.Monad.RWS/index.js +16 -0
  79. package/output-es/Control.Monad.RWS.Trans/index.js +260 -0
  80. package/output-es/Control.Monad.Reader/index.js +6 -0
  81. package/output-es/Control.Monad.Reader.Class/index.js +11 -0
  82. package/output-es/Control.Monad.Reader.Trans/index.js +320 -0
  83. package/output-es/Control.Monad.Rec.Class/index.js +265 -0
  84. package/output-es/Control.Monad.ST/index.js +1 -0
  85. package/output-es/Control.Monad.ST.Class/index.js +7 -0
  86. package/output-es/Control.Monad.ST.Global/index.js +3 -0
  87. package/output-es/Control.Monad.ST.Internal/foreign.js +90 -0
  88. package/output-es/Control.Monad.ST.Internal/index.js +75 -0
  89. package/output-es/Control.Monad.ST.Ref/index.js +1 -0
  90. package/output-es/Control.Monad.ST.Uncurried/foreign.js +229 -0
  91. package/output-es/Control.Monad.ST.Uncurried/index.js +39 -0
  92. package/output-es/Control.Monad.State/index.js +8 -0
  93. package/output-es/Control.Monad.State.Class/index.js +12 -0
  94. package/output-es/Control.Monad.State.Trans/index.js +209 -0
  95. package/output-es/Control.Monad.Trampoline/index.js +9 -0
  96. package/output-es/Control.Monad.Trans.Class/index.js +3 -0
  97. package/output-es/Control.Monad.Writer/index.js +6 -0
  98. package/output-es/Control.Monad.Writer.Class/index.js +14 -0
  99. package/output-es/Control.Monad.Writer.Trans/index.js +256 -0
  100. package/output-es/Control.MonadPlus/index.js +4 -0
  101. package/output-es/Control.Parallel/index.js +49 -0
  102. package/output-es/Control.Parallel.Class/index.js +191 -0
  103. package/output-es/Control.Plus/index.js +4 -0
  104. package/output-es/Control.Promise/foreign.js +24 -0
  105. package/output-es/Control.Promise/index.js +40 -0
  106. package/output-es/Control.Semigroupoid/index.js +4 -0
  107. package/output-es/Data.Argonaut.Core/foreign.js +102 -0
  108. package/output-es/Data.Argonaut.Core/index.js +72 -0
  109. package/output-es/Data.Argonaut.Decode/index.js +10 -0
  110. package/output-es/Data.Argonaut.Decode.Class/index.js +173 -0
  111. package/output-es/Data.Argonaut.Decode.Combinators/index.js +21 -0
  112. package/output-es/Data.Argonaut.Decode.Decoders/index.js +463 -0
  113. package/output-es/Data.Argonaut.Decode.Error/index.js +151 -0
  114. package/output-es/Data.Argonaut.Decode.Parser/index.js +11 -0
  115. package/output-es/Data.Argonaut.Encode/index.js +3 -0
  116. package/output-es/Data.Argonaut.Encode.Class/index.js +114 -0
  117. package/output-es/Data.Argonaut.Encode.Combinators/index.js +15 -0
  118. package/output-es/Data.Argonaut.Encode.Encoders/index.js +222 -0
  119. package/output-es/Data.Argonaut.Gen/index.js +68 -0
  120. package/output-es/Data.Argonaut.Parser/foreign.js +8 -0
  121. package/output-es/Data.Argonaut.Parser/index.js +5 -0
  122. package/output-es/Data.Array/foreign.js +298 -0
  123. package/output-es/Data.Array/index.js +555 -0
  124. package/output-es/Data.Array.NonEmpty/index.js +317 -0
  125. package/output-es/Data.Array.NonEmpty.Internal/foreign.js +77 -0
  126. package/output-es/Data.Array.NonEmpty.Internal/index.js +90 -0
  127. package/output-es/Data.Array.Partial/index.js +7 -0
  128. package/output-es/Data.Array.ST/foreign.js +107 -0
  129. package/output-es/Data.Array.ST/index.js +82 -0
  130. package/output-es/Data.Array.ST.Iterator/index.js +83 -0
  131. package/output-es/Data.Array.ST.Partial/foreign.js +7 -0
  132. package/output-es/Data.Array.ST.Partial/index.js +9 -0
  133. package/output-es/Data.ArrayBuffer.Types/index.js +1 -0
  134. package/output-es/Data.Bifoldable/index.js +149 -0
  135. package/output-es/Data.Bifunctor/index.js +17 -0
  136. package/output-es/Data.Bifunctor.Join/index.js +21 -0
  137. package/output-es/Data.Bitraversable/index.js +195 -0
  138. package/output-es/Data.Boolean/index.js +2 -0
  139. package/output-es/Data.BooleanAlgebra/index.js +42 -0
  140. package/output-es/Data.Bounded/foreign.js +8 -0
  141. package/output-es/Data.Bounded/index.js +76 -0
  142. package/output-es/Data.Bounded.Generic/index.js +37 -0
  143. package/output-es/Data.CatList/index.js +326 -0
  144. package/output-es/Data.CatQueue/index.js +364 -0
  145. package/output-es/Data.Char/index.js +5 -0
  146. package/output-es/Data.Char.Gen/index.js +21 -0
  147. package/output-es/Data.CodePoint.Unicode/index.js +382 -0
  148. package/output-es/Data.CodePoint.Unicode.Internal/index.js +5476 -0
  149. package/output-es/Data.CodePoint.Unicode.Internal.Casing/index.js +1636 -0
  150. package/output-es/Data.CommutativeRing/index.js +49 -0
  151. package/output-es/Data.Compactable/index.js +228 -0
  152. package/output-es/Data.Comparison/index.js +22 -0
  153. package/output-es/Data.Const/index.js +56 -0
  154. package/output-es/Data.Coyoneda/index.js +212 -0
  155. package/output-es/Data.Date/foreign.js +22 -0
  156. package/output-es/Data.Date/index.js +370 -0
  157. package/output-es/Data.Date.Component/index.js +451 -0
  158. package/output-es/Data.Date.Component.Gen/index.js +11 -0
  159. package/output-es/Data.Date.Gen/index.js +25 -0
  160. package/output-es/Data.DateTime/foreign.js +33 -0
  161. package/output-es/Data.DateTime/index.js +131 -0
  162. package/output-es/Data.DateTime.Gen/index.js +8 -0
  163. package/output-es/Data.DateTime.Instant/foreign.js +18 -0
  164. package/output-es/Data.DateTime.Instant/index.js +86 -0
  165. package/output-es/Data.Decidable/index.js +70 -0
  166. package/output-es/Data.Decide/index.js +64 -0
  167. package/output-es/Data.Distributive/index.js +55 -0
  168. package/output-es/Data.Divide/index.js +47 -0
  169. package/output-es/Data.Divisible/index.js +17 -0
  170. package/output-es/Data.DivisionRing/index.js +6 -0
  171. package/output-es/Data.Either/index.js +242 -0
  172. package/output-es/Data.Either.Inject/index.js +25 -0
  173. package/output-es/Data.Either.Nested/index.js +450 -0
  174. package/output-es/Data.Enum/foreign.js +7 -0
  175. package/output-es/Data.Enum/index.js +441 -0
  176. package/output-es/Data.Enum.Gen/index.js +19 -0
  177. package/output-es/Data.Enum.Generic/index.js +211 -0
  178. package/output-es/Data.Eq/foreign.js +23 -0
  179. package/output-es/Data.Eq/index.js +33 -0
  180. package/output-es/Data.Eq.Generic/index.js +16 -0
  181. package/output-es/Data.Equivalence/index.js +8 -0
  182. package/output-es/Data.EuclideanRing/foreign.js +26 -0
  183. package/output-es/Data.EuclideanRing/index.js +25 -0
  184. package/output-es/Data.Exists/index.js +4 -0
  185. package/output-es/Data.Field/index.js +2 -0
  186. package/output-es/Data.Filterable/index.js +317 -0
  187. package/output-es/Data.Foldable/foreign.js +25 -0
  188. package/output-es/Data.Foldable/index.js +394 -0
  189. package/output-es/Data.FoldableWithIndex/index.js +431 -0
  190. package/output-es/Data.FormURLEncoded/index.js +110 -0
  191. package/output-es/Data.Function/index.js +23 -0
  192. package/output-es/Data.Function.Memoize/index.js +242 -0
  193. package/output-es/Data.Function.Uncurried/foreign.js +218 -0
  194. package/output-es/Data.Function.Uncurried/index.js +5 -0
  195. package/output-es/Data.Functor/foreign.js +10 -0
  196. package/output-es/Data.Functor/index.js +14 -0
  197. package/output-es/Data.Functor.App/index.js +87 -0
  198. package/output-es/Data.Functor.Clown/index.js +24 -0
  199. package/output-es/Data.Functor.Compose/index.js +131 -0
  200. package/output-es/Data.Functor.Contravariant/index.js +7 -0
  201. package/output-es/Data.Functor.Coproduct/index.js +171 -0
  202. package/output-es/Data.Functor.Coproduct.Inject/index.js +25 -0
  203. package/output-es/Data.Functor.Coproduct.Nested/index.js +433 -0
  204. package/output-es/Data.Functor.Costar/index.js +82 -0
  205. package/output-es/Data.Functor.Flip/index.js +31 -0
  206. package/output-es/Data.Functor.Invariant/index.js +14 -0
  207. package/output-es/Data.Functor.Joker/index.js +88 -0
  208. package/output-es/Data.Functor.Product/index.js +127 -0
  209. package/output-es/Data.Functor.Product.Nested/index.js +46 -0
  210. package/output-es/Data.Functor.Product2/index.js +46 -0
  211. package/output-es/Data.FunctorWithIndex/foreign.js +10 -0
  212. package/output-es/Data.FunctorWithIndex/index.js +147 -0
  213. package/output-es/Data.Generic.Rep/index.js +31 -0
  214. package/output-es/Data.Graph/index.js +370 -0
  215. package/output-es/Data.HTTP.Method/index.js +223 -0
  216. package/output-es/Data.HeytingAlgebra/foreign.js +15 -0
  217. package/output-es/Data.HeytingAlgebra/index.js +104 -0
  218. package/output-es/Data.HeytingAlgebra.Generic/index.js +76 -0
  219. package/output-es/Data.Identity/index.js +54 -0
  220. package/output-es/Data.Int/foreign.js +65 -0
  221. package/output-es/Data.Int/index.js +122 -0
  222. package/output-es/Data.Int.Bits/foreign.js +48 -0
  223. package/output-es/Data.Int.Bits/index.js +4 -0
  224. package/output-es/Data.Interval/index.js +331 -0
  225. package/output-es/Data.Interval.Duration/index.js +124 -0
  226. package/output-es/Data.Interval.Duration.Iso/index.js +423 -0
  227. package/output-es/Data.JSDate/foreign.js +83 -0
  228. package/output-es/Data.JSDate/index.js +123 -0
  229. package/output-es/Data.Lazy/foreign.js +14 -0
  230. package/output-es/Data.Lazy/index.js +143 -0
  231. package/output-es/Data.List/index.js +1505 -0
  232. package/output-es/Data.List.Internal/index.js +155 -0
  233. package/output-es/Data.List.Lazy/index.js +658 -0
  234. package/output-es/Data.List.Lazy.NonEmpty/index.js +77 -0
  235. package/output-es/Data.List.Lazy.Types/index.js +511 -0
  236. package/output-es/Data.List.NonEmpty/index.js +540 -0
  237. package/output-es/Data.List.Partial/index.js +37 -0
  238. package/output-es/Data.List.Types/index.js +841 -0
  239. package/output-es/Data.List.ZipList/index.js +43 -0
  240. package/output-es/Data.Map/index.js +80 -0
  241. package/output-es/Data.Map.Gen/index.js +15 -0
  242. package/output-es/Data.Map.Internal/index.js +1216 -0
  243. package/output-es/Data.Maybe/index.js +253 -0
  244. package/output-es/Data.Maybe.First/index.js +85 -0
  245. package/output-es/Data.Maybe.Last/index.js +86 -0
  246. package/output-es/Data.MediaType/index.js +8 -0
  247. package/output-es/Data.MediaType.Common/index.js +30 -0
  248. package/output-es/Data.Monoid/index.js +66 -0
  249. package/output-es/Data.Monoid.Additive/index.js +33 -0
  250. package/output-es/Data.Monoid.Alternate/index.js +46 -0
  251. package/output-es/Data.Monoid.Conj/index.js +21 -0
  252. package/output-es/Data.Monoid.Disj/index.js +21 -0
  253. package/output-es/Data.Monoid.Dual/index.js +19 -0
  254. package/output-es/Data.Monoid.Endo/index.js +12 -0
  255. package/output-es/Data.Monoid.Generic/index.js +11 -0
  256. package/output-es/Data.Monoid.Multiplicative/index.js +33 -0
  257. package/output-es/Data.NaturalTransformation/index.js +1 -0
  258. package/output-es/Data.Newtype/index.js +51 -0
  259. package/output-es/Data.NonEmpty/index.js +217 -0
  260. package/output-es/Data.Nullable/foreign.js +12 -0
  261. package/output-es/Data.Nullable/index.js +53 -0
  262. package/output-es/Data.Number/foreign.js +80 -0
  263. package/output-es/Data.Number/index.js +15 -0
  264. package/output-es/Data.Number.Approximate/index.js +13 -0
  265. package/output-es/Data.Number.Format/foreign.js +12 -0
  266. package/output-es/Data.Number.Format/index.js +53 -0
  267. package/output-es/Data.Op/index.js +13 -0
  268. package/output-es/Data.Ord/foreign.js +43 -0
  269. package/output-es/Data.Ord/index.js +161 -0
  270. package/output-es/Data.Ord.Down/index.js +35 -0
  271. package/output-es/Data.Ord.Generic/index.js +34 -0
  272. package/output-es/Data.Ord.Max/index.js +34 -0
  273. package/output-es/Data.Ord.Min/index.js +34 -0
  274. package/output-es/Data.Ordering/index.js +35 -0
  275. package/output-es/Data.Posix/index.js +19 -0
  276. package/output-es/Data.Posix.Signal/index.js +405 -0
  277. package/output-es/Data.Predicate/index.js +14 -0
  278. package/output-es/Data.Profunctor/index.js +13 -0
  279. package/output-es/Data.Profunctor.Choice/index.js +32 -0
  280. package/output-es/Data.Profunctor.Closed/index.js +5 -0
  281. package/output-es/Data.Profunctor.Cochoice/index.js +3 -0
  282. package/output-es/Data.Profunctor.Costrong/index.js +3 -0
  283. package/output-es/Data.Profunctor.Join/index.js +13 -0
  284. package/output-es/Data.Profunctor.Split/index.js +11 -0
  285. package/output-es/Data.Profunctor.Star/index.js +250 -0
  286. package/output-es/Data.Profunctor.Strong/index.js +19 -0
  287. package/output-es/Data.Reflectable/foreign.js +5 -0
  288. package/output-es/Data.Reflectable/index.js +10 -0
  289. package/output-es/Data.Ring/foreign.js +12 -0
  290. package/output-es/Data.Ring/index.js +50 -0
  291. package/output-es/Data.Ring.Generic/index.js +10 -0
  292. package/output-es/Data.Semigroup/foreign.js +13 -0
  293. package/output-es/Data.Semigroup/index.js +25 -0
  294. package/output-es/Data.Semigroup.First/index.js +14 -0
  295. package/output-es/Data.Semigroup.Foldable/index.js +143 -0
  296. package/output-es/Data.Semigroup.Generic/index.js +11 -0
  297. package/output-es/Data.Semigroup.Last/index.js +14 -0
  298. package/output-es/Data.Semigroup.Traversable/index.js +39 -0
  299. package/output-es/Data.Semiring/foreign.js +25 -0
  300. package/output-es/Data.Semiring/index.js +66 -0
  301. package/output-es/Data.Semiring.Generic/index.js +52 -0
  302. package/output-es/Data.Set/index.js +310 -0
  303. package/output-es/Data.Set.NonEmpty/index.js +198 -0
  304. package/output-es/Data.Show/foreign.js +59 -0
  305. package/output-es/Data.Show/index.js +56 -0
  306. package/output-es/Data.Show.Generic/foreign.js +5 -0
  307. package/output-es/Data.Show.Generic/index.js +43 -0
  308. package/output-es/Data.String/index.js +1 -0
  309. package/output-es/Data.String.CaseInsensitive/index.js +12 -0
  310. package/output-es/Data.String.CodePoints/foreign.js +107 -0
  311. package/output-es/Data.String.CodePoints/index.js +201 -0
  312. package/output-es/Data.String.CodeUnits/foreign.js +116 -0
  313. package/output-es/Data.String.CodeUnits/index.js +55 -0
  314. package/output-es/Data.String.Common/foreign.js +52 -0
  315. package/output-es/Data.String.Common/index.js +6 -0
  316. package/output-es/Data.String.Gen/index.js +26 -0
  317. package/output-es/Data.String.NonEmpty/index.js +1 -0
  318. package/output-es/Data.String.NonEmpty.CaseInsensitive/index.js +12 -0
  319. package/output-es/Data.String.NonEmpty.CodePoints/index.js +89 -0
  320. package/output-es/Data.String.NonEmpty.CodeUnits/index.js +98 -0
  321. package/output-es/Data.String.NonEmpty.Internal/index.js +119 -0
  322. package/output-es/Data.String.Pattern/index.js +13 -0
  323. package/output-es/Data.String.Regex/foreign.js +103 -0
  324. package/output-es/Data.String.Regex/index.js +28 -0
  325. package/output-es/Data.String.Regex.Flags/index.js +44 -0
  326. package/output-es/Data.String.Regex.Unsafe/index.js +10 -0
  327. package/output-es/Data.String.Unicode/index.js +18 -0
  328. package/output-es/Data.String.Unsafe/foreign.js +11 -0
  329. package/output-es/Data.String.Unsafe/index.js +4 -0
  330. package/output-es/Data.Symbol/foreign.js +6 -0
  331. package/output-es/Data.Symbol/index.js +6 -0
  332. package/output-es/Data.Time/index.js +119 -0
  333. package/output-es/Data.Time.Component/index.js +138 -0
  334. package/output-es/Data.Time.Component.Gen/index.js +7 -0
  335. package/output-es/Data.Time.Duration/index.js +95 -0
  336. package/output-es/Data.Time.Duration.Gen/index.js +7 -0
  337. package/output-es/Data.Time.Gen/index.js +8 -0
  338. package/output-es/Data.Traversable/foreign.js +52 -0
  339. package/output-es/Data.Traversable/index.js +303 -0
  340. package/output-es/Data.Traversable.Accum/index.js +1 -0
  341. package/output-es/Data.Traversable.Accum.Internal/index.js +35 -0
  342. package/output-es/Data.TraversableWithIndex/index.js +280 -0
  343. package/output-es/Data.Tuple/index.js +194 -0
  344. package/output-es/Data.Tuple.Nested/index.js +290 -0
  345. package/output-es/Data.Unfoldable/foreign.js +21 -0
  346. package/output-es/Data.Unfoldable/index.js +45 -0
  347. package/output-es/Data.Unfoldable1/foreign.js +21 -0
  348. package/output-es/Data.Unfoldable1/index.js +39 -0
  349. package/output-es/Data.Unit/foreign.js +1 -0
  350. package/output-es/Data.Unit/index.js +3 -0
  351. package/output-es/Data.Void/index.js +12 -0
  352. package/output-es/Data.Witherable/index.js +371 -0
  353. package/output-es/Data.Yoneda/index.js +85 -0
  354. package/output-es/DataType/index.js +276 -0
  355. package/output-es/Debug/foreign.js +57 -0
  356. package/output-es/Debug/index.js +13 -0
  357. package/output-es/Desug/index.js +17 -0
  358. package/output-es/Desugarable/index.js +3 -0
  359. package/output-es/Dict/index.js +118 -0
  360. package/output-es/Effect/foreign.js +51 -0
  361. package/output-es/Effect/index.js +49 -0
  362. package/output-es/Effect.Aff/foreign.js +1154 -0
  363. package/output-es/Effect.Aff/index.js +268 -0
  364. package/output-es/Effect.Aff.Class/index.js +114 -0
  365. package/output-es/Effect.Aff.Compat/index.js +14 -0
  366. package/output-es/Effect.Class/index.js +4 -0
  367. package/output-es/Effect.Class.Console/index.js +25 -0
  368. package/output-es/Effect.Console/foreign.js +67 -0
  369. package/output-es/Effect.Console/index.js +17 -0
  370. package/output-es/Effect.Exception/foreign.js +45 -0
  371. package/output-es/Effect.Exception/index.js +14 -0
  372. package/output-es/Effect.Exception.Unsafe/index.js +4 -0
  373. package/output-es/Effect.Now/foreign.js +8 -0
  374. package/output-es/Effect.Now/index.js +16 -0
  375. package/output-es/Effect.Random/foreign.js +1 -0
  376. package/output-es/Effect.Random/index.js +17 -0
  377. package/output-es/Effect.Ref/foreign.js +37 -0
  378. package/output-es/Effect.Ref/index.js +34 -0
  379. package/output-es/Effect.Uncurried/foreign.js +229 -0
  380. package/output-es/Effect.Uncurried/index.js +386 -0
  381. package/output-es/Effect.Unsafe/foreign.js +3 -0
  382. package/output-es/Effect.Unsafe/index.js +3 -0
  383. package/output-es/Eval/index.js +951 -0
  384. package/output-es/ExitCodes/index.js +461 -0
  385. package/output-es/Expr/index.js +1732 -0
  386. package/output-es/File/index.js +125 -0
  387. package/output-es/Fluid/index.js +229 -0
  388. package/output-es/Foreign/foreign.js +19 -0
  389. package/output-es/Foreign/index.js +171 -0
  390. package/output-es/Foreign.Index/foreign.js +11 -0
  391. package/output-es/Foreign.Index/index.js +80 -0
  392. package/output-es/Foreign.Keys/foreign.js +9 -0
  393. package/output-es/Foreign.Keys/index.js +28 -0
  394. package/output-es/Foreign.Object/foreign.js +116 -0
  395. package/output-es/Foreign.Object/index.js +304 -0
  396. package/output-es/Foreign.Object.Gen/index.js +13 -0
  397. package/output-es/Foreign.Object.ST/foreign.js +37 -0
  398. package/output-es/Foreign.Object.ST/index.js +9 -0
  399. package/output-es/Foreign.Object.ST.Unsafe/foreign.js +5 -0
  400. package/output-es/Foreign.Object.ST.Unsafe/index.js +3 -0
  401. package/output-es/Foreign.Object.Unsafe/foreign.js +5 -0
  402. package/output-es/Foreign.Object.Unsafe/index.js +3 -0
  403. package/output-es/GaloisConnection/index.js +72 -0
  404. package/output-es/Graph/index.js +279 -0
  405. package/output-es/Graph.GraphImpl/index.js +296 -0
  406. package/output-es/Graph.Slice/index.js +125 -0
  407. package/output-es/Graph.WithGraph/index.js +190 -0
  408. package/output-es/JSURI/foreign.js +61 -0
  409. package/output-es/JSURI/index.js +10 -0
  410. package/output-es/Lattice/index.js +397 -0
  411. package/output-es/Link/index.js +84 -0
  412. package/output-es/Module/index.js +317 -0
  413. package/output-es/Module.Node/index.js +95 -0
  414. package/output-es/Module.Web/index.js +79 -0
  415. package/output-es/ModuleGraph/index.js +1 -0
  416. package/output-es/Node.Buffer/foreign.js +33 -0
  417. package/output-es/Node.Buffer/index.js +191 -0
  418. package/output-es/Node.Buffer.Class/index.js +48 -0
  419. package/output-es/Node.Buffer.Constants/foreign.js +5 -0
  420. package/output-es/Node.Buffer.Constants/index.js +3 -0
  421. package/output-es/Node.Buffer.Immutable/foreign.js +45 -0
  422. package/output-es/Node.Buffer.Immutable/index.js +121 -0
  423. package/output-es/Node.Buffer.ST/index.js +98 -0
  424. package/output-es/Node.Buffer.Types/index.js +36 -0
  425. package/output-es/Node.Encoding/foreign.js +3 -0
  426. package/output-es/Node.Encoding/index.js +55 -0
  427. package/output-es/Node.EventEmitter/foreign.js +24 -0
  428. package/output-es/Node.EventEmitter/index.js +142 -0
  429. package/output-es/Node.EventEmitter.UtilTypes/index.js +1 -0
  430. package/output-es/Node.FS/index.js +27 -0
  431. package/output-es/Node.FS.Aff/index.js +132 -0
  432. package/output-es/Node.FS.Async/foreign.js +28 -0
  433. package/output-es/Node.FS.Async/index.js +241 -0
  434. package/output-es/Node.FS.Constants/foreign.js +17 -0
  435. package/output-es/Node.FS.Constants/index.js +103 -0
  436. package/output-es/Node.FS.Perms/index.js +125 -0
  437. package/output-es/Node.FS.Stats/foreign.js +27 -0
  438. package/output-es/Node.FS.Stats/index.js +102 -0
  439. package/output-es/Node.FS.Stream/foreign.js +11 -0
  440. package/output-es/Node.FS.Stream/index.js +20 -0
  441. package/output-es/Node.FS.Sync/foreign.js +30 -0
  442. package/output-es/Node.FS.Sync/index.js +258 -0
  443. package/output-es/Node.Path/foreign.js +30 -0
  444. package/output-es/Node.Path/index.js +3 -0
  445. package/output-es/Node.Platform/index.js +104 -0
  446. package/output-es/Node.Process/foreign.js +65 -0
  447. package/output-es/Node.Process/index.js +180 -0
  448. package/output-es/Node.Stream/foreign.js +97 -0
  449. package/output-es/Node.Stream/index.js +310 -0
  450. package/output-es/Node.Stream.Aff/index.js +445 -0
  451. package/output-es/Node.Symbol/foreign.js +3 -0
  452. package/output-es/Node.Symbol/index.js +12 -0
  453. package/output-es/Options.Applicative/index.js +1 -0
  454. package/output-es/Options.Applicative.BashCompletion/index.js +417 -0
  455. package/output-es/Options.Applicative.Builder/index.js +505 -0
  456. package/output-es/Options.Applicative.Builder.Completer/foreign.js +8 -0
  457. package/output-es/Options.Applicative.Builder.Completer/index.js +133 -0
  458. package/output-es/Options.Applicative.Builder.Internal/index.js +122 -0
  459. package/output-es/Options.Applicative.Common/index.js +497 -0
  460. package/output-es/Options.Applicative.Extra/index.js +273 -0
  461. package/output-es/Options.Applicative.Help/index.js +3 -0
  462. package/output-es/Options.Applicative.Help.Chunk/index.js +229 -0
  463. package/output-es/Options.Applicative.Help.Core/index.js +450 -0
  464. package/output-es/Options.Applicative.Help.Levenshtein/index.js +22 -0
  465. package/output-es/Options.Applicative.Help.Pretty/index.js +1 -0
  466. package/output-es/Options.Applicative.Help.Types/index.js +112 -0
  467. package/output-es/Options.Applicative.Internal/index.js +447 -0
  468. package/output-es/Options.Applicative.Internal.Utils/index.js +36 -0
  469. package/output-es/Options.Applicative.Types/index.js +979 -0
  470. package/output-es/PSCI.Support/index.js +15 -0
  471. package/output-es/Parse/index.js +2003 -0
  472. package/output-es/Parse.Number/index.js +390 -0
  473. package/output-es/Parse.Parser/index.js +428 -0
  474. package/output-es/Parsing/index.js +342 -0
  475. package/output-es/Parsing.Combinators/index.js +901 -0
  476. package/output-es/Parsing.Combinators.Array/index.js +131 -0
  477. package/output-es/Parsing.Expr/index.js +317 -0
  478. package/output-es/Parsing.Indent/index.js +492 -0
  479. package/output-es/Parsing.Language/index.js +224 -0
  480. package/output-es/Parsing.String/index.js +378 -0
  481. package/output-es/Parsing.String.Basic/index.js +236 -0
  482. package/output-es/Parsing.String.Replace/index.js +342 -0
  483. package/output-es/Parsing.Token/index.js +1980 -0
  484. package/output-es/Partial/foreign.js +5 -0
  485. package/output-es/Partial/index.js +6 -0
  486. package/output-es/Partial.Unsafe/foreign.js +5 -0
  487. package/output-es/Partial.Unsafe/index.js +8 -0
  488. package/output-es/Prelude/index.js +13 -0
  489. package/output-es/Pretty/index.js +1334 -0
  490. package/output-es/Pretty.Doc/index.js +139 -0
  491. package/output-es/Pretty.Util/index.js +90 -0
  492. package/output-es/Primitive/index.js +304 -0
  493. package/output-es/Primitive.Defs/index.js +872 -0
  494. package/output-es/Primitive.Parse/index.js +93 -0
  495. package/output-es/Random.LCG/index.js +35 -0
  496. package/output-es/Record/index.js +23 -0
  497. package/output-es/Record.Builder/foreign.js +44 -0
  498. package/output-es/Record.Builder/index.js +20 -0
  499. package/output-es/Record.Unsafe/foreign.js +38 -0
  500. package/output-es/Record.Unsafe/index.js +9 -0
  501. package/output-es/Record.Unsafe.Union/foreign.js +14 -0
  502. package/output-es/Record.Unsafe.Union/index.js +4 -0
  503. package/output-es/SExpr/index.js +3972 -0
  504. package/output-es/Safe.Coerce/index.js +3 -0
  505. package/output-es/Test.Assert/foreign.js +21 -0
  506. package/output-es/Test.Assert/index.js +37 -0
  507. package/output-es/Test.Benchmark.Util/foreign.js +3 -0
  508. package/output-es/Test.Benchmark.Util/index.js +273 -0
  509. package/output-es/Test.QuickCheck/index.js +297 -0
  510. package/output-es/Test.QuickCheck.Arbitrary/index.js +482 -0
  511. package/output-es/Test.QuickCheck.Gen/foreign.js +10 -0
  512. package/output-es/Test.QuickCheck.Gen/index.js +270 -0
  513. package/output-es/Test.Specs.Bwd/index.js +220 -0
  514. package/output-es/Test.Specs.Comments/index.js +25 -0
  515. package/output-es/Test.Specs.Desugar/index.js +17 -0
  516. package/output-es/Test.Specs.Graphics/index.js +7 -0
  517. package/output-es/Test.Specs.LinkedInputs/index.js +52 -0
  518. package/output-es/Test.Specs.LinkedOutputs/index.js +61 -0
  519. package/output-es/Test.Specs.Misc/index.js +35 -0
  520. package/output-es/Test.Specs.Paragraph/index.js +5 -0
  521. package/output-es/Test.Test/index.js +106 -0
  522. package/output-es/Test.Util/index.js +239 -0
  523. package/output-es/Test.Util.Debug/index.js +6 -0
  524. package/output-es/Test.Util.Debug.Defaults/index.js +16 -0
  525. package/output-es/Test.Util.Mocha/foreign.js +55 -0
  526. package/output-es/Test.Util.Mocha/index.js +21 -0
  527. package/output-es/Test.Util.Puppeteer/index.js +83 -0
  528. package/output-es/Test.Util.Suite/index.js +197 -0
  529. package/output-es/Text.PrettyPrint.Leijen/index.js +700 -0
  530. package/output-es/Toppokki/foreign.js +170 -0
  531. package/output-es/Toppokki/index.js +122 -0
  532. package/output-es/Type.Data.Boolean/index.js +21 -0
  533. package/output-es/Type.Data.Ordering/index.js +56 -0
  534. package/output-es/Type.Data.Symbol/index.js +7 -0
  535. package/output-es/Type.Equality/index.js +5 -0
  536. package/output-es/Type.Function/index.js +1 -0
  537. package/output-es/Type.Prelude/index.js +1 -0
  538. package/output-es/Type.Proxy/index.js +51 -0
  539. package/output-es/Type.Row/index.js +1 -0
  540. package/output-es/Type.Row.Homogeneous/index.js +4 -0
  541. package/output-es/Type.RowList/index.js +10 -0
  542. package/output-es/Unsafe.Coerce/foreign.js +5 -0
  543. package/output-es/Unsafe.Coerce/index.js +3 -0
  544. package/output-es/Util/index.js +340 -0
  545. package/output-es/Util.Map/foreign.js +13 -0
  546. package/output-es/Util.Map/index.js +129 -0
  547. package/output-es/Util.Pair/index.js +90 -0
  548. package/output-es/Util.Set/index.js +75 -0
  549. package/output-es/Val/index.js +1771 -0
  550. package/output-es/Web.DOM/index.js +1 -0
  551. package/output-es/Web.DOM.CharacterData/foreign.js +61 -0
  552. package/output-es/Web.DOM.CharacterData/index.js +13 -0
  553. package/output-es/Web.DOM.ChildNode/foreign.js +5 -0
  554. package/output-es/Web.DOM.ChildNode/index.js +3 -0
  555. package/output-es/Web.DOM.Comment/index.js +13 -0
  556. package/output-es/Web.DOM.DOMTokenList/foreign.js +49 -0
  557. package/output-es/Web.DOM.DOMTokenList/index.js +15 -0
  558. package/output-es/Web.DOM.Document/foreign.js +112 -0
  559. package/output-es/Web.DOM.Document/index.js +75 -0
  560. package/output-es/Web.DOM.DocumentFragment/index.js +13 -0
  561. package/output-es/Web.DOM.DocumentType/foreign.js +9 -0
  562. package/output-es/Web.DOM.DocumentType/index.js +11 -0
  563. package/output-es/Web.DOM.Element/foreign.js +210 -0
  564. package/output-es/Web.DOM.Element/index.js +101 -0
  565. package/output-es/Web.DOM.HTMLCollection/foreign.js +27 -0
  566. package/output-es/Web.DOM.HTMLCollection/index.js +25 -0
  567. package/output-es/Web.DOM.Internal.Types/index.js +1 -0
  568. package/output-es/Web.DOM.MutationObserver/foreign.js +29 -0
  569. package/output-es/Web.DOM.MutationObserver/index.js +4 -0
  570. package/output-es/Web.DOM.MutationRecord/foreign.js +53 -0
  571. package/output-es/Web.DOM.MutationRecord/index.js +66 -0
  572. package/output-es/Web.DOM.Node/foreign.js +153 -0
  573. package/output-es/Web.DOM.Node/index.js +147 -0
  574. package/output-es/Web.DOM.NodeList/foreign.js +19 -0
  575. package/output-es/Web.DOM.NodeList/index.js +15 -0
  576. package/output-es/Web.DOM.NodeType/index.js +199 -0
  577. package/output-es/Web.DOM.NonDocumentTypeChildNode/foreign.js +11 -0
  578. package/output-es/Web.DOM.NonDocumentTypeChildNode/index.js +19 -0
  579. package/output-es/Web.DOM.NonElementParentNode/foreign.js +7 -0
  580. package/output-es/Web.DOM.NonElementParentNode/index.js +15 -0
  581. package/output-es/Web.DOM.ParentNode/foreign.js +28 -0
  582. package/output-es/Web.DOM.ParentNode/index.js +35 -0
  583. package/output-es/Web.DOM.ProcessingInstruction/foreign.js +5 -0
  584. package/output-es/Web.DOM.ProcessingInstruction/index.js +15 -0
  585. package/output-es/Web.DOM.ShadowRoot/foreign.js +9 -0
  586. package/output-es/Web.DOM.ShadowRoot/index.js +23 -0
  587. package/output-es/Web.DOM.Text/foreign.js +13 -0
  588. package/output-es/Web.DOM.Text/index.js +15 -0
  589. package/output-es/Web.Event.CustomEvent/foreign.js +18 -0
  590. package/output-es/Web.Event.CustomEvent/index.js +20 -0
  591. package/output-es/Web.Event.Event/foreign.js +51 -0
  592. package/output-es/Web.Event.Event/index.js +23 -0
  593. package/output-es/Web.Event.EventPhase/index.js +99 -0
  594. package/output-es/Web.Event.EventTarget/foreign.js +51 -0
  595. package/output-es/Web.Event.EventTarget/index.js +3 -0
  596. package/output-es/Web.Event.Internal.Types/index.js +1 -0
  597. package/output-es/Web.File.Blob/foreign.js +19 -0
  598. package/output-es/Web.File.Blob/index.js +18 -0
  599. package/output-es/Web.File.File/foreign.js +2 -0
  600. package/output-es/Web.File.File/index.js +13 -0
  601. package/output-es/Web.File.FileList/foreign.js +7 -0
  602. package/output-es/Web.File.FileList/index.js +16 -0
  603. package/output-es/Web.File.FileReader/foreign.js +51 -0
  604. package/output-es/Web.File.FileReader/index.js +19 -0
  605. package/output-es/Web.File.FileReader.ReadyState/index.js +94 -0
  606. package/output-es/Web.File.Url/foreign.js +11 -0
  607. package/output-es/Web.File.Url/index.js +3 -0
  608. package/output-es/Web.HTML/foreign.js +4 -0
  609. package/output-es/Web.HTML/index.js +3 -0
  610. package/output-es/Web.HTML.Common/index.js +15 -0
  611. package/output-es/Web.HTML.Event.BeforeUnloadEvent/foreign.js +13 -0
  612. package/output-es/Web.HTML.Event.BeforeUnloadEvent/index.js +7 -0
  613. package/output-es/Web.HTML.Event.BeforeUnloadEvent.EventTypes/index.js +2 -0
  614. package/output-es/Web.HTML.Event.DataTransfer/foreign.js +55 -0
  615. package/output-es/Web.HTML.Event.DataTransfer/index.js +63 -0
  616. package/output-es/Web.HTML.Event.DataTransfer.DataTransferItem/foreign.js +23 -0
  617. package/output-es/Web.HTML.Event.DataTransfer.DataTransferItem/index.js +41 -0
  618. package/output-es/Web.HTML.Event.DragEvent/foreign.js +3 -0
  619. package/output-es/Web.HTML.Event.DragEvent/index.js +7 -0
  620. package/output-es/Web.HTML.Event.DragEvent.EventTypes/index.js +9 -0
  621. package/output-es/Web.HTML.Event.ErrorEvent/foreign.js +15 -0
  622. package/output-es/Web.HTML.Event.ErrorEvent/index.js +7 -0
  623. package/output-es/Web.HTML.Event.EventTypes/index.js +68 -0
  624. package/output-es/Web.HTML.Event.HashChangeEvent/foreign.js +7 -0
  625. package/output-es/Web.HTML.Event.HashChangeEvent/index.js +7 -0
  626. package/output-es/Web.HTML.Event.HashChangeEvent.EventTypes/index.js +2 -0
  627. package/output-es/Web.HTML.Event.PageTransitionEvent/foreign.js +3 -0
  628. package/output-es/Web.HTML.Event.PageTransitionEvent/index.js +7 -0
  629. package/output-es/Web.HTML.Event.PageTransitionEvent.EventTypes/index.js +3 -0
  630. package/output-es/Web.HTML.Event.PopStateEvent/foreign.js +3 -0
  631. package/output-es/Web.HTML.Event.PopStateEvent/index.js +7 -0
  632. package/output-es/Web.HTML.Event.PopStateEvent.EventTypes/index.js +2 -0
  633. package/output-es/Web.HTML.Event.TrackEvent/index.js +5 -0
  634. package/output-es/Web.HTML.Event.TrackEvent.EventTypes/index.js +3 -0
  635. package/output-es/Web.HTML.HTMLAnchorElement/foreign.js +117 -0
  636. package/output-es/Web.HTML.HTMLAnchorElement/index.js +36 -0
  637. package/output-es/Web.HTML.HTMLAreaElement/foreign.js +133 -0
  638. package/output-es/Web.HTML.HTMLAreaElement/index.js +34 -0
  639. package/output-es/Web.HTML.HTMLAudioElement/foreign.js +9 -0
  640. package/output-es/Web.HTML.HTMLAudioElement/index.js +40 -0
  641. package/output-es/Web.HTML.HTMLBRElement/index.js +32 -0
  642. package/output-es/Web.HTML.HTMLBaseElement/foreign.js +29 -0
  643. package/output-es/Web.HTML.HTMLBaseElement/index.js +34 -0
  644. package/output-es/Web.HTML.HTMLBodyElement/index.js +32 -0
  645. package/output-es/Web.HTML.HTMLButtonElement/foreign.js +223 -0
  646. package/output-es/Web.HTML.HTMLButtonElement/index.js +73 -0
  647. package/output-es/Web.HTML.HTMLCanvasElement/foreign.js +29 -0
  648. package/output-es/Web.HTML.HTMLCanvasElement/index.js +34 -0
  649. package/output-es/Web.HTML.HTMLDListElement/index.js +32 -0
  650. package/output-es/Web.HTML.HTMLDataElement/foreign.js +13 -0
  651. package/output-es/Web.HTML.HTMLDataElement/index.js +34 -0
  652. package/output-es/Web.HTML.HTMLDataListElement/foreign.js +5 -0
  653. package/output-es/Web.HTML.HTMLDataListElement/index.js +34 -0
  654. package/output-es/Web.HTML.HTMLDivElement/index.js +32 -0
  655. package/output-es/Web.HTML.HTMLDocument/foreign.js +39 -0
  656. package/output-es/Web.HTML.HTMLDocument/index.js +76 -0
  657. package/output-es/Web.HTML.HTMLDocument.ReadyState/index.js +52 -0
  658. package/output-es/Web.HTML.HTMLDocument.VisibilityState/index.js +42 -0
  659. package/output-es/Web.HTML.HTMLElement/foreign.js +194 -0
  660. package/output-es/Web.HTML.HTMLElement/index.js +66 -0
  661. package/output-es/Web.HTML.HTMLEmbedElement/foreign.js +61 -0
  662. package/output-es/Web.HTML.HTMLEmbedElement/index.js +34 -0
  663. package/output-es/Web.HTML.HTMLFieldSetElement/foreign.js +103 -0
  664. package/output-es/Web.HTML.HTMLFieldSetElement/index.js +44 -0
  665. package/output-es/Web.HTML.HTMLFormElement/foreign.js +181 -0
  666. package/output-es/Web.HTML.HTMLFormElement/index.js +58 -0
  667. package/output-es/Web.HTML.HTMLHRElement/index.js +32 -0
  668. package/output-es/Web.HTML.HTMLHeadElement/index.js +32 -0
  669. package/output-es/Web.HTML.HTMLHeadingElement/index.js +32 -0
  670. package/output-es/Web.HTML.HTMLHtmlElement/index.js +32 -0
  671. package/output-es/Web.HTML.HTMLHyperlinkElementUtils/foreign.js +165 -0
  672. package/output-es/Web.HTML.HTMLHyperlinkElementUtils/index.js +26 -0
  673. package/output-es/Web.HTML.HTMLIFrameElement/foreign.js +91 -0
  674. package/output-es/Web.HTML.HTMLIFrameElement/index.js +52 -0
  675. package/output-es/Web.HTML.HTMLImageElement/foreign.js +215 -0
  676. package/output-es/Web.HTML.HTMLImageElement/index.js +140 -0
  677. package/output-es/Web.HTML.HTMLImageElement.CORSMode/index.js +43 -0
  678. package/output-es/Web.HTML.HTMLImageElement.DecodingHint/index.js +53 -0
  679. package/output-es/Web.HTML.HTMLImageElement.Laziness/index.js +43 -0
  680. package/output-es/Web.HTML.HTMLInputElement/foreign.js +727 -0
  681. package/output-es/Web.HTML.HTMLInputElement/index.js +171 -0
  682. package/output-es/Web.HTML.HTMLKeygenElement/foreign.js +151 -0
  683. package/output-es/Web.HTML.HTMLKeygenElement/index.js +64 -0
  684. package/output-es/Web.HTML.HTMLLIElement/foreign.js +13 -0
  685. package/output-es/Web.HTML.HTMLLIElement/index.js +34 -0
  686. package/output-es/Web.HTML.HTMLLabelElement/foreign.js +29 -0
  687. package/output-es/Web.HTML.HTMLLabelElement/index.js +52 -0
  688. package/output-es/Web.HTML.HTMLLegendElement/foreign.js +5 -0
  689. package/output-es/Web.HTML.HTMLLegendElement/index.js +44 -0
  690. package/output-es/Web.HTML.HTMLLinkElement/foreign.js +133 -0
  691. package/output-es/Web.HTML.HTMLLinkElement/index.js +34 -0
  692. package/output-es/Web.HTML.HTMLMapElement/foreign.js +29 -0
  693. package/output-es/Web.HTML.HTMLMapElement/index.js +34 -0
  694. package/output-es/Web.HTML.HTMLMediaElement/foreign.js +295 -0
  695. package/output-es/Web.HTML.HTMLMediaElement/index.js +103 -0
  696. package/output-es/Web.HTML.HTMLMediaElement.CanPlayType/index.js +52 -0
  697. package/output-es/Web.HTML.HTMLMediaElement.NetworkState/index.js +109 -0
  698. package/output-es/Web.HTML.HTMLMediaElement.ReadyState/index.js +124 -0
  699. package/output-es/Web.HTML.HTMLMetaElement/foreign.js +45 -0
  700. package/output-es/Web.HTML.HTMLMetaElement/index.js +34 -0
  701. package/output-es/Web.HTML.HTMLMeterElement/foreign.js +101 -0
  702. package/output-es/Web.HTML.HTMLMeterElement/index.js +34 -0
  703. package/output-es/Web.HTML.HTMLModElement/foreign.js +29 -0
  704. package/output-es/Web.HTML.HTMLModElement/index.js +34 -0
  705. package/output-es/Web.HTML.HTMLOListElement/foreign.js +45 -0
  706. package/output-es/Web.HTML.HTMLOListElement/index.js +34 -0
  707. package/output-es/Web.HTML.HTMLObjectElement/foreign.js +167 -0
  708. package/output-es/Web.HTML.HTMLObjectElement/index.js +74 -0
  709. package/output-es/Web.HTML.HTMLOptGroupElement/foreign.js +29 -0
  710. package/output-es/Web.HTML.HTMLOptGroupElement/index.js +34 -0
  711. package/output-es/Web.HTML.HTMLOptionElement/foreign.js +109 -0
  712. package/output-es/Web.HTML.HTMLOptionElement/index.js +44 -0
  713. package/output-es/Web.HTML.HTMLOutputElement/foreign.js +119 -0
  714. package/output-es/Web.HTML.HTMLOutputElement/index.js +60 -0
  715. package/output-es/Web.HTML.HTMLParagraphElement/index.js +32 -0
  716. package/output-es/Web.HTML.HTMLParamElement/foreign.js +29 -0
  717. package/output-es/Web.HTML.HTMLParamElement/index.js +34 -0
  718. package/output-es/Web.HTML.HTMLPreElement/index.js +32 -0
  719. package/output-es/Web.HTML.HTMLProgressElement/foreign.js +45 -0
  720. package/output-es/Web.HTML.HTMLProgressElement/index.js +34 -0
  721. package/output-es/Web.HTML.HTMLQuoteElement/foreign.js +13 -0
  722. package/output-es/Web.HTML.HTMLQuoteElement/index.js +34 -0
  723. package/output-es/Web.HTML.HTMLScriptElement/foreign.js +109 -0
  724. package/output-es/Web.HTML.HTMLScriptElement/index.js +34 -0
  725. package/output-es/Web.HTML.HTMLSelectElement/foreign.js +223 -0
  726. package/output-es/Web.HTML.HTMLSelectElement/index.js +73 -0
  727. package/output-es/Web.HTML.HTMLSourceElement/foreign.js +45 -0
  728. package/output-es/Web.HTML.HTMLSourceElement/index.js +34 -0
  729. package/output-es/Web.HTML.HTMLSpanElement/index.js +32 -0
  730. package/output-es/Web.HTML.HTMLStyleElement/foreign.js +29 -0
  731. package/output-es/Web.HTML.HTMLStyleElement/index.js +34 -0
  732. package/output-es/Web.HTML.HTMLTableCaptionElement/index.js +32 -0
  733. package/output-es/Web.HTML.HTMLTableCellElement/foreign.js +37 -0
  734. package/output-es/Web.HTML.HTMLTableCellElement/index.js +34 -0
  735. package/output-es/Web.HTML.HTMLTableColElement/foreign.js +13 -0
  736. package/output-es/Web.HTML.HTMLTableColElement/index.js +34 -0
  737. package/output-es/Web.HTML.HTMLTableDataCellElement/index.js +36 -0
  738. package/output-es/Web.HTML.HTMLTableElement/foreign.js +153 -0
  739. package/output-es/Web.HTML.HTMLTableElement/index.js +103 -0
  740. package/output-es/Web.HTML.HTMLTableHeaderCellElement/foreign.js +29 -0
  741. package/output-es/Web.HTML.HTMLTableHeaderCellElement/index.js +38 -0
  742. package/output-es/Web.HTML.HTMLTableRowElement/foreign.js +41 -0
  743. package/output-es/Web.HTML.HTMLTableRowElement/index.js +38 -0
  744. package/output-es/Web.HTML.HTMLTableSectionElement/foreign.js +25 -0
  745. package/output-es/Web.HTML.HTMLTableSectionElement/index.js +38 -0
  746. package/output-es/Web.HTML.HTMLTemplateElement/foreign.js +5 -0
  747. package/output-es/Web.HTML.HTMLTemplateElement/index.js +34 -0
  748. package/output-es/Web.HTML.HTMLTextAreaElement/foreign.js +403 -0
  749. package/output-es/Web.HTML.HTMLTextAreaElement/index.js +107 -0
  750. package/output-es/Web.HTML.HTMLTimeElement/foreign.js +13 -0
  751. package/output-es/Web.HTML.HTMLTimeElement/index.js +34 -0
  752. package/output-es/Web.HTML.HTMLTitleElement/foreign.js +13 -0
  753. package/output-es/Web.HTML.HTMLTitleElement/index.js +34 -0
  754. package/output-es/Web.HTML.HTMLTrackElement/foreign.js +84 -0
  755. package/output-es/Web.HTML.HTMLTrackElement/index.js +44 -0
  756. package/output-es/Web.HTML.HTMLTrackElement.ReadyState/index.js +109 -0
  757. package/output-es/Web.HTML.HTMLUListElement/index.js +32 -0
  758. package/output-es/Web.HTML.HTMLVideoElement/foreign.js +63 -0
  759. package/output-es/Web.HTML.HTMLVideoElement/index.js +38 -0
  760. package/output-es/Web.HTML.History/foreign.js +49 -0
  761. package/output-es/Web.HTML.History/index.js +16 -0
  762. package/output-es/Web.HTML.Location/foreign.js +169 -0
  763. package/output-es/Web.HTML.Location/index.js +25 -0
  764. package/output-es/Web.HTML.Navigator/foreign.js +29 -0
  765. package/output-es/Web.HTML.Navigator/index.js +3 -0
  766. package/output-es/Web.HTML.SelectionMode/index.js +62 -0
  767. package/output-es/Web.HTML.ValidityState/foreign.js +3 -0
  768. package/output-es/Web.HTML.ValidityState/index.js +15 -0
  769. package/output-es/Web.HTML.Window/foreign.js +239 -0
  770. package/output-es/Web.HTML.Window/index.js +86 -0
  771. package/output-es/Web.Internal.FFI/foreign.js +20 -0
  772. package/output-es/Web.Internal.FFI/index.js +5 -0
  773. package/output-es/Web.Storage.Event.StorageEvent/foreign.js +19 -0
  774. package/output-es/Web.Storage.Event.StorageEvent/index.js +13 -0
  775. package/output-es/Web.Storage.Storage/foreign.js +45 -0
  776. package/output-es/Web.Storage.Storage/index.js +52 -0
  777. package/output-es/Web.XHR.EventTypes/index.js +8 -0
  778. package/output-es/Web.XHR.FormData/foreign.js +32 -0
  779. package/output-es/Web.XHR.FormData/index.js +52 -0
  780. package/output-es/Web.XHR.ProgressEvent/foreign.js +11 -0
  781. package/output-es/Web.XHR.ProgressEvent/index.js +7 -0
  782. package/output-es/Web.XHR.ReadyState/index.js +99 -0
  783. package/output-es/Web.XHR.ResponseType/index.js +5 -0
  784. package/output-es/Web.XHR.XMLHttpRequest/foreign.js +41 -0
  785. package/output-es/Web.XHR.XMLHttpRequest/index.js +95 -0
  786. package/output-es/Web.XHR.XMLHttpRequestUpload/index.js +3 -0
  787. package/output-es/Website.Test.Article.EnergyScatter/index.js +12 -0
  788. package/output-es/Website.Test.Article.RenewablesLinked/index.js +14 -0
  789. package/output-es/package.json +1 -0
  790. package/output-es/runtime.js +33 -0
  791. package/package.json +3 -2
  792. package/script/install-website.sh +8 -1
@@ -0,0 +1,2003 @@
1
+ import * as $runtime from "../runtime.js";
2
+ import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
3
+ import * as Control$dMonad$dState$dTrans from "../Control.Monad.State.Trans/index.js";
4
+ import * as Data$dArray from "../Data.Array/index.js";
5
+ import * as Data$dCodePoint$dUnicode from "../Data.CodePoint.Unicode/index.js";
6
+ import * as Data$dEither from "../Data.Either/index.js";
7
+ import * as Data$dEnum from "../Data.Enum/index.js";
8
+ import * as Data$dFoldable from "../Data.Foldable/index.js";
9
+ import * as Data$dFunctor from "../Data.Functor/index.js";
10
+ import * as Data$dList$dTypes from "../Data.List.Types/index.js";
11
+ import * as Data$dShow from "../Data.Show/index.js";
12
+ import * as Data$dString$dCodeUnits from "../Data.String.CodeUnits/index.js";
13
+ import * as Data$dString$dCommon from "../Data.String.Common/index.js";
14
+ import * as Data$dTuple from "../Data.Tuple/index.js";
15
+ import * as Effect$dException from "../Effect.Exception/index.js";
16
+ import * as Parse$dNumber from "../Parse.Number/index.js";
17
+ import * as Parse$dParser from "../Parse.Parser/index.js";
18
+ import * as Parsing from "../Parsing/index.js";
19
+ import * as Parsing$dCombinators from "../Parsing.Combinators/index.js";
20
+ import * as Parsing$dExpr from "../Parsing.Expr/index.js";
21
+ import * as Parsing$dIndent from "../Parsing.Indent/index.js";
22
+ import * as Parsing$dString from "../Parsing.String/index.js";
23
+ import * as Primitive$dParse from "../Primitive.Parse/index.js";
24
+ import * as SExpr from "../SExpr/index.js";
25
+ import * as Util from "../Util/index.js";
26
+ const runParserT = /* #__PURE__ */ Parsing.runParserT(/* #__PURE__ */ Control$dMonad$dState$dTrans.monadRecStateT(Control$dMonad$dRec$dClass.monadRecIdentity));
27
+ const choice = /* #__PURE__ */ Parsing$dCombinators.choice(Data$dFoldable.foldableArray);
28
+ const topLevel = p => (state1, more, lift1, $$throw, done) => more(v2 => more(v1 => more(v2$1 => more(v1$1 => more(v2$2 => more(v1$2 => Parse$dParser.whitespace(
29
+ state1,
30
+ more,
31
+ lift1,
32
+ $$throw,
33
+ (state2, a) => more(v2$3 => more(v3 => {
34
+ const state2$p = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
35
+ return Parsing$dIndent.withPos(p)(
36
+ state2$p,
37
+ more,
38
+ lift1,
39
+ $$throw,
40
+ (state3, a$1) => more(v4 => {
41
+ const $0 = state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3;
42
+ return more(v2$4 => more(v3$1 => {
43
+ const state2$p$1 = state1._3 && !$0._3 ? Parsing.$ParseState($0._1, $0._2, true) : $0;
44
+ return Parse$dParser.whitespace(
45
+ state2$p$1,
46
+ more,
47
+ lift1,
48
+ $$throw,
49
+ (state3$1, a$2) => more(v4$1 => {
50
+ const $1 = state2$p$1._3 && !state3$1._3 ? Parsing.$ParseState(state3$1._1, state3$1._2, true) : state3$1;
51
+ return more(v2$5 => more(v3$2 => {
52
+ const state2$p$2 = state1._3 && !$1._3 ? Parsing.$ParseState($1._1, $1._2, true) : $1;
53
+ return Parsing$dString.eof(
54
+ state2$p$2,
55
+ more,
56
+ lift1,
57
+ $$throw,
58
+ (state3$2, a$3) => more(v4$2 => done(state2$p$2._3 && !state3$2._3 ? Parsing.$ParseState(state3$2._1, state3$2._2, true) : state3$2, a$1))
59
+ );
60
+ }));
61
+ })
62
+ );
63
+ }));
64
+ })
65
+ );
66
+ }))
67
+ )))))));
68
+ const parse = parser => input => {
69
+ const $0 = runParserT(input)(parser)(Parsing.initialPos)._1;
70
+ if ($0.tag === "Left") {
71
+ return Data$dEither.$Either("Left", "ParseError on line " + Data$dShow.showIntImpl($0._1._2.line) + ", column " + Data$dShow.showIntImpl($0._1._2.column) + ":\n" + $0._1._1);
72
+ }
73
+ if ($0.tag === "Right") { return Data$dEither.$Either("Right", $0._1); }
74
+ $runtime.fail();
75
+ };
76
+ const pConsOp = (state1, more, lift1, $$throw, done) => more(v1 => Parse$dParser.reservedOperator(":|")(
77
+ state1,
78
+ more,
79
+ lift1,
80
+ $$throw,
81
+ (state2, a) => more(v2 => done(
82
+ state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2,
83
+ e => e$p => SExpr.$Pattern("PConstr", ":", Data$dList$dTypes.$List("Cons", e, Data$dList$dTypes.$List("Cons", e$p, Data$dList$dTypes.Nil)))
84
+ ))
85
+ ));
86
+ const simplePattern$lazy = /* #__PURE__ */ $runtime.binding(() => {
87
+ const $0 = Parsing.lazyParserT.defer(v => (state1, more, lift1, $$throw, done) => more(v1 => Parse$dParser.braces(Parse$dParser.fields(Parse$dParser.variable)(pattern$lazy()))(
88
+ state1,
89
+ more,
90
+ lift1,
91
+ $$throw,
92
+ (state2, a) => more(v2 => done(state2, SExpr.$Pattern("PRecord", a)))
93
+ )));
94
+ const $1 = Parsing.lazyParserT.defer(v => (state1, more, lift1, $$throw, done) => more(v1 => Parse$dParser.brackets(Parse$dParser.trailingCommas(pattern$lazy()))(
95
+ state1,
96
+ more,
97
+ lift1,
98
+ $$throw,
99
+ (state2, a) => more(v2 => done(
100
+ state2,
101
+ (() => {
102
+ if (a.tag === "Nil") { return SExpr.PListEmpty; }
103
+ if (a.tag === "Cons") { return SExpr.$Pattern("PListNonEmpty", a._1, Data$dList$dTypes.foldableList.foldr(SExpr.PListNext)(SExpr.PListEnd)(a._2)); }
104
+ $runtime.fail();
105
+ })()
106
+ ))
107
+ )));
108
+ const $2 = Parse$dParser.delim(Parse$dParser.parseableChar)("(");
109
+ return (v2, $3, $4, $5, $6) => {
110
+ const $7 = v2._1;
111
+ const $8 = v2._2;
112
+ return $3(v3 => $3(v1 => Parse$dParser.variable(
113
+ Parsing.$ParseState($7, $8, false),
114
+ $3,
115
+ $4,
116
+ (v4, $9) => {
117
+ const $10 = v4._3;
118
+ return $3(v5 => {
119
+ if ($10) { return $5(v4, $9); }
120
+ const $11 = v2._1;
121
+ const $12 = v2._2;
122
+ return $3(v3$1 => {
123
+ const $13 = (v4$1, $13) => {
124
+ const $14 = v4$1._3;
125
+ return $3(v5$1 => {
126
+ if ($14) { return $5(v4$1, $13); }
127
+ const $15 = v2._1;
128
+ const $16 = v2._2;
129
+ return $3(v3$2 => $0(
130
+ Parsing.$ParseState($15, $16, false),
131
+ $3,
132
+ $4,
133
+ (v4$2, $17) => {
134
+ const $18 = v4$2._3;
135
+ return $3(v5$2 => {
136
+ if ($18) { return $5(v4$2, $17); }
137
+ const $19 = v2._1;
138
+ const $20 = v2._2;
139
+ return $3(v3$3 => $1(
140
+ Parsing.$ParseState($19, $20, false),
141
+ $3,
142
+ $4,
143
+ (v4$3, $21) => {
144
+ const $22 = v4$3._3;
145
+ return $3(v5$3 => {
146
+ if ($22) { return $5(v4$3, $21); }
147
+ return $3(v1$1 => $2(
148
+ v2,
149
+ $3,
150
+ $4,
151
+ $5,
152
+ (state2, a) => $3(v2$1 => {
153
+ const $23 = v2._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
154
+ return $3(v1$2 => pattern$lazy()(
155
+ $23,
156
+ $3,
157
+ $4,
158
+ $5,
159
+ (state2$1, a$1) => $3(v2$2 => choice([
160
+ (() => {
161
+ const $24 = Parse$dParser.delim(Parse$dParser.parseableChar)(")");
162
+ return (state1, more, lift1, $$throw, done) => more(v1$3 => $24(
163
+ state1,
164
+ more,
165
+ lift1,
166
+ $$throw,
167
+ (state2$2, a$2) => more(v2$3 => done(state1._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2, a$1))
168
+ ));
169
+ })(),
170
+ (() => {
171
+ const $24 = Parse$dParser.delim(Parse$dParser.parseableChar)(",");
172
+ return (state1, more, lift1, $$throw, done) => more(v1$3 => $24(
173
+ state1,
174
+ more,
175
+ lift1,
176
+ $$throw,
177
+ (state2$2, a$2) => more(v2$3 => {
178
+ const $25 = state1._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
179
+ return more(v1$4 => pattern$lazy()(
180
+ $25,
181
+ more,
182
+ lift1,
183
+ $$throw,
184
+ (state2$3, a$3) => more(v2$4 => {
185
+ const $26 = Parse$dParser.delim(Parse$dParser.parseableChar)(")");
186
+ const $27 = $25._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
187
+ return more(v1$5 => $26(
188
+ $27,
189
+ more,
190
+ lift1,
191
+ $$throw,
192
+ (state2$4, a$4) => more(v2$5 => done(
193
+ $27._3 && !state2$4._3 ? Parsing.$ParseState(state2$4._1, state2$4._2, true) : state2$4,
194
+ SExpr.$Pattern(
195
+ "PConstr",
196
+ "Pair",
197
+ Data$dList$dTypes.$List("Cons", a$1, Data$dList$dTypes.$List("Cons", a$3, Data$dList$dTypes.Nil))
198
+ )
199
+ ))
200
+ ));
201
+ })
202
+ ));
203
+ })
204
+ ));
205
+ })()
206
+ ])($23._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1, $3, $4, $5, $6))
207
+ ));
208
+ })
209
+ ));
210
+ });
211
+ },
212
+ $6
213
+ ));
214
+ });
215
+ },
216
+ $6
217
+ ));
218
+ });
219
+ };
220
+ return $3(v1$1 => Parse$dParser.constructor(
221
+ Parsing.$ParseState($11, $12, false),
222
+ $3,
223
+ $4,
224
+ $13,
225
+ (state2, a) => $3(v2$1 => $3(v1$2 => {
226
+ const $14 = (state2$1, a$1) => $3(v2$2 => $6(
227
+ state2._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1,
228
+ SExpr.$Pattern("PConstr", a, a$1)
229
+ ));
230
+ const $15 = state2._1;
231
+ const $16 = state2._2;
232
+ return $3(v3$2 => Parse$dParser.parens(Parse$dParser.commas(simplePattern$lazy()))(
233
+ Parsing.$ParseState($15, $16, false),
234
+ $3,
235
+ $4,
236
+ (v4$1, $17) => {
237
+ const $18 = v4$1._3;
238
+ return $3(v5$1 => {
239
+ if ($18) { return $13(v4$1, $17); }
240
+ return $14(state2, Data$dList$dTypes.Nil);
241
+ });
242
+ },
243
+ $14
244
+ ));
245
+ }))
246
+ ));
247
+ });
248
+ });
249
+ },
250
+ (state2, a) => $3(v2$1 => $6(state2, SExpr.$Pattern("PVar", a)))
251
+ )));
252
+ };
253
+ });
254
+ const pattern$lazy = /* #__PURE__ */ $runtime.binding(() => Parsing.lazyParserT.defer(v => Data$dFoldable.foldlArray(Parsing$dExpr.makeParser)(simplePattern$lazy())([
255
+ [Parsing$dExpr.$Operator("Infix", pConsOp, Parsing$dExpr.AssocRight)]
256
+ ])));
257
+ const simplePattern = /* #__PURE__ */ simplePattern$lazy();
258
+ const pattern = /* #__PURE__ */ pattern$lazy();
259
+ const imports_ = /* #__PURE__ */ Parsing$dCombinators.manyRec(/* #__PURE__ */ (() => {
260
+ const $0 = Parse$dParser.reserved("import");
261
+ const $1 = Data$dString$dCommon.joinWith("/");
262
+ const $2 = Parsing$dCombinators.sepBy1(Parse$dParser.variable)(Parse$dParser.delim(Parse$dParser.parseableChar)("."));
263
+ return (state1, more, lift1, $$throw, done) => more(v2 => more(v1 => more(v2$1 => more(v1$1 => $0(
264
+ state1,
265
+ more,
266
+ lift1,
267
+ $$throw,
268
+ (state2, a) => more(v2$2 => more(v3 => {
269
+ const state2$p = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
270
+ return more(v1$2 => $2(
271
+ state2$p,
272
+ more,
273
+ lift1,
274
+ $$throw,
275
+ (state2$1, a$1) => more(v2$3 => {
276
+ const $3 = $1(Data$dArray.fromFoldableImpl(Data$dList$dTypes.foldableNonEmptyList.foldr, a$1));
277
+ return more(v4 => {
278
+ const $4 = state2$p._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
279
+ return more(v2$4 => more(v3$1 => {
280
+ const state2$p$1 = state1._3 && !$4._3 ? Parsing.$ParseState($4._1, $4._2, true) : $4;
281
+ return Parse$dParser.whitespace(
282
+ state2$p$1,
283
+ more,
284
+ lift1,
285
+ $$throw,
286
+ (state3, a$2) => more(v4$1 => done(state2$p$1._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3, $3))
287
+ );
288
+ }));
289
+ });
290
+ })
291
+ ));
292
+ }))
293
+ )))));
294
+ })());
295
+ const withImports = p => topLevel((state1, more, lift1, $$throw, done) => more(v1 => imports_(
296
+ state1,
297
+ more,
298
+ lift1,
299
+ $$throw,
300
+ (state2, a) => more(v2 => {
301
+ const $0 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
302
+ return more(v1$1 => p(
303
+ $0,
304
+ more,
305
+ lift1,
306
+ $$throw,
307
+ (state2$1, a$1) => more(v2$1 => done($0._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1, Data$dTuple.$Tuple(a$1, a)))
308
+ ));
309
+ })
310
+ )));
311
+ const varDefs$lazy = /* #__PURE__ */ $runtime.binding(() => Parsing$dCombinators.many1((() => {
312
+ const $0 = Parse$dParser.reserved("def");
313
+ const $1 = Parse$dParser.delim(Parse$dParser.parseableChar)(":");
314
+ return (state1, more, lift1, $$throw, done) => more(v1 => {
315
+ const $2 = state1._3;
316
+ return more(v2 => more(v1$1 => more(v2$1 => more(v1$2 => $0(
317
+ state1,
318
+ more,
319
+ lift1,
320
+ (v2$2, $3) => $$throw(Parsing.$ParseState(v2$2._1, v2$2._2, $2), $3),
321
+ (state2, a) => more(v2$2 => more(v3 => {
322
+ const state2$p = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
323
+ return pattern(
324
+ state2$p,
325
+ more,
326
+ lift1,
327
+ (v2$3, $3) => $$throw(Parsing.$ParseState(v2$3._1, v2$3._2, $2), $3),
328
+ (state3, a$1) => more(v4 => {
329
+ const $3 = state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3;
330
+ return more(v2$3 => more(v3$1 => {
331
+ const state2$p$1 = state1._3 && !$3._3 ? Parsing.$ParseState($3._1, $3._2, true) : $3;
332
+ return $1(
333
+ state2$p$1,
334
+ more,
335
+ lift1,
336
+ (v2$4, $4) => $$throw(Parsing.$ParseState(v2$4._1, v2$4._2, $2), $4),
337
+ (state3$1, a$2) => more(v4$1 => {
338
+ const $4 = state2$p$1._3 && !state3$1._3 ? Parsing.$ParseState(state3$1._1, state3$1._2, true) : state3$1;
339
+ return more(v2$4 => {
340
+ const $5 = state1._3 && !$4._3 ? Parsing.$ParseState($4._1, $4._2, true) : $4;
341
+ return more(v1$3 => more(v2$5 => more(v1$4 => Parsing$dIndent.sameOrIndented(
342
+ $5,
343
+ more,
344
+ lift1,
345
+ $$throw,
346
+ (state2$1, a$3) => more(v2$6 => more(v3$2 => {
347
+ const state2$p$2 = $5._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
348
+ return Parsing$dIndent.withPos(expr$lazy())(
349
+ state2$p$2,
350
+ more,
351
+ lift1,
352
+ $$throw,
353
+ (state3$2, a$4) => more(v4$2 => {
354
+ const $6 = state2$p$2._3 && !state3$2._3 ? Parsing.$ParseState(state3$2._1, state3$2._2, true) : state3$2;
355
+ return more(v2$7 => done($5._3 && !$6._3 ? Parsing.$ParseState($6._1, $6._2, true) : $6, SExpr.$VarDef(a$1, a$4)));
356
+ })
357
+ );
358
+ }))
359
+ ))));
360
+ });
361
+ })
362
+ );
363
+ }));
364
+ })
365
+ );
366
+ }))
367
+ )))));
368
+ });
369
+ })()));
370
+ const recDefs$lazy = /* #__PURE__ */ $runtime.binding(() => Parsing$dCombinators.many1((() => {
371
+ const $0 = Parse$dParser.reserved("def");
372
+ const $1 = Parse$dParser.delim(Parse$dParser.parseableChar)("(");
373
+ return (state1, more, lift1, $$throw, done) => more(v1 => {
374
+ const $2 = state1._3;
375
+ return more(v2 => more(v1$1 => more(v2$1 => more(v1$2 => $0(
376
+ state1,
377
+ more,
378
+ lift1,
379
+ (v2$2, $3) => $$throw(Parsing.$ParseState(v2$2._1, v2$2._2, $2), $3),
380
+ (state2, a) => more(v2$2 => more(v3 => {
381
+ const state2$p = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
382
+ return Parse$dParser.variable(
383
+ state2$p,
384
+ more,
385
+ lift1,
386
+ (v2$3, $3) => $$throw(Parsing.$ParseState(v2$3._1, v2$3._2, $2), $3),
387
+ (state3, a$1) => more(v4 => {
388
+ const $3 = state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3;
389
+ return more(v2$3 => more(v3$1 => {
390
+ const state2$p$1 = state1._3 && !$3._3 ? Parsing.$ParseState($3._1, $3._2, true) : $3;
391
+ return $1(
392
+ state2$p$1,
393
+ more,
394
+ lift1,
395
+ (v2$4, $4) => $$throw(Parsing.$ParseState(v2$4._1, v2$4._2, $2), $4),
396
+ (state3$1, a$2) => more(v4$1 => {
397
+ const $4 = state2$p$1._3 && !state3$1._3 ? Parsing.$ParseState(state3$1._1, state3$1._2, true) : state3$1;
398
+ return more(v2$4 => {
399
+ const $5 = state1._3 && !$4._3 ? Parsing.$ParseState($4._1, $4._2, true) : $4;
400
+ return more(v1$3 => Parse$dParser.commas1(pattern)(
401
+ $5,
402
+ more,
403
+ lift1,
404
+ $$throw,
405
+ (state2$1, a$3) => more(v2$5 => {
406
+ const $6 = Parse$dParser.delim(Parse$dParser.parseableChar)(")");
407
+ const $7 = $5._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
408
+ return more(v1$4 => $6(
409
+ $7,
410
+ more,
411
+ lift1,
412
+ $$throw,
413
+ (state2$2, a$4) => more(v2$6 => {
414
+ const $8 = Parse$dParser.block(expr$lazy());
415
+ const $9 = $7._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
416
+ return more(v1$5 => $8(
417
+ $9,
418
+ more,
419
+ lift1,
420
+ $$throw,
421
+ (state2$3, a$5) => more(v2$7 => done(
422
+ $9._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3,
423
+ Data$dTuple.$Tuple(a$1, Data$dTuple.$Tuple(a$3, a$5))
424
+ ))
425
+ ));
426
+ })
427
+ ));
428
+ })
429
+ ));
430
+ });
431
+ })
432
+ );
433
+ }));
434
+ })
435
+ );
436
+ }))
437
+ )))));
438
+ });
439
+ })()));
440
+ const expr$lazy = /* #__PURE__ */ $runtime.binding(() => {
441
+ const opTree$lazy = $runtime.binding(() => {
442
+ const $0 = Parse$dParser.context("opTree")((() => {
443
+ const chain = e => {
444
+ const $0 = Parse$dParser.delim(Parse$dParser.parseableChar)(".");
445
+ const $1 = Parse$dParser.delim(Parse$dParser.parseableChar)("[");
446
+ const $2 = Parse$dParser.delim(Parse$dParser.parseableChar)("(");
447
+ return (v2, $3, $4, $5, $6) => {
448
+ const $7 = v2._1;
449
+ const $8 = v2._2;
450
+ return $3(v3 => {
451
+ const $9 = (v4, $9) => {
452
+ const $10 = v4._3;
453
+ return $3(v5 => {
454
+ if ($10) { return $5(v4, $9); }
455
+ return $6(v2, e);
456
+ });
457
+ };
458
+ return $3(v2$1 => $3(v1 => Parsing$dIndent.sameOrIndented(
459
+ Parsing.$ParseState($7, $8, false),
460
+ $3,
461
+ $4,
462
+ $9,
463
+ (state2, a) => $3(v2$2 => $3(v3$1 => {
464
+ const $10 = (state3, a$1) => $3(v4 => $6(state2._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3, a$1));
465
+ const $11 = state2._1;
466
+ const $12 = state2._2;
467
+ return $3(v3$2 => {
468
+ const $13 = (v4, $13) => {
469
+ const $14 = v4._3;
470
+ return $3(v5 => {
471
+ if ($14) { return $9(v4, $13); }
472
+ const $15 = state2._1;
473
+ const $16 = state2._2;
474
+ return $3(v3$3 => {
475
+ const $17 = (v4$1, $17) => {
476
+ const $18 = v4$1._3;
477
+ return $3(v5$1 => {
478
+ if ($18) { return $9(v4$1, $17); }
479
+ return $3(v1$1 => $2(
480
+ state2,
481
+ $3,
482
+ $4,
483
+ $9,
484
+ (state2$1, a$1) => $3(v2$3 => {
485
+ const $19 = state2._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
486
+ return $3(v1$2 => Parse$dParser.commas(opTree$lazy())(
487
+ $19,
488
+ $3,
489
+ $4,
490
+ $9,
491
+ (state2$2, a$2) => $3(v2$4 => {
492
+ const $20 = Parse$dParser.close(Parse$dParser.parseableChar)(")");
493
+ const $21 = $19._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
494
+ return $3(v1$3 => $20(
495
+ $21,
496
+ $3,
497
+ $4,
498
+ $9,
499
+ (state2$3, a$3) => $3(v2$5 => (e.tag === "Constr"
500
+ ? chain(SExpr.$Expr(
501
+ "Constr",
502
+ e._1,
503
+ e._2,
504
+ Data$dList$dTypes.foldableList.foldr(Data$dList$dTypes.Cons)(Data$dList$dTypes.foldableList.foldr(Data$dList$dTypes.Cons)(Data$dList$dTypes.Nil)(a$2))(e._3)
505
+ ))
506
+ : chain((() => {
507
+ const go = go$a0$copy => go$a1$copy => {
508
+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
509
+ while (go$c) {
510
+ const b = go$a0, v = go$a1;
511
+ if (v.tag === "Nil") {
512
+ go$c = false;
513
+ go$r = b;
514
+ continue;
515
+ }
516
+ if (v.tag === "Cons") {
517
+ go$a0 = SExpr.$Expr("App", b, v._1);
518
+ go$a1 = v._2;
519
+ continue;
520
+ }
521
+ $runtime.fail();
522
+ }
523
+ return go$r;
524
+ };
525
+ return go(e)(a$2);
526
+ })()))($21._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3, $3, $4, $9, $10))
527
+ ));
528
+ })
529
+ ));
530
+ })
531
+ ));
532
+ });
533
+ };
534
+ return $3(v1$1 => $1(
535
+ Parsing.$ParseState($15, $16, false),
536
+ $3,
537
+ $4,
538
+ $17,
539
+ (state2$1, a$1) => $3(v2$3 => $3(v1$2 => opTree$lazy()(
540
+ state2$1,
541
+ $3,
542
+ $4,
543
+ $17,
544
+ (state2$2, a$2) => $3(v2$4 => {
545
+ const $18 = Parse$dParser.close(Parse$dParser.parseableChar)("]");
546
+ const $19 = state2$1._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
547
+ return $3(v1$3 => $18(
548
+ $19,
549
+ $3,
550
+ $4,
551
+ $17,
552
+ (state2$3, a$3) => $3(v2$5 => chain(SExpr.$Expr("DProject", e, a$2))(
553
+ $19._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3,
554
+ $3,
555
+ $4,
556
+ $17,
557
+ $10
558
+ ))
559
+ ));
560
+ })
561
+ )))
562
+ ));
563
+ });
564
+ });
565
+ };
566
+ return $3(v1$1 => $3(v1$2 => $0(
567
+ Parsing.$ParseState($11, $12, false),
568
+ $3,
569
+ $4,
570
+ (v2$3, $14) => $13(Parsing.$ParseState(v2$3._1, v2$3._2, false), $14),
571
+ (state2$1, a$1) => $3(v2$3 => Parse$dParser.variable(
572
+ state2$1,
573
+ $3,
574
+ $4,
575
+ (v2$4, $14) => $13(Parsing.$ParseState(v2$4._1, v2$4._2, false), $14),
576
+ (state2$2, a$2) => $3(v2$4 => chain(SExpr.$Expr("Project", e, a$2))(state2$2, $3, $4, $13, $10))
577
+ ))
578
+ )));
579
+ });
580
+ }))
581
+ )));
582
+ });
583
+ };
584
+ };
585
+ return Data$dFoldable.foldlArray(Parsing$dExpr.makeParser)(Parsing$dIndent.withPos((() => {
586
+ const $0 = Parse$dParser.context("simple")((() => {
587
+ const $0 = Parse$dParser.context("letExpr")((() => {
588
+ const $0 = Parsing$dCombinators.many1((() => {
589
+ const $0 = Parse$dParser.reserved("def");
590
+ const $1 = Parse$dParser.delim(Parse$dParser.parseableChar)(":");
591
+ return (state1, more, lift1, $$throw, done) => more(v1 => {
592
+ const $2 = state1._3;
593
+ return more(v2 => more(v1$1 => more(v2$1 => more(v1$2 => $0(
594
+ state1,
595
+ more,
596
+ lift1,
597
+ (v2$2, $3) => $$throw(Parsing.$ParseState(v2$2._1, v2$2._2, $2), $3),
598
+ (state2, a) => more(v2$2 => more(v3 => {
599
+ const state2$p = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
600
+ return pattern(
601
+ state2$p,
602
+ more,
603
+ lift1,
604
+ (v2$3, $3) => $$throw(Parsing.$ParseState(v2$3._1, v2$3._2, $2), $3),
605
+ (state3, a$1) => more(v4 => {
606
+ const $3 = state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3;
607
+ return more(v2$3 => more(v3$1 => {
608
+ const state2$p$1 = state1._3 && !$3._3 ? Parsing.$ParseState($3._1, $3._2, true) : $3;
609
+ return $1(
610
+ state2$p$1,
611
+ more,
612
+ lift1,
613
+ (v2$4, $4) => $$throw(Parsing.$ParseState(v2$4._1, v2$4._2, $2), $4),
614
+ (state3$1, a$2) => more(v4$1 => {
615
+ const $4 = state2$p$1._3 && !state3$1._3 ? Parsing.$ParseState(state3$1._1, state3$1._2, true) : state3$1;
616
+ return more(v2$4 => {
617
+ const $5 = state1._3 && !$4._3 ? Parsing.$ParseState($4._1, $4._2, true) : $4;
618
+ return more(v1$3 => opTree$lazy()(
619
+ $5,
620
+ more,
621
+ lift1,
622
+ $$throw,
623
+ (state2$1, a$3) => more(v2$5 => {
624
+ const $6 = Parse$dParser.delim(Parse$dParser.parseableChar)(";");
625
+ const $7 = $5._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
626
+ return more(v1$4 => $6(
627
+ $7,
628
+ more,
629
+ lift1,
630
+ $$throw,
631
+ (state2$2, a$4) => more(v2$6 => done(
632
+ $7._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2,
633
+ SExpr.$VarDef(a$1, a$3)
634
+ ))
635
+ ));
636
+ })
637
+ ));
638
+ });
639
+ })
640
+ );
641
+ }));
642
+ })
643
+ );
644
+ }))
645
+ )))));
646
+ });
647
+ })());
648
+ return (state1, more, lift1, $$throw, done) => more(v1 => $0(
649
+ state1,
650
+ more,
651
+ lift1,
652
+ $$throw,
653
+ (state2, a) => more(v2 => {
654
+ const $1 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
655
+ return more(v1$1 => opTree$lazy()(
656
+ $1,
657
+ more,
658
+ lift1,
659
+ $$throw,
660
+ (state2$1, a$1) => more(v2$1 => done($1._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1, SExpr.$Expr("Let", a, a$1)))
661
+ ));
662
+ })
663
+ ));
664
+ })());
665
+ const $1 = Parse$dParser.context("letRecExpr")((() => {
666
+ const $1 = Parsing$dCombinators.many1((() => {
667
+ const $1 = Parse$dParser.reserved("def");
668
+ const $2 = Parse$dParser.delim(Parse$dParser.parseableChar)("(");
669
+ return (state1, more, lift1, $$throw, done) => more(v1 => {
670
+ const $3 = state1._3;
671
+ return more(v2 => more(v1$1 => more(v2$1 => more(v1$2 => $1(
672
+ state1,
673
+ more,
674
+ lift1,
675
+ (v2$2, $4) => $$throw(Parsing.$ParseState(v2$2._1, v2$2._2, $3), $4),
676
+ (state2, a) => more(v2$2 => more(v3 => {
677
+ const state2$p = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
678
+ return Parse$dParser.variable(
679
+ state2$p,
680
+ more,
681
+ lift1,
682
+ (v2$3, $4) => $$throw(Parsing.$ParseState(v2$3._1, v2$3._2, $3), $4),
683
+ (state3, a$1) => more(v4 => {
684
+ const $4 = state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3;
685
+ return more(v2$3 => more(v3$1 => {
686
+ const state2$p$1 = state1._3 && !$4._3 ? Parsing.$ParseState($4._1, $4._2, true) : $4;
687
+ return $2(
688
+ state2$p$1,
689
+ more,
690
+ lift1,
691
+ (v2$4, $5) => $$throw(Parsing.$ParseState(v2$4._1, v2$4._2, $3), $5),
692
+ (state3$1, a$2) => more(v4$1 => {
693
+ const $5 = state2$p$1._3 && !state3$1._3 ? Parsing.$ParseState(state3$1._1, state3$1._2, true) : state3$1;
694
+ return more(v2$4 => {
695
+ const $6 = state1._3 && !$5._3 ? Parsing.$ParseState($5._1, $5._2, true) : $5;
696
+ return more(v1$3 => Parse$dParser.commas1(pattern)(
697
+ $6,
698
+ more,
699
+ lift1,
700
+ $$throw,
701
+ (state2$1, a$3) => more(v2$5 => {
702
+ const $7 = Parse$dParser.delim(Parse$dParser.parseableChar)(")");
703
+ const $8 = $6._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
704
+ return more(v1$4 => $7(
705
+ $8,
706
+ more,
707
+ lift1,
708
+ $$throw,
709
+ (state2$2, a$4) => more(v2$6 => {
710
+ const $9 = Parse$dParser.delim(Parse$dParser.parseableChar)(":");
711
+ const $10 = $8._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
712
+ return more(v1$5 => $9(
713
+ $10,
714
+ more,
715
+ lift1,
716
+ $$throw,
717
+ (state2$3, a$5) => more(v2$7 => {
718
+ const $11 = $10._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
719
+ return more(v1$6 => opTree$lazy()(
720
+ $11,
721
+ more,
722
+ lift1,
723
+ $$throw,
724
+ (state2$4, a$6) => more(v2$8 => {
725
+ const $12 = Parse$dParser.delim(Parse$dParser.parseableChar)(";");
726
+ const $13 = $11._3 && !state2$4._3 ? Parsing.$ParseState(state2$4._1, state2$4._2, true) : state2$4;
727
+ return more(v1$7 => $12(
728
+ $13,
729
+ more,
730
+ lift1,
731
+ $$throw,
732
+ (state2$5, a$7) => more(v2$9 => done(
733
+ $13._3 && !state2$5._3 ? Parsing.$ParseState(state2$5._1, state2$5._2, true) : state2$5,
734
+ Data$dTuple.$Tuple(a$1, Data$dTuple.$Tuple(a$3, a$6))
735
+ ))
736
+ ));
737
+ })
738
+ ));
739
+ })
740
+ ));
741
+ })
742
+ ));
743
+ })
744
+ ));
745
+ });
746
+ })
747
+ );
748
+ }));
749
+ })
750
+ );
751
+ }))
752
+ )))));
753
+ });
754
+ })());
755
+ return (state1, more, lift1, $$throw, done) => more(v1 => $1(
756
+ state1,
757
+ more,
758
+ lift1,
759
+ $$throw,
760
+ (state2, a) => more(v2 => {
761
+ const $2 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
762
+ return more(v1$1 => opTree$lazy()(
763
+ $2,
764
+ more,
765
+ lift1,
766
+ $$throw,
767
+ (state2$1, a$1) => more(v2$1 => done($2._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1, SExpr.$Expr("LetRec", a, a$1)))
768
+ ));
769
+ })
770
+ ));
771
+ })());
772
+ const $2 = Parse$dParser.context("matrix")((() => {
773
+ const $2 = Parse$dParser.delim(Parse$dParser.parseableString)("[|");
774
+ return (state1, more, lift1, $$throw, done) => more(v1 => $2(
775
+ state1,
776
+ more,
777
+ lift1,
778
+ $$throw,
779
+ (state2, a) => more(v2 => {
780
+ const $3 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
781
+ return more(v1$1 => opTree$lazy()(
782
+ $3,
783
+ more,
784
+ lift1,
785
+ $$throw,
786
+ (state2$1, a$1) => more(v2$1 => {
787
+ const $4 = Parse$dParser.reserved("for");
788
+ const $5 = $3._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
789
+ return more(v1$2 => $4(
790
+ $5,
791
+ more,
792
+ lift1,
793
+ $$throw,
794
+ (state2$2, a$2) => more(v2$2 => {
795
+ const $6 = Parse$dParser.delim(Parse$dParser.parseableChar)("(");
796
+ const $7 = $5._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
797
+ return more(v1$3 => $6(
798
+ $7,
799
+ more,
800
+ lift1,
801
+ $$throw,
802
+ (state2$3, a$3) => more(v2$3 => {
803
+ const $8 = $7._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
804
+ return more(v1$4 => Parse$dParser.variable(
805
+ $8,
806
+ more,
807
+ lift1,
808
+ $$throw,
809
+ (state2$4, a$4) => more(v2$4 => {
810
+ const $9 = Parse$dParser.delim(Parse$dParser.parseableChar)(",");
811
+ const $10 = $8._3 && !state2$4._3 ? Parsing.$ParseState(state2$4._1, state2$4._2, true) : state2$4;
812
+ return more(v1$5 => $9(
813
+ $10,
814
+ more,
815
+ lift1,
816
+ $$throw,
817
+ (state2$5, a$5) => more(v2$5 => {
818
+ const $11 = $10._3 && !state2$5._3 ? Parsing.$ParseState(state2$5._1, state2$5._2, true) : state2$5;
819
+ return more(v1$6 => Parse$dParser.variable(
820
+ $11,
821
+ more,
822
+ lift1,
823
+ $$throw,
824
+ (state2$6, a$6) => more(v2$6 => {
825
+ const $12 = Parse$dParser.delim(Parse$dParser.parseableChar)(")");
826
+ const $13 = $11._3 && !state2$6._3 ? Parsing.$ParseState(state2$6._1, state2$6._2, true) : state2$6;
827
+ return more(v1$7 => $12(
828
+ $13,
829
+ more,
830
+ lift1,
831
+ $$throw,
832
+ (state2$7, a$7) => more(v2$7 => {
833
+ const $14 = Parse$dParser.reserved("in");
834
+ const $15 = $13._3 && !state2$7._3 ? Parsing.$ParseState(state2$7._1, state2$7._2, true) : state2$7;
835
+ return more(v1$8 => $14(
836
+ $15,
837
+ more,
838
+ lift1,
839
+ $$throw,
840
+ (state2$8, a$8) => more(v2$8 => {
841
+ const $16 = $15._3 && !state2$8._3 ? Parsing.$ParseState(state2$8._1, state2$8._2, true) : state2$8;
842
+ return more(v1$9 => opTree$lazy()(
843
+ $16,
844
+ more,
845
+ lift1,
846
+ $$throw,
847
+ (state2$9, a$9) => more(v2$9 => {
848
+ const $17 = Parse$dParser.delim(Parse$dParser.parseableString)("|]");
849
+ const $18 = $16._3 && !state2$9._3 ? Parsing.$ParseState(state2$9._1, state2$9._2, true) : state2$9;
850
+ return more(v1$10 => $17(
851
+ $18,
852
+ more,
853
+ lift1,
854
+ $$throw,
855
+ (state2$10, a$10) => more(v2$10 => done(
856
+ $18._3 && !state2$10._3 ? Parsing.$ParseState(state2$10._1, state2$10._2, true) : state2$10,
857
+ SExpr.$Expr("Matrix", undefined, a$1, Data$dTuple.$Tuple(a$4, a$6), a$9)
858
+ ))
859
+ ));
860
+ })
861
+ ));
862
+ })
863
+ ));
864
+ })
865
+ ));
866
+ })
867
+ ));
868
+ })
869
+ ));
870
+ })
871
+ ));
872
+ })
873
+ ));
874
+ })
875
+ ));
876
+ })
877
+ ));
878
+ })
879
+ ));
880
+ })());
881
+ const $3 = Parse$dParser.context("brackets")((() => {
882
+ const $3 = Parse$dParser.delim(Parse$dParser.parseableChar)("[");
883
+ return (state1, more, lift1, $$throw, done) => more(v1 => $3(
884
+ state1,
885
+ more,
886
+ lift1,
887
+ $$throw,
888
+ (state2, a) => more(v2 => choice([
889
+ (() => {
890
+ const $4 = Parse$dParser.close(Parse$dParser.parseableChar)("]");
891
+ return (state1$1, more$1, lift1$1, throw$1, done$1) => more$1(v1$1 => $4(
892
+ state1$1,
893
+ more$1,
894
+ lift1$1,
895
+ throw$1,
896
+ (state2$1, a$1) => more$1(v2$1 => done$1(
897
+ state1$1._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1,
898
+ SExpr.$Expr("ListEmpty", undefined)
899
+ ))
900
+ ));
901
+ })(),
902
+ (state1$1, more$1, lift1$1, throw$1, done$1) => more$1(v1$1 => opTree$lazy()(
903
+ state1$1,
904
+ more$1,
905
+ lift1$1,
906
+ throw$1,
907
+ (state2$1, a$1) => more$1(v2$1 => choice([
908
+ Parse$dParser.context("listNonEmpty")((() => {
909
+ const $4 = Parse$dParser.delim(Parse$dParser.parseableChar)(",");
910
+ return (state1$2, more$2, lift1$2, throw$2, done$2) => more$2(v1$2 => $4(
911
+ state1$2,
912
+ more$2,
913
+ lift1$2,
914
+ throw$2,
915
+ (state2$2, a$2) => more$2(v2$2 => {
916
+ const $5 = state1$2._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
917
+ return more$2(v1$3 => Parse$dParser.trailingCommas(opTree$lazy())(
918
+ $5,
919
+ more$2,
920
+ lift1$2,
921
+ throw$2,
922
+ (state2$3, a$3) => more$2(v2$3 => {
923
+ const $6 = Parse$dParser.close(Parse$dParser.parseableChar)("]");
924
+ const $7 = $5._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
925
+ return more$2(v1$4 => $6(
926
+ $7,
927
+ more$2,
928
+ lift1$2,
929
+ throw$2,
930
+ (state2$4, a$4) => more$2(v2$4 => done$2(
931
+ $7._3 && !state2$4._3 ? Parsing.$ParseState(state2$4._1, state2$4._2, true) : state2$4,
932
+ SExpr.$Expr("ListNonEmpty", undefined, a$1, Data$dList$dTypes.foldableList.foldr(SExpr.Next())(SExpr.$ListRest("End", undefined))(a$3))
933
+ ))
934
+ ));
935
+ })
936
+ ));
937
+ })
938
+ ));
939
+ })()),
940
+ (() => {
941
+ const $4 = Parse$dParser.close(Parse$dParser.parseableChar)("]");
942
+ return (state1$2, more$2, lift1$2, throw$2, done$2) => more$2(v1$2 => $4(
943
+ state1$2,
944
+ more$2,
945
+ lift1$2,
946
+ throw$2,
947
+ (state2$2, a$2) => more$2(v2$2 => done$2(
948
+ state1$2._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2,
949
+ SExpr.$Expr("ListNonEmpty", undefined, a$1, SExpr.$ListRest("End", undefined))
950
+ ))
951
+ ));
952
+ })(),
953
+ Parse$dParser.context("listEnum")((() => {
954
+ const $4 = Parse$dParser.delim(Parse$dParser.parseableString)("..");
955
+ return (state1$2, more$2, lift1$2, throw$2, done$2) => more$2(v1$2 => $4(
956
+ state1$2,
957
+ more$2,
958
+ lift1$2,
959
+ throw$2,
960
+ (state2$2, a$2) => more$2(v2$2 => {
961
+ const $5 = state1$2._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
962
+ return more$2(v1$3 => opTree$lazy()(
963
+ $5,
964
+ more$2,
965
+ lift1$2,
966
+ throw$2,
967
+ (state2$3, a$3) => more$2(v2$3 => {
968
+ const $6 = Parse$dParser.close(Parse$dParser.parseableChar)("]");
969
+ const $7 = $5._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
970
+ return more$2(v1$4 => $6(
971
+ $7,
972
+ more$2,
973
+ lift1$2,
974
+ throw$2,
975
+ (state2$4, a$4) => more$2(v2$4 => done$2(
976
+ $7._3 && !state2$4._3 ? Parsing.$ParseState(state2$4._1, state2$4._2, true) : state2$4,
977
+ SExpr.$Expr("ListEnum", a$1, a$3)
978
+ ))
979
+ ));
980
+ })
981
+ ));
982
+ })
983
+ ));
984
+ })()),
985
+ Parse$dParser.context("listComp")((() => {
986
+ const $4 = Parsing$dCombinators.many1(choice([
987
+ Parse$dParser.context("listCompGuard")((() => {
988
+ const $4 = Parse$dParser.reserved("if");
989
+ return (state1$2, more$2, lift1$2, throw$2, done$2) => more$2(v1$2 => $4(
990
+ state1$2,
991
+ more$2,
992
+ lift1$2,
993
+ throw$2,
994
+ (state2$2, a$2) => more$2(v2$2 => {
995
+ const $5 = state1$2._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
996
+ return more$2(v1$3 => opTree$lazy()(
997
+ $5,
998
+ more$2,
999
+ lift1$2,
1000
+ throw$2,
1001
+ (state2$3, a$3) => more$2(v2$3 => done$2(
1002
+ $5._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3,
1003
+ SExpr.$Qualifier("ListCompGuard", a$3)
1004
+ ))
1005
+ ));
1006
+ })
1007
+ ));
1008
+ })()),
1009
+ Parse$dParser.context("listCompDecl")((() => {
1010
+ const $4 = Parse$dParser.reserved("def");
1011
+ return (state1$2, more$2, lift1$2, throw$2, done$2) => more$2(v1$2 => $4(
1012
+ state1$2,
1013
+ more$2,
1014
+ lift1$2,
1015
+ throw$2,
1016
+ (state2$2, a$2) => more$2(v2$2 => {
1017
+ const $5 = state1$2._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
1018
+ return more$2(v1$3 => pattern(
1019
+ $5,
1020
+ more$2,
1021
+ lift1$2,
1022
+ throw$2,
1023
+ (state2$3, a$3) => more$2(v2$3 => {
1024
+ const $6 = Parse$dParser.delim(Parse$dParser.parseableChar)(":");
1025
+ const $7 = $5._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
1026
+ return more$2(v1$4 => $6(
1027
+ $7,
1028
+ more$2,
1029
+ lift1$2,
1030
+ throw$2,
1031
+ (state2$4, a$4) => more$2(v2$4 => {
1032
+ const $8 = $7._3 && !state2$4._3 ? Parsing.$ParseState(state2$4._1, state2$4._2, true) : state2$4;
1033
+ return more$2(v1$5 => opTree$lazy()(
1034
+ $8,
1035
+ more$2,
1036
+ lift1$2,
1037
+ throw$2,
1038
+ (state2$5, a$5) => more$2(v2$5 => done$2(
1039
+ $8._3 && !state2$5._3 ? Parsing.$ParseState(state2$5._1, state2$5._2, true) : state2$5,
1040
+ SExpr.$Qualifier("ListCompDecl", SExpr.$VarDef(a$3, a$5))
1041
+ ))
1042
+ ));
1043
+ })
1044
+ ));
1045
+ })
1046
+ ));
1047
+ })
1048
+ ));
1049
+ })()),
1050
+ Parse$dParser.context("listCompGen")((() => {
1051
+ const $4 = Parse$dParser.reserved("for");
1052
+ return (state1$2, more$2, lift1$2, throw$2, done$2) => more$2(v1$2 => $4(
1053
+ state1$2,
1054
+ more$2,
1055
+ lift1$2,
1056
+ throw$2,
1057
+ (state2$2, a$2) => more$2(v2$2 => {
1058
+ const $5 = state1$2._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
1059
+ return more$2(v1$3 => pattern(
1060
+ $5,
1061
+ more$2,
1062
+ lift1$2,
1063
+ throw$2,
1064
+ (state2$3, a$3) => more$2(v2$3 => {
1065
+ const $6 = Parse$dParser.reserved("in");
1066
+ const $7 = $5._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
1067
+ return more$2(v1$4 => $6(
1068
+ $7,
1069
+ more$2,
1070
+ lift1$2,
1071
+ throw$2,
1072
+ (state2$4, a$4) => more$2(v2$4 => {
1073
+ const $8 = $7._3 && !state2$4._3 ? Parsing.$ParseState(state2$4._1, state2$4._2, true) : state2$4;
1074
+ return more$2(v1$5 => opTree$lazy()(
1075
+ $8,
1076
+ more$2,
1077
+ lift1$2,
1078
+ throw$2,
1079
+ (state2$5, a$5) => more$2(v2$5 => done$2(
1080
+ $8._3 && !state2$5._3 ? Parsing.$ParseState(state2$5._1, state2$5._2, true) : state2$5,
1081
+ SExpr.$Qualifier("ListCompGen", a$3, a$5)
1082
+ ))
1083
+ ));
1084
+ })
1085
+ ));
1086
+ })
1087
+ ));
1088
+ })
1089
+ ));
1090
+ })())
1091
+ ]));
1092
+ return (state1$2, more$2, lift1$2, throw$2, done$2) => more$2(v1$2 => $4(
1093
+ state1$2,
1094
+ more$2,
1095
+ lift1$2,
1096
+ throw$2,
1097
+ (state2$2, a$2) => more$2(v2$2 => {
1098
+ const $5 = Parse$dParser.close(Parse$dParser.parseableChar)("]");
1099
+ const $6 = state1$2._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
1100
+ return more$2(v1$3 => $5(
1101
+ $6,
1102
+ more$2,
1103
+ lift1$2,
1104
+ throw$2,
1105
+ (state2$3, a$3) => more$2(v2$3 => done$2(
1106
+ $6._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3,
1107
+ SExpr.$Expr("ListComp", undefined, a$1, Data$dList$dTypes.$List("Cons", a$2._1, a$2._2))
1108
+ ))
1109
+ ));
1110
+ })
1111
+ ));
1112
+ })()),
1113
+ Parsing.fail("Expected `]")
1114
+ ])(state1$1._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1, more$1, lift1$1, throw$1, done$1))
1115
+ )),
1116
+ Parsing.fail("Expected `]` or a list expression after `[`")
1117
+ ])(state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2, more, lift1, $$throw, done))
1118
+ ));
1119
+ })());
1120
+ const $4 = Parse$dParser.context("lambda")((() => {
1121
+ const $4 = Parse$dParser.reserved("lambda");
1122
+ return (state1, more, lift1, $$throw, done) => more(v1 => $4(
1123
+ state1,
1124
+ more,
1125
+ lift1,
1126
+ $$throw,
1127
+ (state2, a) => more(v2 => {
1128
+ const $5 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
1129
+ return more(v1$1 => Parse$dParser.commas1(pattern)(
1130
+ $5,
1131
+ more,
1132
+ lift1,
1133
+ $$throw,
1134
+ (state2$1, a$1) => more(v2$1 => {
1135
+ const $6 = Parse$dParser.delim(Parse$dParser.parseableChar)(":");
1136
+ const $7 = $5._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
1137
+ return more(v1$2 => $6(
1138
+ $7,
1139
+ more,
1140
+ lift1,
1141
+ $$throw,
1142
+ (state2$2, a$2) => more(v2$2 => {
1143
+ const $8 = $7._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
1144
+ return more(v1$3 => opTree$lazy()(
1145
+ $8,
1146
+ more,
1147
+ lift1,
1148
+ $$throw,
1149
+ (state2$3, a$3) => more(v2$3 => done(
1150
+ $8._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3,
1151
+ SExpr.$Expr("Lambda", Util.nonEmptyListNonEmptyList.nonEmpty(Data$dList$dTypes.$List("Cons", Data$dTuple.$Tuple(a$1, a$3), Data$dList$dTypes.Nil)))
1152
+ ))
1153
+ ));
1154
+ })
1155
+ ));
1156
+ })
1157
+ ));
1158
+ })
1159
+ ));
1160
+ })());
1161
+ const $5 = SExpr.VarKey();
1162
+ const exprKey = Parsing.lazyParserT.defer(v => (state1, more, lift1, $$throw, done) => more(v1 => Parse$dParser.brackets(opTree$lazy())(
1163
+ state1,
1164
+ more,
1165
+ lift1,
1166
+ $$throw,
1167
+ (state2, a) => more(v2 => done(state2, SExpr.$DictEntry("ExprKey", a)))
1168
+ )));
1169
+ const $6 = Parse$dParser.context("dict")((() => {
1170
+ const $6 = Parse$dParser.delim(Parse$dParser.parseableChar)("{");
1171
+ return (state1, more, lift1, $$throw, done) => more(v1 => $6(
1172
+ state1,
1173
+ more,
1174
+ lift1,
1175
+ $$throw,
1176
+ (state2, a) => more(v2 => {
1177
+ const $7 = Parse$dParser.fields((v2$1, $7, $8, $9, $10) => {
1178
+ const $11 = v2$1._1;
1179
+ const $12 = v2$1._2;
1180
+ return $7(v3 => exprKey(
1181
+ Parsing.$ParseState($11, $12, false),
1182
+ $7,
1183
+ $8,
1184
+ (v4, $13) => {
1185
+ const $14 = v4._3;
1186
+ return $7(v5 => {
1187
+ if ($14) { return $9(v4, $13); }
1188
+ return $7(v1$1 => Parse$dParser.variable(v2$1, $7, $8, $9, (state2$1, a$1) => $7(v2$2 => $10(state2$1, $5(a$1)))));
1189
+ });
1190
+ },
1191
+ $10
1192
+ ));
1193
+ })(expr$lazy());
1194
+ const $8 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
1195
+ return more(v1$1 => $7(
1196
+ $8,
1197
+ more,
1198
+ lift1,
1199
+ $$throw,
1200
+ (state2$1, a$1) => more(v2$1 => {
1201
+ const $9 = Parse$dParser.close(Parse$dParser.parseableChar)("}");
1202
+ const $10 = $8._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
1203
+ return more(v1$2 => $9(
1204
+ $10,
1205
+ more,
1206
+ lift1,
1207
+ $$throw,
1208
+ (state2$2, a$2) => more(v2$2 => done(
1209
+ $10._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2,
1210
+ SExpr.$Expr("Dictionary", undefined, a$1)
1211
+ ))
1212
+ ));
1213
+ })
1214
+ ));
1215
+ })
1216
+ ));
1217
+ })());
1218
+ const $7 = (() => {
1219
+ const $7 = Data$dArray.some(Parsing.alternativeParserT)(Parsing.lazyParserT)(Parsing$dString.satisfy(c => c !== "\"" && c !== "{" && !Data$dCodePoint$dUnicode.isSpace(Data$dEnum.toCharCode(c))));
1220
+ const $8 = (() => {
1221
+ const $8 = Parsing.lazyParserT.defer(v => (state1, more, lift1, $$throw, done) => more(v1 => Parse$dParser.braces(opTree$lazy())(
1222
+ state1,
1223
+ more,
1224
+ lift1,
1225
+ $$throw,
1226
+ (state2, a) => more(v2 => done(state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2, SExpr.$ParagraphElem("Unquote", a)))
1227
+ )));
1228
+ const $9 = (() => {
1229
+ const $9 = Parse$dParser.delim(Parse$dParser.parseableString)("f\"\"\"");
1230
+ const $10 = (() => {
1231
+ const $10 = SExpr.Str();
1232
+ const $11 = (() => {
1233
+ const $11 = SExpr.Constr();
1234
+ const $12 = Parse$dParser.context("parens")((() => {
1235
+ const $12 = Parse$dParser.delim(Parse$dParser.parseableChar)("(");
1236
+ return (state1, more, lift1, $$throw, done) => more(v1 => $12(
1237
+ state1,
1238
+ more,
1239
+ lift1,
1240
+ $$throw,
1241
+ (state2, a) => more(v2 => choice([
1242
+ (() => {
1243
+ const $13 = Parse$dParser.close(Parse$dParser.parseableChar)(")");
1244
+ return (state1$1, more$1, lift1$1, throw$1, done$1) => more$1(v1$1 => {
1245
+ const $14 = state1$1._3;
1246
+ return more$1(v2$1 => more$1(v1$2 => Parse$dParser.operator(
1247
+ state1$1,
1248
+ more$1,
1249
+ lift1$1,
1250
+ (v2$2, $15) => throw$1(Parsing.$ParseState(v2$2._1, v2$2._2, $14), $15),
1251
+ (state2$1, a$1) => more$1(v2$2 => more$1(v3 => {
1252
+ const state2$p = state1$1._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
1253
+ return $13(
1254
+ state2$p,
1255
+ more$1,
1256
+ lift1$1,
1257
+ (v2$3, $15) => throw$1(Parsing.$ParseState(v2$3._1, v2$3._2, $14), $15),
1258
+ (state3, a$2) => more$1(v4 => {
1259
+ const $15 = state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3;
1260
+ return more$1(v2$3 => done$1(state1$1._3 && !$15._3 ? Parsing.$ParseState($15._1, $15._2, true) : $15, SExpr.$Expr("Op", a$1)));
1261
+ })
1262
+ );
1263
+ }))
1264
+ )));
1265
+ });
1266
+ })(),
1267
+ (state1$1, more$1, lift1$1, throw$1, done$1) => more$1(v1$1 => opTree$lazy()(
1268
+ state1$1,
1269
+ more$1,
1270
+ lift1$1,
1271
+ throw$1,
1272
+ (state2$1, a$1) => more$1(v2$1 => choice([
1273
+ (() => {
1274
+ const $13 = Parse$dParser.close(Parse$dParser.parseableChar)(")");
1275
+ return (state1$2, more$2, lift1$2, throw$2, done$2) => more$2(v1$2 => $13(
1276
+ state1$2,
1277
+ more$2,
1278
+ lift1$2,
1279
+ throw$2,
1280
+ (state2$2, a$2) => more$2(v2$2 => done$2(state1$2._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2, a$1))
1281
+ ));
1282
+ })(),
1283
+ (() => {
1284
+ const $13 = Parse$dParser.delim(Parse$dParser.parseableChar)(",");
1285
+ return (state1$2, more$2, lift1$2, throw$2, done$2) => more$2(v1$2 => $13(
1286
+ state1$2,
1287
+ more$2,
1288
+ lift1$2,
1289
+ throw$2,
1290
+ (state2$2, a$2) => more$2(v2$2 => {
1291
+ const $14 = state1$2._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
1292
+ return more$2(v1$3 => opTree$lazy()(
1293
+ $14,
1294
+ more$2,
1295
+ lift1$2,
1296
+ throw$2,
1297
+ (state2$3, a$3) => more$2(v2$3 => {
1298
+ const $15 = Parse$dParser.close(Parse$dParser.parseableChar)(")");
1299
+ const $16 = $14._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
1300
+ return more$2(v1$4 => $15(
1301
+ $16,
1302
+ more$2,
1303
+ lift1$2,
1304
+ throw$2,
1305
+ (state2$4, a$4) => more$2(v2$4 => done$2(
1306
+ $16._3 && !state2$4._3 ? Parsing.$ParseState(state2$4._1, state2$4._2, true) : state2$4,
1307
+ SExpr.$Expr(
1308
+ "Constr",
1309
+ undefined,
1310
+ "Pair",
1311
+ Data$dList$dTypes.$List("Cons", a$1, Data$dList$dTypes.$List("Cons", a$3, Data$dList$dTypes.Nil))
1312
+ )
1313
+ ))
1314
+ ));
1315
+ })
1316
+ ));
1317
+ })
1318
+ ));
1319
+ })(),
1320
+ Parsing.fail("Expected `)` or `,` after `(expr`")
1321
+ ])(state1$1._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1, more$1, lift1$1, throw$1, done$1))
1322
+ )),
1323
+ Parsing.fail("Expected `op` or `expr` after `(`")
1324
+ ])(state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2, more, lift1, $$throw, done))
1325
+ ));
1326
+ })());
1327
+ const $13 = Parse$dParser.context("doc expr")((() => {
1328
+ const $13 = Parse$dParser.delim(Parse$dParser.parseableString)("@doc");
1329
+ return (state1, more, lift1, $$throw, done) => more(v1 => $13(
1330
+ state1,
1331
+ more,
1332
+ lift1,
1333
+ $$throw,
1334
+ (state2, a) => more(v2 => {
1335
+ const $14 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
1336
+ return more(v1$1 => Parse$dParser.parens(opTree$lazy())(
1337
+ $14,
1338
+ more,
1339
+ lift1,
1340
+ $$throw,
1341
+ (state2$1, a$1) => more(v2$1 => {
1342
+ const $15 = $14._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
1343
+ return more(v1$2 => opTree$lazy()(
1344
+ $15,
1345
+ more,
1346
+ lift1,
1347
+ $$throw,
1348
+ (state2$2, a$2) => more(v2$2 => done(
1349
+ $15._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2,
1350
+ SExpr.$Expr("DocExpr", a$1, a$2)
1351
+ ))
1352
+ ));
1353
+ })
1354
+ ));
1355
+ })
1356
+ ));
1357
+ })());
1358
+ const $14 = (() => {
1359
+ const $14 = Parsing$dCombinators.withErrorMessage((() => {
1360
+ const $14 = SExpr.Float();
1361
+ const $15 = SExpr.Int();
1362
+ return (v2, $16, $17, $18, $19) => {
1363
+ const $20 = v2._1;
1364
+ const $21 = v2._2;
1365
+ return $16(v3 => $16(v1 => Parse$dNumber.float(
1366
+ Parsing.$ParseState($20, $21, false),
1367
+ $16,
1368
+ $17,
1369
+ (v2$1, $22) => $16(v5 => $16(v1$1 => Parse$dNumber.integer(v2, $16, $17, $18, (state2, a) => $16(v2$2 => $19(state2, $15(a)))))),
1370
+ (state2, a) => $16(v2$1 => $19(state2, $14(a)))
1371
+ )));
1372
+ };
1373
+ })())("simple expression");
1374
+ return (v2, $15, $16, $17, $18) => {
1375
+ const $19 = v2._1;
1376
+ const $20 = v2._2;
1377
+ return $15(v3 => {
1378
+ const $21 = (v4, $21) => {
1379
+ const $22 = v4._3;
1380
+ return $15(v5 => {
1381
+ if ($22) { return $17(v4, $21); }
1382
+ const $23 = v2._1;
1383
+ const $24 = v2._2;
1384
+ return $15(v3$1 => $15(v1 => Parse$dParser.stringLiteral(
1385
+ Parsing.$ParseState($23, $24, false),
1386
+ $15,
1387
+ $16,
1388
+ (v4$1, $25) => {
1389
+ const $26 = v4$1._3;
1390
+ return $15(v5$1 => {
1391
+ if ($26) { return $17(v4$1, $25); }
1392
+ const $27 = v2._1;
1393
+ const $28 = v2._2;
1394
+ return $15(v3$2 => $15(v1$1 => Parse$dParser.variable(
1395
+ Parsing.$ParseState($27, $28, false),
1396
+ $15,
1397
+ $16,
1398
+ (v4$2, $29) => {
1399
+ const $30 = v4$2._3;
1400
+ return $15(v5$2 => {
1401
+ if ($30) { return $17(v4$2, $29); }
1402
+ const $31 = v2._1;
1403
+ const $32 = v2._2;
1404
+ return $15(v3$3 => $15(v1$2 => Parse$dParser.constructor(
1405
+ Parsing.$ParseState($31, $32, false),
1406
+ $15,
1407
+ $16,
1408
+ (v4$3, $33) => {
1409
+ const $34 = v4$3._3;
1410
+ return $15(v5$3 => {
1411
+ if ($34) { return $17(v4$3, $33); }
1412
+ const $35 = v2._1;
1413
+ const $36 = v2._2;
1414
+ return $15(v3$4 => $12(
1415
+ Parsing.$ParseState($35, $36, false),
1416
+ $15,
1417
+ $16,
1418
+ (v4$4, $37) => {
1419
+ const $38 = v4$4._3;
1420
+ return $15(v5$4 => {
1421
+ if ($38) { return $17(v4$4, $37); }
1422
+ const $39 = v2._1;
1423
+ const $40 = v2._2;
1424
+ return $15(v3$5 => $13(
1425
+ Parsing.$ParseState($39, $40, false),
1426
+ $15,
1427
+ $16,
1428
+ (v4$5, $41) => {
1429
+ const $42 = v4$5._3;
1430
+ return $15(v5$5 => {
1431
+ if ($42) { return $17(v4$5, $41); }
1432
+ return $14(v2, $15, $16, $17, $18);
1433
+ });
1434
+ },
1435
+ $18
1436
+ ));
1437
+ });
1438
+ },
1439
+ $18
1440
+ ));
1441
+ });
1442
+ },
1443
+ (state2, a) => $15(v2$1 => $18(state2, $11(a)(Data$dList$dTypes.Nil)))
1444
+ )));
1445
+ });
1446
+ },
1447
+ (state2, a) => $15(v2$1 => $18(state2, SExpr.$Expr("Var", a)))
1448
+ )));
1449
+ });
1450
+ },
1451
+ (state2, a) => $15(v2$1 => $18(state2, $10(a)))
1452
+ )));
1453
+ });
1454
+ };
1455
+ return $15(v1 => $9(
1456
+ Parsing.$ParseState($19, $20, false),
1457
+ $15,
1458
+ $16,
1459
+ $21,
1460
+ (state2, a) => $15(v2$1 => {
1461
+ const $22 = Parsing$dCombinators.manyRec(Parse$dParser.lexeme((v2$2, $22, $23, $24, $25) => {
1462
+ const $26 = v2$2._1;
1463
+ const $27 = v2$2._2;
1464
+ return $22(v3$1 => $22(v1$1 => $7(
1465
+ Parsing.$ParseState($26, $27, false),
1466
+ $22,
1467
+ $23,
1468
+ (v4, $28) => {
1469
+ const $29 = v4._3;
1470
+ return $22(v5 => {
1471
+ if ($29) { return $24(v4, $28); }
1472
+ return $8(v2$2, $22, $23, $24, $25);
1473
+ });
1474
+ },
1475
+ (state2$1, a$1) => $22(v2$3 => $25(state2$1, SExpr.$ParagraphElem("Token", Data$dString$dCodeUnits.fromCharArray(a$1))))
1476
+ )));
1477
+ }));
1478
+ return $15(v1$1 => $22(
1479
+ state2,
1480
+ $15,
1481
+ $16,
1482
+ $21,
1483
+ (state2$1, a$1) => $15(v2$2 => {
1484
+ const $23 = Parse$dParser.delim(Parse$dParser.parseableString)("\"\"\"");
1485
+ const $24 = state2._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
1486
+ return $15(v1$2 => $23(
1487
+ $24,
1488
+ $15,
1489
+ $16,
1490
+ $21,
1491
+ (state2$2, a$2) => $15(v2$3 => $18(
1492
+ $24._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2,
1493
+ SExpr.$Expr("Paragraph", a$1)
1494
+ ))
1495
+ ));
1496
+ })
1497
+ ));
1498
+ })
1499
+ ));
1500
+ });
1501
+ };
1502
+ })();
1503
+ return (v2, $15, $16, $17, $18) => {
1504
+ const $19 = v2._1;
1505
+ const $20 = v2._2;
1506
+ return $15(v3 => $6(
1507
+ Parsing.$ParseState($19, $20, false),
1508
+ $15,
1509
+ $16,
1510
+ (v4, $21) => {
1511
+ const $22 = v4._3;
1512
+ return $15(v5 => {
1513
+ if ($22) { return $17(v4, $21); }
1514
+ return $14(v2, $15, $16, $17, $18);
1515
+ });
1516
+ },
1517
+ $18
1518
+ ));
1519
+ };
1520
+ })();
1521
+ return (v2, $12, $13, $14, $15) => {
1522
+ const $16 = v2._1;
1523
+ const $17 = v2._2;
1524
+ return $12(v3 => $4(
1525
+ Parsing.$ParseState($16, $17, false),
1526
+ $12,
1527
+ $13,
1528
+ (v4, $18) => {
1529
+ const $19 = v4._3;
1530
+ return $12(v5 => {
1531
+ if ($19) { return $14(v4, $18); }
1532
+ return $11(v2, $12, $13, $14, $15);
1533
+ });
1534
+ },
1535
+ $15
1536
+ ));
1537
+ };
1538
+ })();
1539
+ return (v2, $11, $12, $13, $14) => {
1540
+ const $15 = v2._1;
1541
+ const $16 = v2._2;
1542
+ return $11(v3 => $3(
1543
+ Parsing.$ParseState($15, $16, false),
1544
+ $11,
1545
+ $12,
1546
+ (v4, $17) => {
1547
+ const $18 = v4._3;
1548
+ return $11(v5 => {
1549
+ if ($18) { return $13(v4, $17); }
1550
+ return $10(v2, $11, $12, $13, $14);
1551
+ });
1552
+ },
1553
+ $14
1554
+ ));
1555
+ };
1556
+ })();
1557
+ return (v2, $10, $11, $12, $13) => {
1558
+ const $14 = v2._1;
1559
+ const $15 = v2._2;
1560
+ return $10(v3 => $2(
1561
+ Parsing.$ParseState($14, $15, false),
1562
+ $10,
1563
+ $11,
1564
+ (v4, $16) => {
1565
+ const $17 = v4._3;
1566
+ return $10(v5 => {
1567
+ if ($17) { return $12(v4, $16); }
1568
+ return $9(v2, $10, $11, $12, $13);
1569
+ });
1570
+ },
1571
+ $13
1572
+ ));
1573
+ };
1574
+ })();
1575
+ return (v2, $9, $10, $11, $12) => {
1576
+ const $13 = v2._1;
1577
+ const $14 = v2._2;
1578
+ return $9(v3 => $1(
1579
+ Parsing.$ParseState($13, $14, false),
1580
+ $9,
1581
+ $10,
1582
+ (v4, $15) => {
1583
+ const $16 = v4._3;
1584
+ return $9(v5 => {
1585
+ if ($16) { return $11(v4, $15); }
1586
+ return $8(v2, $9, $10, $11, $12);
1587
+ });
1588
+ },
1589
+ $12
1590
+ ));
1591
+ };
1592
+ })();
1593
+ return (v2, $8, $9, $10, $11) => {
1594
+ const $12 = v2._1;
1595
+ const $13 = v2._2;
1596
+ return $8(v3 => $0(
1597
+ Parsing.$ParseState($12, $13, false),
1598
+ $8,
1599
+ $9,
1600
+ (v4, $14) => {
1601
+ const $15 = v4._3;
1602
+ return $8(v5 => {
1603
+ if ($15) { return $10(v4, $14); }
1604
+ return $7(v2, $8, $9, $10, $11);
1605
+ });
1606
+ },
1607
+ $11
1608
+ ));
1609
+ };
1610
+ })());
1611
+ return (state1, more, lift1, $$throw, done) => more(v1 => $0(
1612
+ state1,
1613
+ more,
1614
+ lift1,
1615
+ $$throw,
1616
+ (state2, a) => more(v2 => chain(a)(state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2, more, lift1, $$throw, done))
1617
+ ));
1618
+ })()))(Data$dFunctor.arrayMap(Data$dFunctor.arrayMap(v => {
1619
+ if (v._3 === "Symbol") {
1620
+ const $0 = (state1, more, lift1, $$throw, done) => more(v1 => Parse$dParser.reservedOperator(v._1)(
1621
+ state1,
1622
+ more,
1623
+ lift1,
1624
+ $$throw,
1625
+ (state2, a) => more(v2 => done(state2, v._1))
1626
+ ));
1627
+ if (v._2.tag === "Infix") {
1628
+ return Parsing$dExpr.$Operator(
1629
+ "Infix",
1630
+ (state1, more, lift1, $$throw, done) => more(v1 => $0(
1631
+ state1,
1632
+ more,
1633
+ lift1,
1634
+ $$throw,
1635
+ (state2, a) => more(v2 => done(state2, e => e$p => SExpr.$Expr("BinaryApp", e, a, e$p)))
1636
+ )),
1637
+ v._2._1
1638
+ );
1639
+ }
1640
+ if (v._2.tag === "Prefix") {
1641
+ return Parsing$dExpr.$Operator(
1642
+ "Prefix",
1643
+ (state1, more, lift1, $$throw, done) => more(v1 => $0(state1, more, lift1, $$throw, (state2, a) => more(v2 => done(state2, e => SExpr.$Expr("UnaryPrefixApp", a, e)))))
1644
+ );
1645
+ }
1646
+ if (v._2.tag === "Postfix") { return Effect$dException.throwException(Effect$dException.error("not implemented!"))(); }
1647
+ $runtime.fail();
1648
+ }
1649
+ if (v._3 === "Ident") {
1650
+ const $0 = Parse$dParser.reserved(v._1);
1651
+ const $1 = (state1, more, lift1, $$throw, done) => more(v1 => $0(state1, more, lift1, $$throw, (state2, a) => more(v2 => done(state2, v._1))));
1652
+ if (v._2.tag === "Infix") {
1653
+ return Parsing$dExpr.$Operator(
1654
+ "Infix",
1655
+ (state1, more, lift1, $$throw, done) => more(v1 => $1(
1656
+ state1,
1657
+ more,
1658
+ lift1,
1659
+ $$throw,
1660
+ (state2, a) => more(v2 => done(state2, e => e$p => SExpr.$Expr("BinaryApp", e, a, e$p)))
1661
+ )),
1662
+ v._2._1
1663
+ );
1664
+ }
1665
+ if (v._2.tag === "Prefix") {
1666
+ return Parsing$dExpr.$Operator(
1667
+ "Prefix",
1668
+ (state1, more, lift1, $$throw, done) => more(v1 => $1(state1, more, lift1, $$throw, (state2, a) => more(v2 => done(state2, e => SExpr.$Expr("UnaryPrefixApp", a, e)))))
1669
+ );
1670
+ }
1671
+ if (v._2.tag === "Postfix") { return Effect$dException.throwException(Effect$dException.error("not implemented!"))(); }
1672
+ $runtime.fail();
1673
+ }
1674
+ if (v._3 === "CustomOp") {
1675
+ const $0 = Parse$dParser.delim(Parse$dParser.parseableChar)("|");
1676
+ const $1 = Parse$dParser.delim(Parse$dParser.parseableChar)("|");
1677
+ return Parsing$dExpr.$Operator(
1678
+ "Infix",
1679
+ (state1, more, lift1, $$throw, done) => more(v1 => more(v2 => more(v1$1 => {
1680
+ const $2 = state1._3;
1681
+ return more(v2$1 => more(v1$2 => $0(
1682
+ state1,
1683
+ more,
1684
+ lift1,
1685
+ (v2$2, $3) => $$throw(Parsing.$ParseState(v2$2._1, v2$2._2, $2), $3),
1686
+ (state2, a) => more(v2$2 => more(v3 => {
1687
+ const state2$p = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
1688
+ return Parse$dParser.variable(
1689
+ state2$p,
1690
+ more,
1691
+ lift1,
1692
+ (v2$3, $3) => $$throw(Parsing.$ParseState(v2$3._1, v2$3._2, $2), $3),
1693
+ (state3, a$1) => more(v4 => {
1694
+ const $3 = state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3;
1695
+ return more(v2$3 => more(v3$1 => {
1696
+ const state2$p$1 = state1._3 && !$3._3 ? Parsing.$ParseState($3._1, $3._2, true) : $3;
1697
+ return $1(
1698
+ state2$p$1,
1699
+ more,
1700
+ lift1,
1701
+ $$throw,
1702
+ (state3$1, a$2) => more(v4$1 => {
1703
+ const $4 = state2$p$1._3 && !state3$1._3 ? Parsing.$ParseState(state3$1._1, state3$1._2, true) : state3$1;
1704
+ return more(v2$4 => done($4, e => e$p => SExpr.$Expr("BinaryApp", e, a$1, e$p)));
1705
+ })
1706
+ );
1707
+ }));
1708
+ })
1709
+ );
1710
+ }))
1711
+ )));
1712
+ }))),
1713
+ Parsing$dExpr.AssocLeft
1714
+ );
1715
+ }
1716
+ if (v._3 === "ConsOp") {
1717
+ return Parsing$dExpr.$Operator(
1718
+ "Infix",
1719
+ (state1, more, lift1, $$throw, done) => more(v1 => Parse$dParser.reservedOperator(":|")(
1720
+ state1,
1721
+ more,
1722
+ lift1,
1723
+ $$throw,
1724
+ (state2, a) => more(v2 => done(
1725
+ state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2,
1726
+ e => e$p => SExpr.$Expr("Constr", undefined, ":", Data$dList$dTypes.$List("Cons", e, Data$dList$dTypes.$List("Cons", e$p, Data$dList$dTypes.Nil)))
1727
+ ))
1728
+ )),
1729
+ Parsing$dExpr.AssocRight
1730
+ );
1731
+ }
1732
+ if (v._3 === "ProjectOp") { return Effect$dException.throwException(Effect$dException.error("not implemented!"))(); }
1733
+ $runtime.fail();
1734
+ }))(Primitive$dParse.opDefs));
1735
+ })());
1736
+ return (state1, more, lift1, $$throw, done) => more(v2 => more(v1 => $0(
1737
+ state1,
1738
+ more,
1739
+ lift1,
1740
+ $$throw,
1741
+ (state2, a) => more(v2$1 => more(v3 => {
1742
+ const state2$p = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
1743
+ return Parsing.consume(
1744
+ state2$p,
1745
+ more,
1746
+ lift1,
1747
+ $$throw,
1748
+ (state3, a$1) => more(v4 => done(state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3, a))
1749
+ );
1750
+ }))
1751
+ )));
1752
+ });
1753
+ const opTree = opTree$lazy();
1754
+ return Parse$dParser.context("expr")((() => {
1755
+ const $0 = Parse$dParser.reserved("case");
1756
+ const $1 = Parse$dParser.reserved("match");
1757
+ const clause = (state1, more, lift1, $$throw, done) => more(v1 => opTree(
1758
+ state1,
1759
+ more,
1760
+ lift1,
1761
+ $$throw,
1762
+ (state2, a) => more(v2 => {
1763
+ const $2 = Parse$dParser.block(expr$lazy());
1764
+ const $3 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
1765
+ return more(v1$1 => $2(
1766
+ $3,
1767
+ more,
1768
+ lift1,
1769
+ $$throw,
1770
+ (state2$1, a$1) => more(v2$1 => done($3._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1, Data$dTuple.$Tuple(a, a$1)))
1771
+ ));
1772
+ })
1773
+ ));
1774
+ const $2 = Parse$dParser.reserved("if");
1775
+ const $3 = Parse$dParser.context("def")((() => {
1776
+ const $3 = Parse$dParser.context("funDef")(Parsing$dIndent.withPos((state1, more, lift1, $$throw, done) => more(v1 => recDefs$lazy()(
1777
+ state1,
1778
+ more,
1779
+ lift1,
1780
+ $$throw,
1781
+ (state2, a) => more(v2 => {
1782
+ const $3 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
1783
+ return more(v1$1 => Parse$dParser.align(expr$lazy())(
1784
+ $3,
1785
+ more,
1786
+ lift1,
1787
+ $$throw,
1788
+ (state2$1, a$1) => more(v2$1 => done($3._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1, SExpr.$Expr("LetRec", a, a$1)))
1789
+ ));
1790
+ })
1791
+ ))));
1792
+ const $4 = Parse$dParser.context("valDef")(Parsing$dIndent.withPos((state1, more, lift1, $$throw, done) => more(v1 => varDefs$lazy()(
1793
+ state1,
1794
+ more,
1795
+ lift1,
1796
+ $$throw,
1797
+ (state2, a) => more(v2 => {
1798
+ const $4 = state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2;
1799
+ return more(v1$1 => Parse$dParser.align(expr$lazy())(
1800
+ $4,
1801
+ more,
1802
+ lift1,
1803
+ $$throw,
1804
+ (state2$1, a$1) => more(v2$1 => done($4._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1, SExpr.$Expr("Let", a, a$1)))
1805
+ ));
1806
+ })
1807
+ ))));
1808
+ return (v2, $5, $6, $7, $8) => {
1809
+ const $9 = v2._1;
1810
+ const $10 = v2._2;
1811
+ return $5(v3 => $3(
1812
+ Parsing.$ParseState($9, $10, false),
1813
+ $5,
1814
+ $6,
1815
+ (v4, $11) => {
1816
+ const $12 = v4._3;
1817
+ return $5(v5 => {
1818
+ if ($12) { return $7(v4, $11); }
1819
+ return $4(v2, $5, $6, $7, $8);
1820
+ });
1821
+ },
1822
+ $8
1823
+ ));
1824
+ };
1825
+ })());
1826
+ const $4 = Parsing$dCombinators.withErrorMessage(opTree)("expression");
1827
+ return (v2, $5, $6, $7, $8) => {
1828
+ const $9 = v2._1;
1829
+ const $10 = v2._2;
1830
+ return $5(v3 => {
1831
+ const $11 = (v4, $11) => {
1832
+ const $12 = v4._3;
1833
+ return $5(v5 => {
1834
+ if ($12) { return $7(v4, $11); }
1835
+ const $13 = v2._1;
1836
+ const $14 = v2._2;
1837
+ return $5(v3$1 => {
1838
+ const $15 = (v4$1, $15) => {
1839
+ const $16 = v4$1._3;
1840
+ return $5(v5$1 => {
1841
+ if ($16) { return $7(v4$1, $15); }
1842
+ const $17 = v2._1;
1843
+ const $18 = v2._2;
1844
+ return $5(v3$2 => $3(
1845
+ Parsing.$ParseState($17, $18, false),
1846
+ $5,
1847
+ $6,
1848
+ (v4$2, $19) => {
1849
+ const $20 = v4$2._3;
1850
+ return $5(v5$2 => {
1851
+ if ($20) { return $7(v4$2, $19); }
1852
+ return $4(v2, $5, $6, $7, $8);
1853
+ });
1854
+ },
1855
+ $8
1856
+ ));
1857
+ });
1858
+ };
1859
+ return $5(v1 => $2(
1860
+ Parsing.$ParseState($13, $14, false),
1861
+ $5,
1862
+ $6,
1863
+ $15,
1864
+ (state2, a) => $5(v2$1 => $5(v1$1 => clause(
1865
+ state2,
1866
+ $5,
1867
+ $6,
1868
+ $15,
1869
+ (state2$1, a$1) => $5(v2$2 => {
1870
+ const $16 = Parsing$dCombinators.manyRec(Parse$dParser.align((() => {
1871
+ const $16 = Parse$dParser.reserved("elif");
1872
+ return (state1, more, lift1, $$throw, done) => more(v2$3 => more(v1$2 => $16(
1873
+ state1,
1874
+ more,
1875
+ lift1,
1876
+ $$throw,
1877
+ (state2$2, a$2) => more(v2$4 => more(v3$2 => {
1878
+ const state2$p = state1._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
1879
+ return clause(
1880
+ state2$p,
1881
+ more,
1882
+ lift1,
1883
+ $$throw,
1884
+ (state3, a$3) => more(v4$1 => done(state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3, a$3))
1885
+ );
1886
+ }))
1887
+ )));
1888
+ })()));
1889
+ const $17 = state2._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
1890
+ return $5(v1$2 => $16(
1891
+ $17,
1892
+ $5,
1893
+ $6,
1894
+ $15,
1895
+ (state2$2, a$2) => $5(v2$3 => {
1896
+ const $18 = Parse$dParser.align((() => {
1897
+ const $18 = Parse$dParser.reserved("else");
1898
+ const $19 = Parse$dParser.block(expr$lazy());
1899
+ return (state1, more, lift1, $$throw, done) => more(v2$4 => more(v1$3 => $18(
1900
+ state1,
1901
+ more,
1902
+ lift1,
1903
+ $$throw,
1904
+ (state2$3, a$3) => more(v2$5 => more(v3$2 => {
1905
+ const state2$p = state1._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
1906
+ return $19(
1907
+ state2$p,
1908
+ more,
1909
+ lift1,
1910
+ $$throw,
1911
+ (state3, a$4) => more(v4$1 => done(state2$p._3 && !state3._3 ? Parsing.$ParseState(state3._1, state3._2, true) : state3, a$4))
1912
+ );
1913
+ }))
1914
+ )));
1915
+ })());
1916
+ const $19 = $17._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
1917
+ return $5(v1$3 => $18(
1918
+ $19,
1919
+ $5,
1920
+ $6,
1921
+ $15,
1922
+ (state2$3, a$3) => $5(v2$4 => $8(
1923
+ $19._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3,
1924
+ SExpr.$Expr("IfElse", Util.nonEmptyListNonEmptyList.nonEmpty(Data$dList$dTypes.$List("Cons", a$1, a$2)), a$3)
1925
+ ))
1926
+ ));
1927
+ })
1928
+ ));
1929
+ })
1930
+ )))
1931
+ ));
1932
+ });
1933
+ });
1934
+ };
1935
+ return $5(v1 => $1(
1936
+ Parsing.$ParseState($9, $10, false),
1937
+ $5,
1938
+ $6,
1939
+ $11,
1940
+ (state2, a) => $5(v2$1 => $5(v1$1 => opTree(
1941
+ state2,
1942
+ $5,
1943
+ $6,
1944
+ $11,
1945
+ (state2$1, a$1) => $5(v2$2 => {
1946
+ const $12 = Parse$dParser.block(Parsing$dCombinators.many1(Parse$dParser.align((state1, more, lift1, $$throw, done) => more(v1$2 => $0(
1947
+ state1,
1948
+ more,
1949
+ lift1,
1950
+ $$throw,
1951
+ (state2$2, a$2) => more(v2$3 => {
1952
+ const $12 = state1._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2;
1953
+ return more(v1$3 => pattern(
1954
+ $12,
1955
+ more,
1956
+ lift1,
1957
+ $$throw,
1958
+ (state2$3, a$3) => more(v2$4 => {
1959
+ const $13 = Parse$dParser.block(expr$lazy());
1960
+ const $14 = $12._3 && !state2$3._3 ? Parsing.$ParseState(state2$3._1, state2$3._2, true) : state2$3;
1961
+ return more(v1$4 => $13(
1962
+ $14,
1963
+ more,
1964
+ lift1,
1965
+ $$throw,
1966
+ (state2$4, a$4) => more(v2$5 => done($14._3 && !state2$4._3 ? Parsing.$ParseState(state2$4._1, state2$4._2, true) : state2$4, Data$dTuple.$Tuple(a$3, a$4)))
1967
+ ));
1968
+ })
1969
+ ));
1970
+ })
1971
+ )))));
1972
+ const $13 = state2._3 && !state2$1._3 ? Parsing.$ParseState(state2$1._1, state2$1._2, true) : state2$1;
1973
+ return $5(v1$2 => $12(
1974
+ $13,
1975
+ $5,
1976
+ $6,
1977
+ $11,
1978
+ (state2$2, a$2) => $5(v2$3 => $8($13._3 && !state2$2._3 ? Parsing.$ParseState(state2$2._1, state2$2._2, true) : state2$2, SExpr.$Expr("MatchAs", a$1, a$2)))
1979
+ ));
1980
+ })
1981
+ )))
1982
+ ));
1983
+ });
1984
+ };
1985
+ })());
1986
+ });
1987
+ const varDefs = /* #__PURE__ */ varDefs$lazy();
1988
+ const recDefs = /* #__PURE__ */ recDefs$lazy();
1989
+ const expr = /* #__PURE__ */ expr$lazy();
1990
+ const parseProgram = /* #__PURE__ */ parse(/* #__PURE__ */ withImports(expr));
1991
+ const defs = /* #__PURE__ */ Data$dEither.choose(Parsing.altParserT)(varDefs)(recDefs);
1992
+ const module_ = /* #__PURE__ */ (() => {
1993
+ const $0 = Parsing$dCombinators.manyRec(defs);
1994
+ return (state1, more, lift1, $$throw, done) => more(v1 => $0(
1995
+ state1,
1996
+ more,
1997
+ lift1,
1998
+ $$throw,
1999
+ (state2, a) => more(v2 => done(state1._3 && !state2._3 ? Parsing.$ParseState(state2._1, state2._2, true) : state2, SExpr.$Module(a)))
2000
+ ));
2001
+ })();
2002
+ const parseModule = /* #__PURE__ */ parse(/* #__PURE__ */ withImports(module_));
2003
+ export {choice, defs, expr, imports_, module_, pConsOp, parse, parseModule, parseProgram, pattern, recDefs, runParserT, simplePattern, topLevel, varDefs, withImports};