Skip to content

Instantly share code, notes, and snippets.

@kutyel
Created February 26, 2020 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kutyel/c2fbefb917f4245efadbd6d8c004994b to your computer and use it in GitHub Desktop.
Save kutyel/c2fbefb917f4245efadbd6d8c004994b to your computer and use it in GitHub Desktop.
Format all Cabal files in a Haskell project
find . -name '*.cabal' -exec sh -c 'cabal-fmt $0 > output.tmp; mv output.tmp $0' {} ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment