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

Expose main function from library #78

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wenkokke
Copy link

@wenkokke wenkokke commented Apr 24, 2023

This PR refactors cabal-fmt to expose the main function from the cabal-fmt library.

Changes:

  • Fix Export main function from library #77
  • Move source for cabal-fmt-internal to src-internal
  • Create new library cabal-fmt with source directory src
  • Extract logic from main function from main in cli/Main.hs to mainWithArgs in src/CabalFmt/Main.hs

FTR I'm happy with your dual licensing requirement.

* Move source for cabal-fmt-internal from src to src-internal
* Create new source directory src
* Create new main library cabal-fmt
@tfausak tfausak mentioned this pull request Jan 29, 2024
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 this pull request may close these issues.

Export main function from library
1 participant