[Haskell-cafe] multi-line strings (Was: Hackage on Linux)

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sat Aug 28 07:11:26 EDT 2010


On 28 August 2010 20:55, Joachim Breitner <mail at joachim-breitner.de> wrote:
> Hi,
>
> Am Samstag, den 28.08.2010, 08:18 +1000 schrieb Ivan Lazar Miljenovic:
>> On 28 August 2010 00:02, Felipe Lessa <felipe.lessa at gmail.com> wrote:
>> > On 8/27/10, Ivan Lazar Miljenovic <ivan.miljenovic at gmail.com> wrote:
>> >> Admittedly, Haskell has no multi-line
>> >> String support which would make defining something like the
>> >> "Description" field harder...
>> >
>> > Quick correction: Haskell *does* have multi-line strings. For example:
>> >
>> >    "This is a\
>> >    \ nice string"
>>
>> I meant in the sense of Python, etc. where you didn't have to insert
>> newline characters, etc. in.
>
> A similar problem is solved by
> http://github.com/jgm/hsb2hs
> which might be useful if you need to embed larger pieces of text.

Huh, very nice; thanks for the link.

Unfortunately, it doesn't look like John has released a version on
Hackage yet :(

Then again, the first commit on github was the beginning of this month...

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list