Toy web rendering engine in haskell