@explorable-viz/fluid 0.0.23 → 0.7.7

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 (334) hide show
  1. package/.spago/aff/v7.0.0/.editorconfig +13 -0
  2. package/.spago/aff/v7.0.0/.eslintrc.json +28 -0
  3. package/.spago/aff/v7.0.0/.gitignore +14 -0
  4. package/.spago/aff/v7.0.0/.tidyrc.json +10 -0
  5. package/.spago/affjax/v13.0.0/.editorconfig +13 -0
  6. package/.spago/affjax/v13.0.0/.eslintrc.json +28 -0
  7. package/.spago/affjax/v13.0.0/.gitignore +14 -0
  8. package/.spago/affjax/v13.0.0/.tidyrc.json +10 -0
  9. package/.spago/affjax-web/v1.0.0/.editorconfig +13 -0
  10. package/.spago/affjax-web/v1.0.0/.eslintrc.json +30 -0
  11. package/.spago/affjax-web/v1.0.0/.gitignore +14 -0
  12. package/.spago/affjax-web/v1.0.0/.tidyrc.json +10 -0
  13. package/.spago/argonaut-codecs/v9.0.0/.editorconfig +13 -0
  14. package/.spago/argonaut-codecs/v9.0.0/.gitignore +9 -0
  15. package/.spago/argonaut-codecs/v9.0.0/.tidyrc.json +10 -0
  16. package/.spago/argonaut-core/v7.0.0/.editorconfig +13 -0
  17. package/.spago/argonaut-core/v7.0.0/.eslintrc.json +29 -0
  18. package/.spago/argonaut-core/v7.0.0/.gitignore +14 -0
  19. package/.spago/argonaut-core/v7.0.0/.tidyrc.json +10 -0
  20. package/.spago/arraybuffer-types/v3.0.2/.editorconfig +13 -0
  21. package/.spago/arraybuffer-types/v3.0.2/.gitignore +9 -0
  22. package/.spago/arraybuffer-types/v3.0.2/.tidyrc.json +10 -0
  23. package/.spago/arrays/v7.0.0/.eslintrc.json +26 -0
  24. package/.spago/arrays/v7.0.0/.gitignore +9 -0
  25. package/.spago/assert/v6.0.0/.eslintrc.json +26 -0
  26. package/.spago/assert/v6.0.0/.gitignore +8 -0
  27. package/.spago/avar/v5.0.0/.editorconfig +13 -0
  28. package/.spago/avar/v5.0.0/.eslintrc.json +29 -0
  29. package/.spago/avar/v5.0.0/.gitignore +14 -0
  30. package/.spago/avar/v5.0.0/.tidyrc.json +10 -0
  31. package/.spago/bifunctors/v6.0.0/.gitignore +7 -0
  32. package/.spago/catenable-lists/v7.0.0/.gitignore +7 -0
  33. package/.spago/console/v6.0.0/.eslintrc.json +30 -0
  34. package/.spago/console/v6.0.0/.gitignore +9 -0
  35. package/.spago/const/v6.0.0/.gitignore +7 -0
  36. package/.spago/contravariant/v6.0.0/.gitignore +7 -0
  37. package/.spago/control/v6.0.0/.gitignore +7 -0
  38. package/.spago/datetime/v6.1.0/.eslintrc.json +26 -0
  39. package/.spago/datetime/v6.1.0/.gitignore +8 -0
  40. package/.spago/debug/v6.0.0/.eslintrc.json +36 -0
  41. package/.spago/debug/v6.0.0/.gitignore +8 -0
  42. package/.spago/distributive/v6.0.0/.gitignore +7 -0
  43. package/.spago/effect/v4.0.0/.eslintrc.json +26 -0
  44. package/.spago/effect/v4.0.0/.gitignore +8 -0
  45. package/.spago/either/v6.1.0/.gitignore +7 -0
  46. package/.spago/enums/v6.0.0/.gitignore +7 -0
  47. package/.spago/exceptions/v6.0.0/.eslintrc.json +26 -0
  48. package/.spago/exceptions/v6.0.0/.gitignore +8 -0
  49. package/.spago/exists/v6.0.0/.gitignore +7 -0
  50. package/.spago/filterable/v5.0.0/.gitignore +11 -0
  51. package/.spago/foldable-traversable/v6.0.0/.eslintrc.json +26 -0
  52. package/.spago/foldable-traversable/v6.0.0/.gitignore +8 -0
  53. package/.spago/foreign/v7.0.0/.eslintrc.json +26 -0
  54. package/.spago/foreign/v7.0.0/.gitignore +8 -0
  55. package/.spago/foreign-object/v4.0.0/.eslintrc.json +26 -0
  56. package/.spago/foreign-object/v4.0.0/.gitignore +8 -0
  57. package/.spago/fork/v6.0.0/.editorconfig +13 -0
  58. package/.spago/fork/v6.0.0/.gitignore +9 -0
  59. package/.spago/fork/v6.0.0/.tidyrc.json +10 -0
  60. package/.spago/form-urlencoded/v7.0.0/.editorconfig +13 -0
  61. package/.spago/form-urlencoded/v7.0.0/.gitignore +9 -0
  62. package/.spago/form-urlencoded/v7.0.0/.tidyrc.json +10 -0
  63. package/.spago/free/v7.0.0/.gitignore +8 -0
  64. package/.spago/functions/v6.0.0/.eslintrc.json +26 -0
  65. package/.spago/functions/v6.0.0/.gitignore +8 -0
  66. package/.spago/functors/v5.0.0/.gitignore +7 -0
  67. package/.spago/gen/v4.0.0/.gitignore +8 -0
  68. package/.spago/graphs/v8.0.0/.gitignore +7 -0
  69. package/.spago/http-methods/v6.0.0/.editorconfig +13 -0
  70. package/.spago/http-methods/v6.0.0/.gitignore +9 -0
  71. package/.spago/http-methods/v6.0.0/.tidyrc.json +10 -0
  72. package/.spago/identity/v6.0.0/.gitignore +7 -0
  73. package/.spago/integers/v6.0.0/.eslintrc.json +26 -0
  74. package/.spago/integers/v6.0.0/.gitignore +8 -0
  75. package/.spago/invariant/v6.0.0/.gitignore +7 -0
  76. package/.spago/js-date/v8.0.0/.editorconfig +13 -0
  77. package/.spago/js-date/v8.0.0/.eslintrc.json +29 -0
  78. package/.spago/js-date/v8.0.0/.gitignore +14 -0
  79. package/.spago/js-date/v8.0.0/.tidyrc.json +10 -0
  80. package/.spago/js-uri/v3.0.0/.eslintrc.json +30 -0
  81. package/.spago/js-uri/v3.0.0/.gitignore +14 -0
  82. package/.spago/js-uri/v3.0.0/.tidyrc.json +10 -0
  83. package/.spago/lazy/v6.0.0/.eslintrc.json +26 -0
  84. package/.spago/lazy/v6.0.0/.gitignore +8 -0
  85. package/.spago/lcg/v4.0.0/.gitignore +8 -0
  86. package/.spago/lists/v7.0.0/.gitignore +7 -0
  87. package/.spago/maybe/v6.0.0/.gitignore +7 -0
  88. package/.spago/media-types/v6.0.0/.editorconfig +13 -0
  89. package/.spago/media-types/v6.0.0/.gitignore +9 -0
  90. package/.spago/media-types/v6.0.0/.tidyrc.json +10 -0
  91. package/.spago/newtype/v5.0.0/.gitignore +7 -0
  92. package/.spago/node-buffer/v8.0.0/.eslintrc.json +26 -0
  93. package/.spago/node-buffer/v8.0.0/.gitignore +8 -0
  94. package/.spago/node-fs/v9.1.0/.eslintrc.json +29 -0
  95. package/.spago/node-fs/v9.1.0/.gitignore +9 -0
  96. package/.spago/node-http/v8.0.0/.eslintrc.json +29 -0
  97. package/.spago/node-http/v8.0.0/.gitignore +8 -0
  98. package/.spago/node-net/v4.0.0/.eslintrc.json +29 -0
  99. package/.spago/node-net/v4.0.0/.gitignore +8 -0
  100. package/.spago/node-path/v5.0.0/.eslintrc.json +26 -0
  101. package/.spago/node-path/v5.0.0/.gitignore +8 -0
  102. package/.spago/node-process/v10.0.0/.eslintrc.json +29 -0
  103. package/.spago/node-process/v10.0.0/.gitignore +8 -0
  104. package/.spago/node-process/v11.0.0/.eslintrc.json +29 -0
  105. package/.spago/node-process/v11.0.0/.gitignore +8 -0
  106. package/.spago/node-process/v11.1.0/.eslintrc.json +29 -0
  107. package/.spago/node-process/v11.1.0/.gitignore +8 -0
  108. package/.spago/node-process/v11.2.0/.eslintrc.json +29 -0
  109. package/.spago/node-process/v11.2.0/.gitignore +8 -0
  110. package/.spago/node-streams/v7.0.0/.eslintrc.json +29 -0
  111. package/.spago/node-streams/v7.0.0/.gitignore +8 -0
  112. package/.spago/node-url/v6.0.0/.eslintrc.json +26 -0
  113. package/.spago/node-url/v6.0.0/.gitignore +8 -0
  114. package/.spago/nonempty/v7.0.0/.gitignore +7 -0
  115. package/.spago/now/v6.0.0/.editorconfig +13 -0
  116. package/.spago/now/v6.0.0/.eslintrc.json +29 -0
  117. package/.spago/now/v6.0.0/.gitignore +14 -0
  118. package/.spago/now/v6.0.0/.tidyrc.json +10 -0
  119. package/.spago/nullable/v6.0.0/.editorconfig +13 -0
  120. package/.spago/nullable/v6.0.0/.eslintrc.json +29 -0
  121. package/.spago/nullable/v6.0.0/.gitignore +14 -0
  122. package/.spago/nullable/v6.0.0/.tidyrc.json +10 -0
  123. package/.spago/options/v7.0.0/.editorconfig +13 -0
  124. package/.spago/options/v7.0.0/.gitignore +9 -0
  125. package/.spago/options/v7.0.0/.tidyrc.json +10 -0
  126. package/.spago/optparse/v5.0.0/.gitignore +8 -0
  127. package/.spago/optparse/v5.0.0/.npmrc +1 -0
  128. package/.spago/optparse/v6.0.0/.gitignore +8 -0
  129. package/.spago/optparse/v6.0.0/.npmrc +1 -0
  130. package/.spago/ordered-collections/v3.0.0/.gitignore +8 -0
  131. package/.spago/orders/v6.0.0/.gitignore +7 -0
  132. package/.spago/parallel/v6.0.0/.gitignore +7 -0
  133. package/.spago/parsing/v10.0.0/.editorconfig +13 -0
  134. package/.spago/parsing/v10.0.0/.gitignore +10 -0
  135. package/.spago/parsing/v10.0.0/.tidyoperators +231 -0
  136. package/.spago/parsing/v10.0.0/.tidyrc.json +10 -0
  137. package/.spago/partial/v4.0.0/.eslintrc.json +26 -0
  138. package/.spago/partial/v4.0.0/.gitignore +8 -0
  139. package/.spago/posix-types/v6.0.0/.gitignore +7 -0
  140. package/.spago/prelude/v6.0.0/.eslintrc.json +26 -0
  141. package/.spago/prelude/v6.0.0/.gitignore +8 -0
  142. package/.spago/profunctor/v6.0.0/.gitignore +7 -0
  143. package/.spago/psci-support/v6.0.0/.eslintrc.json +28 -0
  144. package/.spago/psci-support/v6.0.0/.gitignore +8 -0
  145. package/.spago/quickcheck/v8.0.1/.eslintrc.json +26 -0
  146. package/.spago/quickcheck/v8.0.1/.gitignore +8 -0
  147. package/.spago/random/v6.0.0/.eslintrc.json +26 -0
  148. package/.spago/random/v6.0.0/.gitignore +8 -0
  149. package/.spago/record/v4.0.0/.eslintrc.json +26 -0
  150. package/.spago/record/v4.0.0/.gitignore +8 -0
  151. package/.spago/refs/v6.0.0/.eslintrc.json +26 -0
  152. package/.spago/refs/v6.0.0/.gitignore +8 -0
  153. package/.spago/st/v6.0.0/.eslintrc.json +26 -0
  154. package/.spago/st/v6.0.0/.gitignore +8 -0
  155. package/.spago/strings/v6.0.0/.eslintrc.json +26 -0
  156. package/.spago/strings/v6.0.0/.gitignore +8 -0
  157. package/.spago/tailrec/v6.0.0/.gitignore +7 -0
  158. package/.spago/transformers/v6.0.0/.gitignore +7 -0
  159. package/.spago/tuples/v7.0.0/.gitignore +7 -0
  160. package/.spago/type-equality/v4.0.1/.gitignore +7 -0
  161. package/.spago/typelevel-prelude/v7.0.0/.gitignore +8 -0
  162. package/.spago/unfoldable/v6.0.0/.eslintrc.json +26 -0
  163. package/.spago/unfoldable/v6.0.0/.gitignore +8 -0
  164. package/.spago/unicode/v6.0.0/.editorconfig +13 -0
  165. package/.spago/unicode/v6.0.0/.gitattributes +2 -0
  166. package/.spago/unicode/v6.0.0/.gitignore +19 -0
  167. package/.spago/unicode/v6.0.0/.tidyrc.json +10 -0
  168. package/.spago/unsafe-coerce/v6.0.0/.eslintrc.json +26 -0
  169. package/.spago/unsafe-coerce/v6.0.0/.gitignore +8 -0
  170. package/.spago/web-dom/v6.0.0/.eslintrc.json +29 -0
  171. package/.spago/web-dom/v6.0.0/.gitignore +9 -0
  172. package/.spago/web-events/v4.0.0/.eslintrc.json +29 -0
  173. package/.spago/web-events/v4.0.0/.gitignore +8 -0
  174. package/.spago/web-file/v4.0.0/.eslintrc.json +29 -0
  175. package/.spago/web-file/v4.0.0/.gitignore +8 -0
  176. package/.spago/web-html/v4.0.0/.eslintrc.json +29 -0
  177. package/.spago/web-html/v4.0.0/.gitignore +8 -0
  178. package/.spago/web-storage/v5.0.0/.eslintrc.json +29 -0
  179. package/.spago/web-storage/v5.0.0/.gitignore +8 -0
  180. package/.spago/web-xhr/v5.0.0/.eslintrc.json +29 -0
  181. package/.spago/web-xhr/v5.0.0/.gitignore +8 -0
  182. package/LICENSE +1 -1
  183. package/README.md +13 -7
  184. package/index.js +28285 -0
  185. package/package.json +30 -30
  186. package/dist/article/app.js +0 -40580
  187. package/dist/article/css/styles.css +0 -191
  188. package/dist/article/css/view-styles.css +0 -141
  189. package/dist/article/fluid/dataset/renewables-restricted.fld +0 -139
  190. package/dist/article/fluid/example/arithmetic.fld +0 -1
  191. package/dist/article/fluid/example/array.fld +0 -2
  192. package/dist/article/fluid/example/compose.fld +0 -2
  193. package/dist/article/fluid/example/desugar/list-comp-1.fld +0 -1
  194. package/dist/article/fluid/example/desugar/list-comp-10.fld +0 -1
  195. package/dist/article/fluid/example/desugar/list-comp-2.fld +0 -1
  196. package/dist/article/fluid/example/desugar/list-comp-3.fld +0 -1
  197. package/dist/article/fluid/example/desugar/list-comp-4.fld +0 -1
  198. package/dist/article/fluid/example/desugar/list-comp-5.fld +0 -1
  199. package/dist/article/fluid/example/desugar/list-comp-6.fld +0 -1
  200. package/dist/article/fluid/example/desugar/list-comp-7.fld +0 -1
  201. package/dist/article/fluid/example/desugar/list-comp-8.fld +0 -1
  202. package/dist/article/fluid/example/desugar/list-comp-9.fld +0 -1
  203. package/dist/article/fluid/example/desugar/list-enum.fld +0 -1
  204. package/dist/article/fluid/example/dicts.fld +0 -11
  205. package/dist/article/fluid/example/div-mod-quot-rem.fld +0 -4
  206. package/dist/article/fluid/example/factorial.fld +0 -6
  207. package/dist/article/fluid/example/filter.fld +0 -1
  208. package/dist/article/fluid/example/first-class-constr.fld +0 -1
  209. package/dist/article/fluid/example/flatten.fld +0 -12
  210. package/dist/article/fluid/example/foldr-sumSquares.fld +0 -1
  211. package/dist/article/fluid/example/graphics/background.fld +0 -7
  212. package/dist/article/fluid/example/graphics/grouped-bar-chart.fld +0 -9
  213. package/dist/article/fluid/example/graphics/line-chart.fld +0 -13
  214. package/dist/article/fluid/example/graphics/small-barchart.fld +0 -5
  215. package/dist/article/fluid/example/graphics/stacked-bar-chart.fld +0 -3
  216. package/dist/article/fluid/example/include-input-into-output.fld +0 -1
  217. package/dist/article/fluid/example/length.fld +0 -1
  218. package/dist/article/fluid/example/lexicalScoping.fld +0 -3
  219. package/dist/article/fluid/example/lib/some-constants.fld +0 -1
  220. package/dist/article/fluid/example/linked-inputs/energyscatter.fld +0 -24
  221. package/dist/article/fluid/example/linked-inputs/mini-energyscatter.fld +0 -30
  222. package/dist/article/fluid/example/linked-inputs/mini-non-renewables.fld +0 -3
  223. package/dist/article/fluid/example/linked-inputs/mini-renewables.fld +0 -6
  224. package/dist/article/fluid/example/linked-inputs/non-renewables.fld +0 -67
  225. package/dist/article/fluid/example/linked-inputs/renewables.fld +0 -301
  226. package/dist/article/fluid/example/linked-outputs/bar-chart-line-chart.expect.fld +0 -0
  227. package/dist/article/fluid/example/linked-outputs/bar-chart-line-chart.fld +0 -26
  228. package/dist/article/fluid/example/linked-outputs/convolution-data.fld +0 -5
  229. package/dist/article/fluid/example/linked-outputs/convolution.fld +0 -12
  230. package/dist/article/fluid/example/linked-outputs/line-chart.fld +0 -13
  231. package/dist/article/fluid/example/linked-outputs/moving-average-data.fld +0 -9
  232. package/dist/article/fluid/example/linked-outputs/moving-average.fld +0 -15
  233. package/dist/article/fluid/example/linked-outputs/pairs-data.fld +0 -1
  234. package/dist/article/fluid/example/linked-outputs/pairs.fld +0 -3
  235. package/dist/article/fluid/example/linked-outputs/renewables.fld +0 -100
  236. package/dist/article/fluid/example/linked-outputs/stacked-bar-chart-scatter-plot.fld +0 -38
  237. package/dist/article/fluid/example/lookup.fld +0 -15
  238. package/dist/article/fluid/example/map.fld +0 -1
  239. package/dist/article/fluid/example/mergeSort.fld +0 -22
  240. package/dist/article/fluid/example/normalise.fld +0 -3
  241. package/dist/article/fluid/example/nub.fld +0 -1
  242. package/dist/article/fluid/example/pattern-match.fld +0 -12
  243. package/dist/article/fluid/example/range.fld +0 -4
  244. package/dist/article/fluid/example/record-lookup.fld +0 -3
  245. package/dist/article/fluid/example/records.fld +0 -11
  246. package/dist/article/fluid/example/reverse.fld +0 -1
  247. package/dist/article/fluid/example/scratchpad.fld +0 -6
  248. package/dist/article/fluid/example/slicing/add.expect.fld +0 -1
  249. package/dist/article/fluid/example/slicing/add.fld +0 -1
  250. package/dist/article/fluid/example/slicing/array/array.expect.fld +0 -2
  251. package/dist/article/fluid/example/slicing/array/array.fld +0 -4
  252. package/dist/article/fluid/example/slicing/array/dims.expect.fld +0 -3
  253. package/dist/article/fluid/example/slicing/array/dims.fld +0 -3
  254. package/dist/article/fluid/example/slicing/array/lookup.expect.fld +0 -3
  255. package/dist/article/fluid/example/slicing/array/lookup.fld +0 -5
  256. package/dist/article/fluid/example/slicing/convolution/edgeDetect.expect.fld +0 -1
  257. package/dist/article/fluid/example/slicing/convolution/edgeDetect.fld +0 -1
  258. package/dist/article/fluid/example/slicing/convolution/emboss-wrap.fld +0 -1
  259. package/dist/article/fluid/example/slicing/convolution/emboss.expect.fld +0 -1
  260. package/dist/article/fluid/example/slicing/convolution/emboss.fld +0 -1
  261. package/dist/article/fluid/example/slicing/convolution/filter/edge-detect.fld +0 -5
  262. package/dist/article/fluid/example/slicing/convolution/filter/emboss.fld +0 -5
  263. package/dist/article/fluid/example/slicing/convolution/filter/gaussian.fld +0 -5
  264. package/dist/article/fluid/example/slicing/convolution/gaussian.expect.fld +0 -1
  265. package/dist/article/fluid/example/slicing/convolution/gaussian.fld +0 -1
  266. package/dist/article/fluid/example/slicing/convolution/test-image.fld +0 -7
  267. package/dist/article/fluid/example/slicing/dict/create.expect.fld +0 -1
  268. package/dist/article/fluid/example/slicing/dict/create.fld +0 -1
  269. package/dist/article/fluid/example/slicing/dict/difference.expect.fld +0 -3
  270. package/dist/article/fluid/example/slicing/dict/difference.fld +0 -3
  271. package/dist/article/fluid/example/slicing/dict/disjointUnion.expect.fld +0 -1
  272. package/dist/article/fluid/example/slicing/dict/disjointUnion.fld +0 -1
  273. package/dist/article/fluid/example/slicing/dict/foldl.expect.fld +0 -1
  274. package/dist/article/fluid/example/slicing/dict/foldl.fld +0 -1
  275. package/dist/article/fluid/example/slicing/dict/fromRecord.expect.fld +0 -2
  276. package/dist/article/fluid/example/slicing/dict/fromRecord.fld +0 -1
  277. package/dist/article/fluid/example/slicing/dict/get.expect.fld +0 -3
  278. package/dist/article/fluid/example/slicing/dict/get.fld +0 -2
  279. package/dist/article/fluid/example/slicing/dict/intersectionWith.expect.fld +0 -2
  280. package/dist/article/fluid/example/slicing/dict/intersectionWith.fld +0 -4
  281. package/dist/article/fluid/example/slicing/dict/map.expect.fld +0 -6
  282. package/dist/article/fluid/example/slicing/dict/map.fld +0 -5
  283. package/dist/article/fluid/example/slicing/divide.expect.fld +0 -1
  284. package/dist/article/fluid/example/slicing/divide.fld +0 -1
  285. package/dist/article/fluid/example/slicing/dtw/average-series.expect.fld +0 -8
  286. package/dist/article/fluid/example/slicing/dtw/average-series.fld +0 -8
  287. package/dist/article/fluid/example/slicing/dtw/compute-dtw.expect.fld +0 -6
  288. package/dist/article/fluid/example/slicing/dtw/compute-dtw.fld +0 -6
  289. package/dist/article/fluid/example/slicing/filter.expect.fld +0 -4
  290. package/dist/article/fluid/example/slicing/filter.fld +0 -6
  291. package/dist/article/fluid/example/slicing/intersperse-1.expect.fld +0 -4
  292. package/dist/article/fluid/example/slicing/intersperse-2.expect.fld +0 -4
  293. package/dist/article/fluid/example/slicing/intersperse.fld +0 -5
  294. package/dist/article/fluid/example/slicing/length.expect.fld +0 -1
  295. package/dist/article/fluid/example/slicing/length.fld +0 -1
  296. package/dist/article/fluid/example/slicing/linked-outputs/bar-chart-line-chart.expect.fld +0 -0
  297. package/dist/article/fluid/example/slicing/linked-outputs/bar-chart-line-chart.fld +0 -26
  298. package/dist/article/fluid/example/slicing/linked-outputs/renewables.fld +0 -100
  299. package/dist/article/fluid/example/slicing/linked-outputs/stacked-bar-scatter-plot.expect.fld +0 -0
  300. package/dist/article/fluid/example/slicing/linked-outputs/stacked-bar-scatter-plot.fld +0 -38
  301. package/dist/article/fluid/example/slicing/list-comp-1.expect.fld +0 -6
  302. package/dist/article/fluid/example/slicing/list-comp-2.expect.fld +0 -6
  303. package/dist/article/fluid/example/slicing/list-comp.fld +0 -8
  304. package/dist/article/fluid/example/slicing/lookup.expect.fld +0 -6
  305. package/dist/article/fluid/example/slicing/lookup.fld +0 -14
  306. package/dist/article/fluid/example/slicing/map.expect.fld +0 -1
  307. package/dist/article/fluid/example/slicing/map.fld +0 -1
  308. package/dist/article/fluid/example/slicing/matrix-update.expect.fld +0 -5
  309. package/dist/article/fluid/example/slicing/matrix-update.fld +0 -10
  310. package/dist/article/fluid/example/slicing/multiply.expect.fld +0 -1
  311. package/dist/article/fluid/example/slicing/multiply.fld +0 -1
  312. package/dist/article/fluid/example/slicing/nth.expect.fld +0 -1
  313. package/dist/article/fluid/example/slicing/nth.fld +0 -1
  314. package/dist/article/fluid/example/slicing/output-not-source.expect.fld +0 -2
  315. package/dist/article/fluid/example/slicing/output-not-source.fld +0 -1
  316. package/dist/article/fluid/example/slicing/section-5-example-1.expect.fld +0 -10
  317. package/dist/article/fluid/example/slicing/section-5-example-2.expect.fld +0 -10
  318. package/dist/article/fluid/example/slicing/section-5-example-3.expect.fld +0 -10
  319. package/dist/article/fluid/example/slicing/section-5-example.fld +0 -14
  320. package/dist/article/fluid/example/slicing/zeros-1.expect.fld +0 -3
  321. package/dist/article/fluid/example/slicing/zeros-2.expect.fld +0 -3
  322. package/dist/article/fluid/example/slicing/zeros.fld +0 -4
  323. package/dist/article/fluid/example/slicing/zipWith-1.expect.fld +0 -4
  324. package/dist/article/fluid/example/slicing/zipWith.fld +0 -4
  325. package/dist/article/fluid/example/text.fld +0 -27
  326. package/dist/article/fluid/lib/convolution.fld +0 -16
  327. package/dist/article/fluid/lib/dtw.fld +0 -47
  328. package/dist/article/fluid/lib/fnum.fld +0 -22
  329. package/dist/article/fluid/lib/graphics.fld +0 -221
  330. package/dist/article/fluid/lib/moving-average.fld +0 -35
  331. package/dist/article/fluid/lib/nombre.fld +0 -14
  332. package/dist/article/fluid/lib/prelude.fld +0 -246
  333. package/dist/article/index.html +0 -44
  334. package/fluid.js +0 -46
