edsko / stack2cabal

BSD 3-Clause "New" or "Revised" License
14 stars 4 forks source link

Handle hpack projects: #3

Closed osa1 closed 6 years ago

osa1 commented 6 years ago

stack automatically generates .cabal files from hpack files, so some stack projects omit .cabal and only provide a hpack file. When a git dependency is a stack project and only has a hpack file stack2cabal currently fails when looking for a cabal file. We now handle this case by running hpack and using the generated cabal file.

Fixes #2.

edsko commented 6 years ago

Awesome! :D Thanks :)