On Wed, 2006-12-06 at 16:56 -0800, John Meacham wrote: > Having played with haskell parsers for various reasons, the layout rule > is quite tricky due to the rules involving 'parse-error'. if we could > come up with a formulation that didn't have those. it would make things > a whole lot nicer. something like an unexpected 'in', 'of', ')' '}' > ']' might do it. the lexer would have to keep track of matching > brackets.. hmmm..
Yes, not having the parser->lexer feedback would be great! And this proposal seems like it should work quite well. Somebody with a lot more spare time than me should code it up and see how much real code it breaks. Carl Witty _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe