[Haskell] ANNOUNCE: string-qq-0.0.2

唐鳳 audreyt at audreyt.org
Sat Jun 25 22:55:42 CEST 2011


Hi all,

I've just released string-qq 0.0.2 to Hackage:

    http://hackage.haskell.org/package/string-qq

The main interface is the "s" quasi-quoter:

    foo :: IsString a => a
    foo = [s|
This is a
multi-line
string!
|]

It allows simple multi-line strings of any IsString type (Text, String, ByteString, etc),
with no interpolation at all, except that the leading newline is trimmed and
"\r\n" sequences are converted to "\n".

It's compatible with both GHC6 and GHC7; for GHC6, write [$s|…|] instead of [s|…|].

Suggestions and feedback are most welcome. :-)

Cheers,
Audrey



More information about the Haskell mailing list