blitzcode / hackage-diff

Compare the public API of different versions of a Hackage library
MIT License
63 stars 6 forks source link

endOfInput when trying to compare Cabal 1.24.0.0 and 1.24.1.0 #6

Open 23Skidoo opened 7 years ago

23Skidoo commented 7 years ago

This is what I get when trying to compare Cabal 1.24.1.0 API with 1.24.0.0:

$ hackage-diff Cabal 1.24.0.0 1.24.1.0
Downloading / Reading Hoogle DBs...
Parsing Hoogle DBs...
endOfInput

Would be nice if the error was a bit more informative at least.

blitzcode commented 7 years ago

I probably should have used a parser combinator library with better error messages than attoparsec. For now there isn't really any information I can display.

The problem is that the Hoogle DB format changed with v5. I investigated this a bit when the change originally happened. IIRC I did not figure out completely why there was a change and pushed some fixes that seemed to fix the majority of the errors. IIRC there was another breaking change after that. I'm waiting for Hoogle 5 to be out of 'alpha' status before I take another look at the parser. It's probably going to be a bit hit & miss till then.