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

Warn on HSE mis-parse #375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michaelbjames
Copy link

An attempt to fix #362, albeit a bit rough.

Before this fix, if you ran hoogle generate --local=. on the hoogle repo you would get an error hseToItem failed, from trying and failing to parse the CHANGES.txt file. After this change, you will get that same message in the .warn file, but Hoogle will happily generate the rest of the database.

I will readily admit this is an inelegant fix. If a stray .txt file in the directory being scanned contains valid haskell on any line it will be slurped up by HSE. I think this is an acceptable tradeoff, considering the alternative is that every .txt file must contain valid HSE-parsable haskell on every line, otherwise Hoogle will not generate a database.

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

Successfully merging this pull request may close these issues.

hoogle generate chokes on its own CHANGES.txt file
1 participant