# \`cabal-prettify\` can now add modules to \`exposed-modules\` or \`other-modules\` automagically!

**URL:** <https://discourse.haskell.org/t/cabal-prettify-can-now-add-modules-to-exposed-modules-or-other-modules-automagically/9308>\
**Category:** Announcements\
**Created:** [April 11, 2024, 2:02pm UTC](https://discourse.haskell.org/t/cabal-prettify-can-now-add-modules-to-exposed-modules-or-other-modules-automagically/9308 "2024-04-11T14:02:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon58422685](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@anon58422685](https://discourse.haskell.org/u/anon58422685)\
**Post date:** [April 11, 2024, 2:02pm UTC](https://discourse.haskell.org/t/cabal-prettify-can-now-add-modules-to-exposed-modules-or-other-modules-automagically/9308/1 "2024-04-11T14:02:26Z")

</div>

There is this tool called [`cabal-prettify`](https://github.com/kindaro/cabal-prettify) that I built some time ago. I just put online a [new version](https://github.com/kindaro/cabal-prettify/releases/tag/v0.2.3.3) that will add whatever modules it can find to `exposed-modules` or `other-modules` automagically, so long as you give it the flag `expose`.

`cabal-prettify` can also enforce neat folder layout, with the flag `move`.

If you wish to try it out, you can get an executable built by the integration script on GitHub, or you can clone and build from source. I have not put it on Hackage yet.

Let me know if you find it handy!
