I’m re-explaining the “Data Types a la Carte” paper in my learning repo. I’m also trying to teach (and learn by doing so) how to use VariantF and ultimately purescript-run to solve its problem.
Having read xgrommx’s code, which removes ValueF as a data type and reduces it to a smart constructor via pure…
…I’ve written this code:
Unfortunately, I’m not sure how to evaluate (add (value 1) (value 2)) to 3.