-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Package name not picked up #43
Comments
Thanks for the report. |
I tried to come up with a quick fix that will just call following function instead of tabOrSpaceOrNewline :: Parser Char
tabOrSpaceOrNewline = tabOrSpace <|> '\n' <$ endOfLine But that lead to failure of While doing the fix I tried to add new test and in the process noticed that for the following pretty innocent cabal file
the parse result would be
The issue is the inferred paths: Besides, what if some fields we're looking for are stored in Given the points 1, 2 and 3 outlined above it seems to me that the best course of action is not to duplicate Cabal parsing logic but instead either use parser from the Cabal package (but this particular dependency cannot be added for reason's I don't yet understand) or avoid parsing at all like suggested in #42. |
|
TLDR if I start package name with a newline then it's not picked up
So I indented my cabal file as follows
test1.cabal
and got following from parsing
However, if I change just one line then it parses (via
Hie.Cabal.Parser
) oktest2.cabal
Since cabal accepts
test1.cabal
, I think it should be supported. What do you think?The text was updated successfully, but these errors were encountered: