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<pk...@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@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