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

Strange parse error with "module Foo where" when using pragmas #49

Open
ghost opened this issue May 19, 2014 · 2 comments
Open

Strange parse error with "module Foo where" when using pragmas #49

ghost opened this issue May 19, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented May 19, 2014

If a pragma is used together with a multi-line comment, and module is placed at the end of the multi-line comment, but on the same line as it ends, ghcmod-vim gives a parse error. It does not give the error if you move the module to a separate line, or if you remove the pragma. Below follows an example to trigger the error in HEAD. ghc-mod itself does not produce this error at all.

{-#LANGUAGE TemplateHaskell #-}
{-
-
-} module Main where

main :: a
main = undefined
@ghost
Copy link
Author

ghost commented May 26, 2014

hlint outputs the same warning, so I assume it's a hlint problem.

@ghost
Copy link
Author

ghost commented May 26, 2014

It's one step further than that even -- it's in haskell-src-exts. Reported here: haskell-suite/haskell-src-exts#122

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

0 participants