haskell-suite / haskell-src-exts

Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Other
193 stars 94 forks source link

Parse error on empty where #386

Open ndmitchell opened 6 years ago

ndmitchell commented 6 years ago

Given:

func1 = ()
  where
    f 1 = 1
      where
    f 2 = 2

func2 :: ()

I get a parse error, due to the redundant where after f 1.

Originally reported by @jasonstolaruk at https://github.com/ndmitchell/hlint/issues/412