[Haskell-cafe] I hate constructing strings with ++

Johan Tibell johan.tibell at gmail.com
Sat Dec 20 12:31:59 EST 2008

On Sat, Dec 20, 2008 at 4:15 PM, Thomas Hartman <tphyahoo at gmail.com> wrote:
> I hate constructing strings with ++. Especially icky when you start
> dealing with escape characters and stuff.
> cabal install HStringTemplateHelpers
> .....
> import Text.StringTemplate.Helpers
> putStrLn $ render1 [("name",name)] "Why, hello, $name$"

I once wrote a simple library for "classical" $-substitution. I plan
to upgrade it to use Data.Text (efficient bytestring like
representation for Unicode strings) whenever that's release.




More information about the Haskell-Cafe mailing list