3 ms·
Awesome, now do it in Haskell!
by dgraph_advocate 2y ago
Awesome, now do it in Haskell!
- kccqzy 2y agoThere are at least two generations of libraries doing that in Haskell. There was blaze-html and then lucid afterwards to fix some monad laws.
- kreetx 2y agoThere was also was WASH[1] way before blaze. Given the minimal syntactic overhead and the do-syntax overload/Monad type class, Haskell is a great language to do these embedded DSLs in. [1] http://www2.informatik.uni-freiburg.de/~thiemann/WASH/ http://www2.informatik.uni-freiburg.de/~thiemann/WASH/
- markusw 2y agoI wrote the "Go is my hammer and everything is a nail" post circulating a while back, so unfortunately I can't do that. :D