[Haskell-cafe] [: Where the bracket things are? :]

minh thu noteed at gmail.com
Tue Jun 30 03:00:35 EDT 2009


But it won't help to get the knowledge of GHC's internal he was after...

Thu

2009/6/29 Robert Greayer <robgreayer at gmail.com>:
> You can use QuasiQuotation, where your bracketing syntax looks like:
>
> [$foo| blah blah blah |]
>
> and 'foo' represents a quasi-quoter, and the stuff inside the brackets
> is any arbitrary syntax recognized by it.
>
> http://www.haskell.org/ghc/docs/latest/html/users_guide/template-haskell.html#th-quasiquotation
>
>
> On Mon, Jun 29, 2009 at 4:51 PM, Paul Keir<pkeir at dcs.gla.ac.uk> wrote:
>> I'd like to add my own custom list delimiters to ghc; such as the [: and :]
>> of Data Parallel Haskell. The purpose is mainly to learn a little about
>> GHC's internals.
>>
>> Any suggestions on the GHC files I should look at first? Alternatively,
>> maybe this is actually possible from outside the compiler.
>>
>> Cheers,
>> Paul
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list