Re: [Haskell-cafe] Syntactic extensions

2004-02-04 Thread Bernard James POPE
> 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.
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Syntactic extensions

2004-02-04 Thread Niklas Broberg
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

___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Haskell overview

2004-02-04 Thread Mark Carroll
A colleague with a mathematics and Lisp background is wanting to learn
more about Haskell. The books he's looked at concentrate more on building
up from the basics and getting the syntax right, etc., whereas really he's
looking more of a top-down view that makes Haskell's features and behavior
clear and relates them to category theory, etc. Would anyone be able to
suggest some good references?

-- Mark
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe