"Talking" with the compiler

Bernard James POPE bjpop at cs.mu.OZ.AU
Wed Jan 21 16:14:47 EST 2004


Peter wrote:

>     BTW, does Language.Haskell.Parser.parseModule already perform infix
>     resolution? 

Unless it changed very recently, then no.

I have written some code for this very task:

   http://www.cs.mu.oz.au/~bjpop/code/Infix.hs

You give it the infix rules that are in scope and a module and it 
returns the module with the infix applications resolved. (Of course
knowing what rules are in scope is another story, not solved by this
piece of code).

Perhaps it is of some use to you?

Cheers,
Bernie.


More information about the Glasgow-haskell-users mailing list