r/purescript • u/mstksg • May 27 '20
Used Purescript to put together a COVID-19 data aggregator/animotor/analyzer
https://coronavirus.jle.im
33
Upvotes
r/purescript • u/mstksg • May 27 '20
10
u/mstksg May 27 '20
Put this together using Halogen, FFI d3.js to render the actual plots. But all of the data processing and analyzing is done in purescript :D (except for some bisection search intersection code that I borrowed in javascript).
If you peek into the codebase (https://github.com/mstksg/corona-charts), you'll see that a lot of the code does try to emulate dependently-typed programming to get the type-safe transformation chains to be statically enforced. While not perfect, I'm surprised how much of a pleasure it was to use purescript alongside dependently typed programming principles.