[: Where the bracket things are? :]

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

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.htm...
On Mon, Jun 29, 2009 at 4:51 PM, Paul Keir
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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

But it won't help to get the knowledge of GHC's internal he was after...
Thu
2009/6/29 Robert Greayer
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.htm...
On Mon, Jun 29, 2009 at 4:51 PM, Paul Keir
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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
minh thu
-
Paul Keir
-
Robert Greayer