jesicabaxter / ndmitchell

Automatically exported from code.google.com/p/ndmitchell
0 stars 0 forks source link

hlint does not parse record #628

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. running hlint on the following code: http://lpaste.net/96595
2. if record selector is removed, then parse error disappears

What is the expected output? What do you see instead?
The syntax is correct, as far as I know. It compiles fine with ghc 7.6.3. But 
instead I get a parse error: 

$ hlint -XGADTs hlintBug.hs
hlintBug.hs:6:10: Parse error
Error message:
  Parse error: {
Code:
    data A a where
  >     A :: { unA:: a} -> A a

What version of the product are you using? On what operating system?
I am on Mac OS 10.6.5. 
$ hlint --version
HLint v1.8.53, (C) Neil Mitchell 2006-2013

Thanks.

Original issue reported on code.google.com by eyaldech...@gmail.com on 5 Dec 2013 at 2:08

GoogleCodeExporter commented 8 years ago
Thanks for the report. This is an error in the underlying Haskell parser that 
HLint uses, which I've reported upstream: 
https://github.com/haskell-suite/haskell-src-exts/issues/65

Original comment by ndmitch...@gmail.com on 5 Dec 2013 at 9:30

GoogleCodeExporter commented 8 years ago
Fixed by HSE.

Original comment by ndmitch...@gmail.com on 13 Jun 2015 at 5:33