[Announce] cabal-auto-expose: a build time library that auto detects modules & signatures with cabal2nix integration
Happy to announce cabal-auto-expose, a small Cabal build time library that detects and auto exposes modules and Backpack signatures in your project source so you get the convenience of (and a couple of advantages over) Stack and hpack but with both pure Cabal and Stack projects.
It also has cabal2nix integration and a fully worked demo.
The project README and API docs have a lot more detail.
As always let me know if you have any issues and enjoy!
Posted Sep 8, 2020, 10:15 PM UTC · edited
I assume this was inspired by the recent poll?
Anyway, I'd consider using this if I weren't generally wary of custom
Setup.hss. They seem to be responsible for the majority of the Cabal issues I currently have an eye on. And u/phadej calling them "evil" doesn't encourage me...I've used Custom builds for years for other utilities without much of an issue except for breaking Cabal API changes. It's evil in the sense that everything is in IO and he's right a lot of that code is pretty crufty but it works and gives the user a pretty turn-key way of transparently kicking off complicated polyglot Haskell builds across platforms.