Cabal - Expose all modules while building library
cabal, haskell
Solution
The modern answer is stack + hpack instead of using explicit cabal config. It could automatically expose package modules and provides many other enhancements.
Problem
Is it possible to tell `Cabal` to expose all modules while building a library? Right now I have to provide very long list of modules in the `exposed-modules` cabal configurtion file section.