Ben Millwood wrote:
> I once spent some time and energy making [foo| bar baz |\] quux |] do
> the right thing for a quasiquoter I implemented, only to discover that
> GHC already supports [foo| bar baz \|] quux |]. So yes, you can escape
> it.
Wow, that actually works.
That is very surprising, co
On Tue, 28 Jun 2011 07:13:19 -0700
Dave Bayer wrote:
> Part of the dominance of scripting languages is clean support for
> heredocs. So much of every arena of life comes down to getting "It's
> not about me!" I love Haskell but it doesn't get this. Imagine a
> document that's nominally Haskell, b
2011/6/28 Steffen Schuldenzucker :
> Btw., does TH parse this correctly? (If I was TH, I would not):
>
>> myPHPCode = [s|
>> > $description = "Use the quasiquoter like this: [s|some text|]";
>> print $description."\n";
>> ?>
>> |]
>
> (the tricky part is "|]" occurring in the quoted text)
>
> Can w
Steffen Schuldenzucker wrote:
>> * "Embed Haskell into some other language" is solved by Literate Haskell
>> * "Embed some other language into Haskell" is solved by heredocs
Dave Bayer wrote:
> Nice pairing. I wrote my own literate preprocessor, which GHC gracefully
> accepts, to accomplish both o
Steffen Schuldenzucker wrote:
> Btw., does TH parse this correctly? (If I was TH, I would not):
>
>> myPHPCode = [s|
>> > $description = "Use the quasiquoter like this: [s|some text|]";
>> print $description."\n";
>> ?>
>> |]
>
> (the tricky part is "|]" occurring in the quoted text)
>
> Can we esc
On Jun 28, 2011, at 2:34 PM, Steffen Schuldenzucker wrote:
> On 06/28/2011 08:25 PM, Krzysztof Skrzętnicki wrote:
>> What about Literate Haskell then? People write a lot of LH blog posts,
>> so it would seem to be quite flexible.
>
> IMHO, these are different tasks.
>
> * "Embed Haskell into so
On 06/28/2011 08:25 PM, Krzysztof Skrzętnicki wrote:
What about Literate Haskell then? People write a lot of LH blog posts,
so it would seem to be quite flexible.
IMHO, these are different tasks.
* "Embed Haskell into some other language" is solved by Literate Haskell
* "Embed some other la
What about Literate Haskell then? People write a lot of LH blog posts, so it
would seem to be quite flexible.
Best regards,
Krzysztof Skrzętnicki
On Tue, Jun 28, 2011 at 16:13, Dave Bayer wrote:
> Part of the dominance of scripting languages is clean support for heredocs.
> So much of every aren
Part of the dominance of scripting languages is clean support for heredocs. So
much of every arena of life comes down to getting "It's not about me!" I love
Haskell but it doesn't get this. Imagine a document that's nominally Haskell,
but about 80% some other language such as TeX (e.g. code for
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://git
2011/6/28 Jean-Marie Gaillourdet :
> Hi Audrey,
>
> are you aware that Haskell already supports multi-line strings?
>
> foo = "This is a\
> \multi-line\
> \string!"
>
> See Section 2.6 of http://haskell.org/onlinereport/lexemes.html
I've used this approach for multi-line strings; note
Hi Audrey,
are you aware that Haskell already supports multi-line strings?
foo = "This is a\
\multi-line\
\string!"
See Section 2.6 of http://haskell.org/onlinereport/lexemes.html
Regards,
Jean
On 25.06.11 22:55, 唐鳳 wrote:
> Hi all,
>
> I've just released string-qq 0.0.2 to Ha
12 matches
Mail list logo