
20 Dec
2008
20 Dec
'08
10:16 a.m.
Correction:
name = "Bill" import Text.StringTemplate.Helpers putStrLn $ render1 [("name",name)] "Why, hello, $name$"
2008/12/20 Thomas Hartman
I hate constructing strings with ++. Especially icky when you start dealing with escape character and stuff.
cabal install HStringTemplateHelpers
.....
import Text.StringTemplate.Helpers putStrLn $ render1 [("name",name)] "Why, hello, $name$"
just thinkin out loud :)
(originally at http://www.reddit.com/r/programming/comments/7khkd/the_fun_of_programming_a_...)