Correction: > name = "Bill" > import Text.StringTemplate.Helpers > putStrLn $ render1 [("name",name)] "Why, hello, $name$"
2008/12/20 Thomas Hartman <tphya...@gmail.com>: > 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_collection_of_haskell/p6iP) > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe