Hacker News new | ask | show | jobs
by dgraph_advocate 616 days ago
Awesome, now do it in Haskell!
2 comments

There are at least two generations of libraries doing that in Haskell. There was blaze-html and then lucid afterwards to fix some monad laws.
There 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/

I wrote the "Go is my hammer and everything is a nail" post circulating a while back, so unfortunately I can't do that. :D