Re: [Haskell-cafe] multiline strings in haskell?

2006-01-12 Thread Henning Thielemann
On Wed, 11 Jan 2006, Michael Vanier wrote: Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to generate web pages and having multi-line strings would be very useful. Do you mean unlines [first line,

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-12 Thread Jason Dagit
On Jan 12, 2006, at 1:34 AM, Henning Thielemann wrote: On Wed, 11 Jan 2006, Michael Vanier wrote: Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to generate web pages and having multi-line strings

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-12 Thread Henning Thielemann
On Thu, 12 Jan 2006, Jason Dagit wrote: On Jan 12, 2006, at 1:34 AM, Henning Thielemann wrote: On Wed, 11 Jan 2006, Michael Vanier wrote: Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-12 Thread Sebastian Sylvan
On 1/12/06, Henning Thielemann [EMAIL PROTECTED] wrote: On Thu, 12 Jan 2006, Jason Dagit wrote: On Jan 12, 2006, at 1:34 AM, Henning Thielemann wrote: On Wed, 11 Jan 2006, Michael Vanier wrote: Is there any support for multi-line string literals in Haskell? I've done a web

[Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Michael Vanier
Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to generate web pages and having multi-line strings would be very useful. Mike ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Michael Vanier
Yes, just like that ;-) Thanks! Now if somebody has a string interpolation library, I'd be a pretty happy camper ;-) Mike mvanier: Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to generate web

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Donald Bruce Stewart
Oh, like this (by Stefan Wehr): http://www.cse.unsw.edu.au/~dons/code/icfp05/tests/unit-tests/VariableExpansion.hs $ ghci -fth VariableExpansion.hs *VariableExpansion let x = 7 in $( expand ${x} ) 7 *VariableExpansion let url = http://www.google.com; *VariableExpansion $( expand Here is

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Michael Vanier
Excellent! Thanks. Mike Donald Bruce Stewart wrote: Oh, like this (by Stefan Wehr): http://www.cse.unsw.edu.au/~dons/code/icfp05/tests/unit-tests/VariableExpansion.hs $ ghci -fth VariableExpansion.hs *VariableExpansion let x = 7 in $( expand ${x} ) 7 *VariableExpansion let url =