@explorable-viz/fluid 0.0.23 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
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,191 +0,0 @@
1
- @charset "UTF-8";
2
- @font-face {
3
- font-family: "Fira Code";
4
- src: url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
5
- }
6
-
7
- .glowing, a {
8
- transition: all .25s;
9
- }
10
-
11
- a:hover {
12
- text-shadow: 0 0 2px #FFF, 0 0 5px #A0A0FF, 0 0 7px #8080A0;
13
- }
14
-
15
- .nowrap {
16
- white-space: nowrap;
17
- }
18
-
19
- code {
20
- font-size: 11pt;
21
- }
22
-
23
- body {
24
- font-size: 11pt;
25
- font-family: "Roboto", sans-serif;
26
- font-weight: 300;
27
- line-height: 1.25;
28
- padding: 0;
29
- margin: 0;
30
- background-color: #FFFFFF; /* #181818; */
31
- color: #404040;
32
- margin-bottom: 10em;
33
- }
34
-
35
- .center {
36
- height: 100%;
37
- }
38
-
39
- .align-right {
40
- text-align: right;
41
- }
42
-
43
- .title {
44
- color: darkblue;
45
- }
46
-
47
- h3 {
48
- font-family: "Roboto", sans-serif;
49
- font-weight: 600;
50
- margin-top: 10pt;
51
- margin-bottom: 0;
52
- font-size: '24px'
53
- }
54
-
55
- h4 {
56
- margin-top: 10pt;
57
- margin-block-start: 1em;
58
- margin-bottom: 0;
59
- }
60
-
61
- .glowing {
62
- transition-timing-function: ease-out
63
- }
64
-
65
- a {
66
- text-decoration: none;
67
- color: inherit;
68
- transition-timing-function: ease-out
69
- }
70
-
71
- a.not_decorated,
72
- a:hover {
73
- text-decoration: none;
74
- }
75
-
76
- ul {
77
- padding-left: 0
78
- }
79
-
80
- li {
81
- margin-bottom: 1ex
82
- }
83
-
84
- li:last-child {
85
- margin-bottom: 0
86
- }
87
-
88
- table {
89
- margin: 4mm;
90
- }
91
-
92
- .table-caption {
93
- text-align: left;
94
- }
95
-
96
- th {
97
- font-size: 11px;
98
- text-align: left;
99
- border-bottom: 'thin solid';
100
- }
101
-
102
- td {
103
- font-size: 11px;
104
- }
105
-
106
- td:nth-child(1) {
107
- color: lightgray;
108
- }
109
-
110
- nav ul {
111
- list-style: none;
112
- }
113
-
114
- nav ul li {
115
- float: left;
116
- overflow: hidden;
117
- }
118
-
119
- nav ul li a {
120
- display: block;
121
- width: 100%;
122
- text-align: left;
123
- padding-right: 8px;
124
- text-decoration: none;
125
- }
126
-
127
- nav ul li a.active-page {
128
- text-shadow: 0 0 2px #FFF, 0 0 5px #A0A0FF, 0 0 7px #8080A0;
129
- }
130
-
131
- .cm-line {
132
- font-family: 'Fira Code';
133
- font-size: 8pt;
134
- }
135
-
136
- .grid-container {
137
- display: grid;
138
- width: 100%;
139
- grid-template-columns: 10px 47.5% fit-content(10px) 47.5%;
140
- }
141
-
142
- .flex-left-align {
143
- display: flex;
144
- flex-direction: column;
145
- align-items: start;
146
- }
147
-
148
- .flex-right-align {
149
- display: flex;
150
- flex-direction: column;
151
- align-items: flex-end;
152
- }
153
-
154
- .flex-bottom-align {
155
- display: flex;
156
- flex-direction: row;
157
- align-items: flex-end;
158
- }
159
-
160
- .data-pane-button {
161
- font-size: 9pt;
162
- }
163
-
164
- .toggle-button {
165
- color: #CCCCCC;
166
- user-select: none;
167
- }
168
-
169
- .toggle-button:hover {
170
- color: #999999;
171
- }
172
-
173
- .data-pane {
174
- background-color: #F5F5F5;
175
- }
176
-
177
- /* Standalone figures have hardcoded zoom for presentation purposes. */
178
- .double-size {
179
- zoom: 1.8;
180
- }
181
-
182
- body.standalone {
183
- height: 100%;
184
- display: grid; /* outer grid for vertical centering of inner */
185
- place-items: center;
186
- }
187
-
188
- /* Needed for contained height specifications to work */
189
- html {
190
- height: 100%;
191
- }
@@ -1,141 +0,0 @@
1
- table {
2
- border-collapse: collapse;
3
- border-spacing: 0px;
4
- }
5
-
6
- thead {
7
- border-top: 0.5px solid lightgray;
8
- }
9
-
10
- .legend-box {
11
- stroke: lightgray;
12
- stroke-width: 0.5px;
13
- fill: none;
14
- }
15
-
16
- .title-text {
17
- fill: Black;
18
- font-size: 9pt;
19
- font-family: "Roboto", sans-serif;
20
- }
21
-
22
- .table-row {
23
- display: table-row;
24
- }
25
-
26
- .table-cell {
27
- border-radius: 2px;
28
- background-color: White;
29
- border-left: 2px solid white;
30
- }
31
-
32
- .table-cell.selected-primary-persistent {
33
- background-color: #93E9BE;
34
- }
35
-
36
- .table-cell.selected-primary-transient {
37
- border-left: 2px solid blue;
38
- }
39
-
40
- .table-cell.selected-secondary-persistent {
41
- background-color: rgb(226, 226, 226);
42
- }
43
-
44
- .table-cell.selected-secondary-transient {
45
- border-left: 2px solid lightblue;
46
- }
47
-
48
- .linked-text {
49
- border-radius: 0px;
50
- background-color: White;
51
- border-bottom-style: solid;
52
- border-bottom-color: white;
53
- border-bottom-width: 1px;
54
- display: inline;
55
- }
56
-
57
- .linked-text.selected-primary-persistent {
58
- background-color: #93E9BE;
59
- }
60
-
61
- .linked-text.selected-primary-transient {
62
- border-bottom-color: blue;
63
- }
64
-
65
- .linked-text.selected-secondary-persistent {
66
- background-color: rgb(226, 226, 226);
67
- }
68
-
69
- .linked-text.selected-secondary-transient {
70
- border-bottom-color: lightblue;
71
- }
72
-
73
- .table-row.hidden {
74
- visibility: collapse;
75
- }
76
-
77
- .matrix-cell {
78
- stroke: DarkGray;
79
- fill: White;
80
- }
81
-
82
- .matrix-cell.selected-primary-persistent {
83
- fill: LightGreen;
84
- }
85
-
86
- .matrix-cell.selected-secondary-persistent {
87
- fill: rgb(214, 240, 214)
88
- }
89
-
90
- .matrix-cell.selected-primary-transient {
91
- }
92
-
93
- .matrix-cell.selected-secondary-transient {
94
- }
95
-
96
- .matrix-cell-text {
97
- font-size: 10pt;
98
- font-family: "Roboto", sans-serif;
99
- color: rgb(205, 205, 205)
100
- }
101
-
102
- .matrix-cell-text.selected-primary-persistent {
103
- font-weight: 400;
104
- color: darkgreen
105
- }
106
-
107
- .matrix-cell-text.selected-secondary-persistent {
108
- color: green
109
- }
110
-
111
- .matrix-cell-text.selected-primary-transient {
112
- font-weight: 400;
113
- color: blue
114
- }
115
-
116
- .matrix-cell-text.selected-secondary-transient {
117
- color: royalblue
118
- }
119
-
120
- .scatterplot-point {
121
- fill: white;
122
- stroke: black;
123
- }
124
-
125
- .scatterplot-point.selected-primary-persistent {
126
- fill: LightGreen;
127
- stroke: teal;
128
- }
129
-
130
- .scatterplot-point.selected-primary-transient {
131
- stroke: blue;
132
- stroke-width: 1;
133
- }
134
-
135
- .scatterplot-point.selected-secondary-persistent {
136
- fill: rgb(226, 226, 226);
137
- }
138
-
139
- .scatterplot-point.selected-secondary-transient {
140
- stroke-width: 1;
141
- }
@@ -1,139 +0,0 @@
1
- -- typedef Year = Num
2
- -- typedef Country = Str
3
- -- typedef EnergyType = Str
4
- -- typedef Output = Num
5
- -- typedef CountryData = List (EnergyType, Output)
6
- -- typedef AnnualData = List (Country, CountryData)
7
- -- typedef Data = List (Year, AnnualData)
8
- -- The original dataset sometimes has '~0' instead of '0'.
9
-
10
- -- Including only 3 countries here. Also, have reduced the Hydro value for China 2015 from 296 to 96 (ouch)
11
- -- to make the charts fit nicely into my grant proposal. Fix this once proposal submitted!
12
- -- https://www.ren21.net/wp-content/uploads/2019/05/GSR2014_Full-Report_English.pdf
13
- [
14
- (2013, [
15
- ("China", [
16
- ("Bio", 6.2),
17
- ("Hydro", 260),
18
- ("Solar", 19.9),
19
- ("Wind", 91)
20
- ]),
21
- ("USA", [
22
- ("Bio", 15.8),
23
- ("Hydro", 78),
24
- ("Solar", 12.1),
25
- ("Wind", 61)
26
- ]),
27
- ("Germany", [
28
- ("Bio", 8.1),
29
- ("Hydro", 5.6),
30
- ("Solar", 36),
31
- ("Wind", 34)
32
- ])
33
- ]),
34
- -- https://www.ren21.net/wp-content/uploads/2019/05/GSR2015_Full-Report_English.pdf
35
- (2014, [
36
- ("China", [
37
- ("Bio", 10),
38
- ("Hydro", 280),
39
- ("Solar", 28),
40
- ("Wind", 115)
41
- ]),
42
- ("USA", [
43
- ("Bio", 16.1),
44
- ("Hydro", 79),
45
- ("Solar", 18),
46
- ("Wind", 66)
47
- ]),
48
- ("Germany", [
49
- ("Bio", 8.8),
50
- ("Hydro", 5.6),
51
- ("Solar", 38),
52
- ("Wind", 39)
53
- ])
54
- ]),
55
- -- https://www.ren21.net/gsr-2016/00-Reference-Tables.php
56
- (2015, [
57
- ("China", [
58
- ("Bio", 10.3),
59
- ("Hydro", 96),
60
- ("Solar", 44),
61
- ("Wind", 145)
62
- ]),
63
- ("USA", [
64
- ("Bio", 16.7),
65
- ("Hydro", 80),
66
- ("Solar", 26),
67
- ("Wind", 74)
68
- ]),
69
- ("Germany", [
70
- ("Bio", 7.1),
71
- ("Hydro", 5.6),
72
- ("Solar", 40),
73
- ("Wind", 45)
74
- ])
75
- ]),
76
- -- https://www.ren21.net/gsr-2017/pages/tables/tables/#table-R2
77
- (2016, [
78
- ("China", [
79
- ("Bio", 12),
80
- ("Hydro", 305),
81
- ("Solar", 77),
82
- ("Wind", 169)
83
- ]),
84
- ("USA", [
85
- ("Bio", 16.8),
86
- ("Hydro", 80),
87
- ("Solar", 41),
88
- ("Wind", 82)
89
- ]),
90
- ("Germany", [
91
- ("Bio", 7.6),
92
- ("Hydro", 5.6),
93
- ("Solar", 41),
94
- ("Wind", 50)
95
- ])
96
- ]),
97
- -- https://www.ren21.net/gsr-2018/pages/tables/tables/#Table_R2
98
- (2017, [
99
- ("China", [
100
- ("Bio", 14.9),
101
- ("Hydro", 313),
102
- ("Solar", 131),
103
- ("Wind", 188)
104
- ]),
105
- ("USA", [
106
- ("Bio", 16.7),
107
- ("Hydro", 80),
108
- ("Solar", 51),
109
- ("Wind", 89)
110
- ]),
111
- ("Germany", [
112
- ("Bio", 8),
113
- ("Hydro", 5.6),
114
- ("Solar", 42),
115
- ("Wind", 56)
116
- ])
117
- ]),
118
- -- https://www.ren21.net/gsr-2019/tables/table_02/table_02/
119
- (2018, [
120
- ("China", [
121
- ("Bio", 17.8),
122
- ("Hydro", 322),
123
- ("Solar", 176),
124
- ("Wind", 210)
125
- ]),
126
- ("USA", [
127
- ("Bio", 16.2),
128
- ("Hydro", 80),
129
- ("Solar", 62),
130
- ("Wind", 96)
131
- ]),
132
- ("Germany", [
133
- ("Bio", 8.4),
134
- ("Hydro", 5.6),
135
- ("Solar", 45),
136
- ("Wind", 59)
137
- ])
138
- ])
139
- ]
@@ -1 +0,0 @@
1
- (1 + 5) * ((let x = 2; y = 8 in x * y) - (let y = 3 in y * y))
@@ -1,2 +0,0 @@
1
- let xs = [| i * j | (i, j) in (3, 3) |]
2
- in (xs ! (1, 1), dims xs)
@@ -1,2 +0,0 @@
1
- let incr = (+) 1 in
2
- (compose incr incr) 3
@@ -1 +0,0 @@
1
- [ x + y | x <- [5, 4, 3], y <- [9, 7, 5] ]
@@ -1 +0,0 @@
1
- [ x | [x] <- [[], [4, 6]] ]
@@ -1 +0,0 @@
1
- [ z | x <- [5, 4, 3], y <- [9, 7, 5], let z = x + y, c <- [9, 7, 5] ]
@@ -1 +0,0 @@
1
- [ z | x <- [5, 4, 3], y <- [9, 7, 5], let z = x + y, z < 10 ]
@@ -1 +0,0 @@
1
- [ x | x : xs <- [[5], [4], [3], []] ]
@@ -1 +0,0 @@
1
- [ z | x <- [5, 4, 3], let z = x ]
@@ -1 +0,0 @@
1
- [ z | let z = 5 ]
@@ -1 +0,0 @@
1
- [ [] | [] <- [[5], [4], [3], []] ]
@@ -1 +0,0 @@
1
- [ x | [x] <- [[5], [4], [3], []] ]
@@ -1 +0,0 @@
1
- [ x + y | [x, y] <- [[5], [4, 6], [3], [], [9, 10]] ]
@@ -1,11 +0,0 @@
1
- let d = {||};
2
- e = {| "a" := 5, "a" ++ "b" := 6 |};
3
- f = {| "ab" := 12 |}
4
- in {
5
- d: d,
6
- e: e,
7
- e_ab: dict_get "ab" e,
8
- f: dict_map ((+) 1) e,
9
- g: dict_difference e f,
10
- h: dict_fromRecord {fst: 4, snd: [6, 7]}
11
- }
@@ -1,4 +0,0 @@
1
- [[5 `div` 3, 5 `div` -3, -5 `div` 3, -5 `div` -3],
2
- [5 `mod` 3, 5 `mod` -3, -5 `mod` 3, -5 `mod` -3],
3
- [5 `quot` 3, 5 `quot` -3, -5 `quot` 3, -5 `quot` -3],
4
- [5 `rem` 3, 5 `rem` -3, -5 `rem` 3, -5 `rem` -3]]
@@ -1,6 +0,0 @@
1
- let fact x =
2
- if x == 0
3
- then 1
4
- else x * fact (x - 1)
5
- in
6
- fact 8
@@ -1 +0,0 @@
1
- filter ((<) 5) [8, 4, 7, 3]
@@ -1 +0,0 @@
1
- zipWith (:) [10, 12, 20] [[], [], [], [], []]
@@ -1,12 +0,0 @@
1
- let
2
- flatten Empty = [];
3
- flatten (NonEmpty t1 (key, val) t2) =
4
- concat2 (flatten t1) ((key, val) : flatten t2)
5
- in
6
- flatten
7
- (NonEmpty
8
- (NonEmpty Empty (3, "simon") Empty)
9
- (4, "john")
10
- (NonEmpty (NonEmpty Empty (6, "sarah") Empty) (7, "claire") Empty)
11
- )
12
-
@@ -1 +0,0 @@
1
- foldr (fun x y -> x * x + y * y) 0 [6, 3, 2]
@@ -1,7 +0,0 @@
1
- let rect = Rect 0 0 1 3 "red";
2
- g = Group [Viewport 0 0 1 3 "white" 0 (Scale 1 1) (Translate 0 0) rect];
3
- w = 1.0;
4
- m = 0.25;
5
- x_scale = max (w - 2 * m) 0 / w;
6
- translate = Translate (m / x_scale) 0
7
- in Viewport 0 0 w 3 "gray" 0 (Scale x_scale 1) translate g
@@ -1,9 +0,0 @@
1
- let year = 2015;
2
- -- List (Country, List (EnergyType, Output)) -> List (Country, List (EnergyType, Output))
3
- let exclude countries yearData =
4
- flip map yearData (second (filter (fun (country, countryData) -> not (elem country countries))))
5
- in caption ("Renewables (GW) by country and energy type, " ++ numToStr year)
6
- (groupedBarChart True colours1 0.2
7
- (exclude
8
- [] -- ["Geothermal", "Ocean", "CSP"]
9
- (lookup year data)))
@@ -1,13 +0,0 @@
1
- let year1 = head data;
2
- -- List (EnergyType, Output) -> List (EnergyType, Output)
3
- let addTotal kvs =
4
- ("Total", sum (map snd kvs)) : kvs;
5
- -- Country -> List (Year, List (EnergyType, Output))
6
- let countryData country =
7
- map (second (compose addTotal (lookup country))) data in
8
- -- List Country
9
- (fun country ->
10
- caption country
11
- (lineChart True ("black" : colours1) (fst year1)
12
- (countryData country)))
13
- "China"
@@ -1,5 +0,0 @@
1
- let countryData = [ { x: "USA", bars: [ { y: "output", z: 196.7 } ] } ]
2
- in BarChart {
3
- caption: "Total output by country",
4
- data: countryData
5
- }
@@ -1,3 +0,0 @@
1
- let year = 2015 in
2
- caption ("Total renewables (GW) by country, " ++ numToStr year)
3
- (stackedBarChart True colours1 0.2 (lookup year data))
@@ -1 +0,0 @@
1
- length [2, 3]
@@ -1,3 +0,0 @@
1
- let decr = let x = 2 in flip (-) x;
2
- x = 8 in
3
- numToStr (decr x)
@@ -1 +0,0 @@
1
- let x = 1;
@@ -1,24 +0,0 @@
1
- let isCountry name x = name == x.country;
2
- isYear year x = year == x.year;
3
-
4
- let plot year countries =
5
- let rens = filter (isYear year) renewables;
6
- nonRens = filter (isYear year) nonRenewables;
7
- let plotCountry country =
8
- let rens' = filter (isCountry country) rens;
9
- rensOut = sum (map (fun x -> x.output) rens');
10
- rensCap = sum (map (fun x -> x.capacity) rens');
11
- x = head (filter (isCountry country) nonRens);
12
- nonRensCap = x.nuclearCap + x.petrolCap + x.gasCap + x.coalCap
13
- in {
14
- x: rensCap / (rensCap + nonRensCap),
15
- y: (rensOut + x.nuclearOut) / (rensCap + x.nuclearCap)
16
- }
17
- in map plotCountry countries
18
-
19
- in ScatterPlot {
20
- caption: "Clean energy efficiency vs. proportion of renewable energy capacity",
21
- data: plot 2018 [ "BRA", "CHN", "DEU", "FRA", "EGY", "IND", "JPN", "MEX", "NGA", "USA" ],
22
- xlabel: "Renewables/TotalEnergyCap",
23
- ylabel: "Clean Capacity Factor"
24
- }
@@ -1,30 +0,0 @@
1
- let sumNonRenewables x = x.nuclearCap + x.petrolCap + x.gasCap + x.coalCap;
2
- let country_check name x = name == x.country;
3
- let year_check year x = year == x.year;
4
-
5
- let energy year c_names =
6
- let rens2018 = filter (year_check year) renewables;
7
- let nonrens2018 = filter (year_check year) nonRenewables;
8
- let energy_per_country c_name =
9
- let filteredRen = filter (country_check c_name) rens2018;
10
- let non_ren_x = head (filter (country_check c_name) nonrens2018);
11
- let rensOut = sum (map (fun x = x.output) filteredRen);
12
- let rensCap = sum (map (fun x = x.capacity) filteredRen);
13
- let nonRensCap = sumNonRenewables non_ren_x
14
- in {
15
- name: c_name,
16
- totalCap: rensCap + nonRensCap,
17
- nonRenewables: nonRensCap,
18
- renCapFactor: (rensOut + non_ren_x.nuclearOut) / (rensCap + non_ren_x.nuclearCap)
19
- }
20
- in
21
- map energy_per_country c_names
22
- in ScatterPlot {
23
- caption: "Clean energy efficiency against proportion of renewable energy cap",
24
- data: [{
25
- x: country.nonRenewables / country.totalCap,
26
- y: country.renCapFactor
27
- }| country <- energy 2018 ["USA"]],
28
- xlabel: "Renewables/TotalEnergyCap",
29
- ylabel: "Clean Capacity Factor"
30
- }
@@ -1,3 +0,0 @@
1
- [
2
- { country: "USA", year: 2018, nuclearOut: 807.08, nuclearCap: 871.01, gasOut: 1469.13, gasCap: 4431.51, coalOut: 1149.49, coalCap: 2293.89, petrolOut: 42.68, petrolCap: 304.67}
3
- ]