alexwl / haskell-code-explorer

Web application for exploring and understanding Haskell codebases
MIT License
509 stars 20 forks source link

[WIP] Port to cabal-helper-1.0 (git) #33

Open DanielG opened 5 years ago

DanielG commented 5 years ago

I'm working on fleshing out the cabal-helper-1.0 API, figured I should see how bad I broke things using the old API so I decided to give porting this project a go. I had to tweak a few things but not too bad overall.

I also fixed compileVersion being too slow (see the discussion here). It only depends on the setup-config header for V1 projects now.

alexwl commented 5 years ago

Thank you Daniel!

It would be great to use the new version of cabal-helper.

I guess I should think about how to index multiple packages at once: https://github.com/alexwl/haskell-code-explorer/blob/63ad1f682e64cb6b854e399ed12af3a9986241f8/src/HaskellCodeExplorer/PackageInfo.hs#L162-L164

Also, thank you for the fixed compilerVersion query.

DanielG commented 5 years ago

Yeah, indexing multiple packages would also make things easier for users because you can just let the indexer loose on a whole cabal/stack project rather than just one package :)