tfausak / cabal-gild

:crown: Format Haskell package descriptions.
https://hackage.haskell.org/package/cabal-gild
MIT License
49 stars 5 forks source link

Support expanding multiple source directories #13

Closed domenkozar closed 9 months ago

tfausak commented 9 months ago

Thanks for opening this issue! Could you explain your motivation and perhaps project layout? Most Haskell projects I've seen (and worked on) have a single source directory with all the Haskell files in it.

As a workaround, you can have multiple exposed-modules (or other-modules), like this:

library
  -- cabal-gild: discover foo
  exposed-modules: ...
  -- cabal-gild: discover bar
  exposed-modules: ...
domenkozar commented 9 months ago

The use case is that I have one folder with a lot of generated Haskell GRPC types and one that I develop with it src and proto.

tfausak commented 9 months ago

Thanks again for opening this issue! The fix from #19 has been released in version 1.0.2.0.