On Thu, Aug 17, 2006 at 11:44:17AM -0500, Brian Smith wrote: > Hi, > > I find it strange that right now almost every Haskell program directly or > indirectly (through FPTOOLS) depends on CPP, yet there is no effort to > replace CPP with something better or standardize its usage in Haskell. > According to the following document, and my own limited experience in > reading Haskell code, CPP is the most frequently used extension: > http://hackage.haskell.org/trac/haskell-prime/wiki/HaskellExtensions > I think that if we accepted that CPP was part of the language, we could then > place some restrictions on its use to facilitate easier parsing. Here are > some suggestions, off the top of my head:
see this paper for some interesting work on the subject. http://citeseer.ist.psu.edu/wansbrough99macros.html there would be no need to integrate it with compilers, it could be a stand-alone tool, like hsc2hs. John -- John Meacham - ⑆repetae.net⑆john⑈ _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe