
Hello, I am using the haskell-src bundle to implement a preprocessor for some syntactic extensions to haskell. This is all fine and well, but I find myself also wanting the preprocessor to let through some already existing extensions, namely: * implicit parameters * pattern guards * multi-parameter type classes with functional dependencies * possibly template haskell The haskell-src bundle already has support for mptcs (without fundeps), and pattern guards are rather straight-forward, but for the rest; Where can I find formal specifications of these extensions in terms of added/changed syntax? Or even better, is there anyone out there who has already extended the haskell-src bundle with support for any of them? regards, Niklas Broberg (d00nibro[at]dtek.chalmers.se) _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

Hello,
I am using the haskell-src bundle to implement a preprocessor for some syntactic extensions to haskell. This is all fine and well, but I find myself also wanting the preprocessor to let through some already existing extensions, namely: * implicit parameters * pattern guards * multi-parameter type classes with functional dependencies * possibly template haskell
The haskell-src bundle already has support for mptcs (without fundeps), and pattern guards are rather straight-forward, but for the rest; Where can I find formal specifications of these extensions in terms of added/changed syntax?
Perhaps you've already looked, but if not, one possible source is the Happy grammar that GHC uses, in ghc/compiler/parser.y, or even the Hugs Yacc grammar, in src/parser.y Its probably not exactly what you want though... If you either find something or implement it yourself please let me know. Cheers, Bernie.
participants (2)
-
Bernard James POPE
-
Niklas Broberg