Haskell 98 Revised

Ian Lynagh igloo@earth.li
Mon, 5 Nov 2001 14:23:04 +0000


On Mon, Nov 05, 2001 at 01:52:26PM +0000, Ian Lynagh wrote:
> On Mon, Nov 05, 2001 at 05:02:16AM -0800, Simon Peyton-Jones wrote:
> > 
> L (t:ts) []       = L ts []               if t is whitespace
>                   = error "lexeme outside of module contents" otherwise

Actually, changing this to the following means that parse-error doesn't
get passed any white space, either:

  L (t:ts) ms       = L ts ms               if t is whitespace
  L (t:ts) []       = error "lexeme outside of module contents"


Ian