Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hlint cannot parse records #11

Open
begriffs opened this issue Feb 15, 2015 · 4 comments
Open

hlint cannot parse records #11

begriffs opened this issue Feb 15, 2015 · 4 comments

Comments

@begriffs
Copy link

For some reason hlint 1.9.16 is unable to parse files containing types defined using records. I first encountered this in my own program that uses your record library (where linting happens as a step in continuous integration). Just to be sure I ran your demo code through hlint and saw the same kind of error.

demo/Main.hs:14:3: Warning: Parse error: [$record| {name :: String, birthday :: {year :: Int, month :: Int, day :: Int}} ]
Found:
    type Person =
  >   [record| {name :: String, birthday :: {year :: Int, month :: Int, day :: Int}} |]

    type Event =

Not sure why hlint finds this problematic, but I'd like to find a way to appease it.

@nikita-volkov
Copy link
Owner

I think Hlint's issue tracker is a more proper place for this. I have no idea what's causing this.

@aavogt
Copy link
Contributor

aavogt commented Feb 15, 2015

haskell-src-exts seems to be to blame: while it supports quasiquotes in expressions (https://github.com/haskell-suite/haskell-src-exts/blob/master/src/Language/Haskell/Exts/Syntax.hs#L554) there's no corresponding constructor in data Type.

@aavogt
Copy link
Contributor

aavogt commented Feb 15, 2015

Once haskell-suite/haskell-src-exts#208 makes its way into a release (and hlint uses that haskell-src-exts), this problem should go away.

@nikita-volkov
Copy link
Owner

@aavogt Thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants