Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export main function from library #77

Closed
wenkokke opened this issue Apr 3, 2023 · 1 comment · May be fixed by #78
Closed

Export main function from library #77

wenkokke opened this issue Apr 3, 2023 · 1 comment · May be fixed by #78

Comments

@wenkokke
Copy link

wenkokke commented Apr 3, 2023

Would you mind refactoring cabal-fmt to export the main function from the library as, e.g.,

defaultMain :: [String] -> IO ()

...so that it's easier to call cabal-fmt from code?

@wenkokke
Copy link
Author

The foremost reason I'd like to see this change is that I'd like to build Python wheels that bundle cabal-fmt so it can easily be run on pre-commit.ci, which has some huge advantages, including automatically pushing formatting patches to PRs.

@wenkokke wenkokke closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant