[Haskell] ANNOUNCE: string-qq-0.0.2

唐鳳 audreyt at audreyt.org
Tue Jun 28 14:06:05 CEST 2011


Jean-Marie Gaillourdet 於 2011/6/28 下午4:57 寫道:
> Hi Audrey,
> 
> are you aware that Haskell already supports multi-line strings?
> 
> foo = "This is a\
>       \multi-line\
>       \string!"

Hi Jean-Marie,

Yeah, I am aware of that, I wrote a 381-lines multi-lines strings once… :-)

    https://github.com/audreyt/Pugs.hs/blob/master/Pugs/src/Pugs/Prim.hs#L1863

though as Ivan++ remarked, the extra "\n" is quite cumbersome, and so string-qq just makes it slightly easier to copy-paste multi-line string sections.

Cheers,
Audrey


More information about the Haskell mailing list