@@ -1,246 +0,0 @@
1
- -- "Num" throughout means (Int + Float).
2
-
3
- -- Bool -> Bool
4
- let and False y = False;
5
- and True y = y;
6
-
7
- -- Bool -> Bool
8
- let or True y = True;
9
- or False y = y;
10
-
11
- -- Bool -> Bool
12
- let not True = False;
13
- not False = True;
14
-
15
- -- Int -> Int -> Ordering
16
- let compare x y =
17
- if x > y
18
- then GT
19
- else if x < y
20
- then LT
21
- else EQ;
22
-
23
- -- Num -> Num
24
- let negate = (-) 0;
25
-
26
- -- Log of x in base y.
27
- -- Float -> Float -> Float
28
- let logBase x y = log y / log x;
29
-
30
- -- Float -> Float -> Float
31
- let ceilingToNearest n m =
32
- ceiling (n / m) * m;
33
-
34
- -- (b -> c) -> (a -> b) -> a -> c
35
- -- Want infix <<<
36
- let compose f g x = f (g x);
37
-
38
- -- ((a, b) -> c) -> a -> b -> c
39
- let curry f x y = f (x, y);
40
-
41
- -- (a -> b -> c) -> (a, b) -> c
42
- let uncurry f (x, y) = f x y;
43
-
44
- -- a -> b -> a
45
- let const x _ = x;
46
-
47
- -- (a -> b) -> (a, c) -> (b, c)
48
- let first f (a, c) = (f a, c);
49
-
50
- -- (a, b) -> b
51
- let snd (_, y) = y;
52
-
53
- -- (a -> b) -> (c, a) -> (c, b)
54
- let second f (c, a) = (c, f a);
55
-
56
- -- (a -> b -> c) -> b -> a -> c
57
- let flip f x y = f y x;
58
-
59
- -- (a, b) -> a
60
- let fst (x, _) = x;
61
-
62
- -- a -> a
63
- let id x = x;
64
-
65
- -- (a -> b) -> (a -> c) -> a -> (b, c)
66
- -- Want infix &&&
67
- let prod f g x = (f x, g x);
68
-
69
- -- (a, b) -> (b, a)
70
- let swap (a, b) = (b, a);
71
-
72
- -- List a -> a
73
- let head [] = error "Can't take head of empty list";
74
- head (x : _) = x;
75
-
76
- -- List a -> List a
77
- let tail [] = error "Can't take tail of empty list";
78
- tail (_ : xs) = xs;
79
-
80
- -- Int -> List Int -> Bool
81
- let elem x [] = False;
82
- elem x (x' : xs) = (x == x') `or` (elem x xs);
83
-
84
- -- (a -> Bool) -> List a -> List a
85
- let filter p [] = [];
86
- filter p (x : xs) =
87
- let ys = filter p xs in
88
- if p x then x : ys else ys;
89
-
90
- -- (a -> b -> a) -> a -> List b -> a
91
- let foldl op z [] = z;
92
- foldl op z (x : xs) = foldl op (op z x) xs;
93
-
94
- -- (a -> b -> a) -> List b -> a
95
- let foldl1 op (x : xs) = foldl op x xs;
96
-
97
- -- (a -> b -> b) -> b -> List a -> b
98
- let foldr op z [] = z;
99
- foldr op z (x : xs) = op x (foldr op z xs);
100
-
101
- -- (a -> b -> b) -> List a -> b
102
- let foldr1 op [x] = x;
103
- foldr1 op (x : y : xs) = op x (foldr1 op (y : xs));
104
-
105
- -- (a -> b -> a) -> a -> List b -> List a
106
- let scanl1 op z xs =
107
- let go x continue acc =
108
- let next = op acc x in
109
- next : continue next in
110
- foldr go (const []) xs z;
111
-
112
- -- (a -> b -> a) -> a -> List b -> List a
113
- let scanl op z xs =
114
- z : scanl1 op z xs;
115
-
116
- -- (a -> b) -> List a -> List b
117
- let map f [] = [];
118
- map f (x : xs) = f x : map f xs;
119
-
120
- -- (List a, List a) -> List a
121
- let append ([], ys) = ys;
122
- append (x : xs, ys) = x : append (xs, ys);
123
-
124
- -- List a -> List -> List a
125
- -- Want infix ++
126
- let concat2 [] ys = ys;
127
- concat2 (x : xs) ys = x : concat2 xs ys;
128
-
129
- -- List (List a) -> List a
130
- let concat = foldl concat2 [];
131
-
132
- -- (a -> List b) -> List a -> List b
133
- let concatMap f xs = concat (map f xs);
134
-
135
- -- List a -> a -> List a
136
- let intersperse [] _ = [];
137
- intersperse [x] _ = [x];
138
- intersperse (x : y : ys) sep = x : sep : intersperse (y : ys) sep;
139
-
140
- -- Int -> (a -> a) -> a -> List a
141
- let iterate n f z =
142
- if n == 0 then [] else z : map f (iterate (n - 1) f z);
143
-
144
- -- List Int -> Int
145
- let sum = foldr (+) 0;
146
-
147
- -- List a -> a
148
- let last [x] = x;
149
- last (x : y : ys) = last (y : ys);
150
-
151
- -- List a -> Int
152
- let length [] = 0;
153
- length (_ : xs) = 1 + length xs;
154
-
155
- -- List a -> List a
156
- let reverse [] = [];
157
- reverse (x : xs) = append (reverse xs, [x]);
158
-
159
- -- Int -> a -> List a
160
- let repeat = flip iterate id;
161
-
162
- -- Int -> List a -> List a
163
- let take n xs =
164
- if n <= 0
165
- then []
166
- else match xs as {
167
- [] -> [];
168
- x : xs -> x : take (n - 1) xs
169
- };
170
-
171
- -- Int -> List a -> List a
172
- let drop n xs =
173
- if n <= 0
174
- then xs
175
- else match xs as {
176
- [] -> [];
177
- _ : xs -> drop (n - 1) xs
178
- };
179
-
180
- -- Int -> List a -> List a
181
- let lastN n xs =
182
- foldl (compose const (drop 1)) xs (drop n xs);
183
-
184
- -- Expects non-negative integer as first argument and non-empty list as second argument.
185
- -- Int -> List a -> a
186
- let nth n (x : xs) =
187
- if n == 0 then x else nth (n - 1) xs;
188
-
189
- -- Matrix Int -> Int -> Int -> Int
190
- let nth2 i j xss =
191
- nth (j - 1) (nth (i - 1) xss);
192
-
193
- -- Partial; requires k to be in the map.
194
- -- Int -> List (Int, b) -> b
195
- let lookup k [] = error "Key not found in map";
196
- lookup k ((k', v) : kvs) =
197
- if k == k' then v else lookup k kvs;
198
-
199
- -- Int -> Int -> Int
200
- let max n m =
201
- if n > m then n else m;
202
-
203
- -- Int -> Int -> Int
204
- let min n m =
205
- if n < m then n else m;
206
-
207
- -- List Int -> Int
208
- let maximum = foldr1 max;
209
-
210
- -- List Int -> Int
211
- let minimum = foldr1 min;
212
-
213
- -- List (a, b) -> (List a, List b)
214
- let unzip [] = ([], []);
215
- unzip ((x, y) : zs) =
216
- let (xs, ys) = unzip zs in
217
- (x : xs, y : ys);
218
-
219
- -- (a -> b -> c) -> List a -> List b -> List c
220
- let zipWith op [] ys = [];
221
- zipWith op (x : xs) [] = [];
222
- zipWith op (x : xs) (y : ys) = op x y : zipWith op xs ys;
223
-
224
- -- List a -> List b -> List (a, b)
225
- let zip = zipWith (curry id);
226
-
227
- -- Int -> Int -> List Int
228
- let enumFromTo n m =
229
- if n <= m then n : [n + 1 .. m] else [];
230
-
231
- let range (m1, n1) (m2, n2) =
232
- [ (i1, i2) | i1 <- [m1 .. m2], i2 <- [n1 .. n2] ];
233
-
234
- -- Int -> Int -> Int
235
- let abs x y =
236
- if x - y < 0 then negate (x - y) else (x - y);
237
-
238
- -- Eq a => [a] -> [a]
239
- let nub xs =
240
- let nub' [] _ = [];
241
- nub' (x : xs) ys = if x `elem` ys then nub' xs ys else x : nub' xs (x : ys) in
242
- nub' xs [];
243
-
244
- -- Int -> Int -> [a] -> [a]
245
- let slice begin end xs =
246
- take (end - begin) (drop begin xs);
@@ -1,44 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
- <title>Fluid: Data-Linked Visualisations</title>
8
- <link href="/css/styles.css" rel="stylesheet" type="text/css">
9
- <link href="/css/view-styles.css" rel="stylesheet" type="text/css">
10
- <script src="https://use.fontawesome.com/1091715d00.js"></script>
11
- <script>
12
- // move to PureScript
13
- function toggle(id) {
14
- const elem = document.getElementById(id)
15
- if (elem.style.visibility == 'hidden')
16
- elem.style.visibility = 'visible'
17
- else
18
- elem.style.visibility = 'hidden'
19
- }
20
- </script>
21
- </head>
22
- <body class="standalone">
23
- <div class="grid-container double-size">
24
- <div></div>
25
- <div></div>
26
- <div></div>
27
- <div></div>
28
- <div></div>
29
- <div id="fig-input" class="flex-right-align data-pane"></div>
30
- <div>
31
- <div onclick="toggle('fig-input')"><span class="data-pane-button toggle-button">◀▶</span></div>
32
- </div>
33
- <div class="flex-left-align">
34
- <div id="fig"></div>
35
- </div>
36
- </div>
37
-
38
- <script src="app.js"></script>
39
- <script>
40
- // move to PureScript
41
- toggle('fig-input')
42
- </script>
43
- </body>
44
- </html>
package/fluid.js DELETED
@@ -1,46 +0,0 @@
1
- #!/usr/bin/env node
2
- const { program } = require('commander');
3
- const fs = require('node:fs');
4
- const webFS = require('fs').promises;
5
- const filenameRegex = /\w+\.yml/ //may need to expand character set
6
- const express = require('express');
7
- const serve = require('express-static');
8
-
9
- const app = express();
10
- const host = '127.0.0.1';
11
- const port = 8080;
12
-
13
- program.command('load')
14
- .arguments('<file>')
15
- .action(function(file)
16
- {
17
- if (file.match(filenameRegex) != null)
18
- {
19
- try
20
- {
21
- //read data stream if file is large
22
- //const data = fs.readFileSync(__dirname + "/" + file, 'utf8');
23
- const data = fs.readFileSync(process.cwd() + "/" + file, 'utf8'); //assuming file is located at command line's current directory
24
- console.log(data);
25
-
26
- app.use(serve(__dirname + '/dist/article'));
27
-
28
- const server = app.listen(port, host, function()
29
- {
30
- console.log("Server running: " + __dirname + '/dist/article\n' +
31
- `Access on http://${host}:${port}`
32
- );
33
- })
34
- }
35
- catch (err)
36
- {
37
- console.error(err);
38
- }
39
- }
40
- else
41
- {
42
- console.error("Invalid input file: Must be a .yml file.")
43
- }
44
- });
45
-
46
- program.parse()