About rules
Simon Peyton-Jones
simonpj@microsoft.com
Fri, 6 Apr 2001 07:40:57 -0700
No good reason. I've implemented the one-line change in my copy
but we're in a code freeze until we release GHCi 5.00 on Monday.
After that I'll commit it.
Good idea, thank you.
Simon
| -----Original Message-----
| From: Josef Svenningsson [mailto:josefs@cs.chalmers.se]=20
| Sent: 05 April 2001 16:29
| To: glasgow-haskell-users@haskell.org
| Subject: About rules
|=20
|=20
| Hi all!
|=20
| I've been playing around with the rules facility a bit. There=20
| is a boring shortcoming when working with infix operators. It=20
| seems that the rule parser doesn't like them at all. The=20
| following example gives syntax error:
|=20
| {-# RULES
| "plus/mult" forall p . p + p =3D 2 * p
| #-}
|=20
| whereas the following is allright:
|=20
| {-# RULES
| "plus/mult" forall p . (+) p p =3D (*) 2 p
| #-}
|=20
| It's not a big problem, but it's rather inconvenient and=20
| ugly. Is it easy to fix?
|=20
| Cheers,
| /Josef
|=20
|=20
| _______________________________________________
| Glasgow-haskell-users mailing list=20
| Glasgow-haskell-users@haskell.org=20
| http://www.haskell.org/mailman/listinfo/glasgow-| haskell-users
|=20