Correction:
> name = "Bill"
> import Text.StringTemplate.Helpers
> putStrLn $ render1 [("name",name)] "Why, hello, $name$"
2008/12/20 Thomas Hartman <[email protected]>:
> 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
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe