←back to thread

113 points markusw | 2 comments | | HN request time: 0.442s | source

Hey everyone! I just released v1.0.0 of gomponents last week. It's an HTML component builder in pure Go, with a DSL-like HTML syntax. It's been 4 years in the making, and makes it really easy to build HTML in your web apps.
Show context
dgraph_advocate ◴[] No.41853631[source]
Awesome, now do it in Haskell!
replies(2): >>41874891 #>>41876641 #
1. kccqzy ◴[] No.41874891[source]
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.
replies(1): >>41877500 #
2. kreetx ◴[] No.41877500[source]
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/