-
Notifications
You must be signed in to change notification settings - Fork 697
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
Cabal Init Omnibus #7344
Merged
Merged
Cabal Init Omnibus #7344
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
1068755
Rewrite `cabal init` command
emilypi 5892f42
Add changelog.d entry for #7344
emilypi 186d448
Changing to canonicalizePathNoThrow to prevent exceptions
ptkato 6a7621c
Preppending the package dir to the app dir
ptkato 7c82d28
Using the compiler version from Distribution.Simple.Compiler
ptkato 299db9a
Adding tests for base version bounds
ptkato b5b1865
revert compiler argument in createProject
emilypi c92b2ad
explicit fix for 6864
emilypi d2242f3
Add flag for extra doc file
emilypi e398baa
add adaptive fix for #6864
emilypi d32ec70
output warning for doc files specified with cabal spec < 1.18
emilypi 977de79
add formatters + fix text for extra doc + extra src files
emilypi 6bb2df8
remove little version parser, fix up some hanging cruft
emilypi bb3afee
fix formatter extra-doc-files
emilypi 6fff94d
Adjusting module name detection to ignore comments
ptkato 06c9595
Adding boundaries for the other-extensions parser
ptkato a9daeff
fix build-tool vs build-tool-depends problem
emilypi 035a6bc
fix build-tool-depends inferrance
emilypi 79f69b9
fix build-tool-depends inferrance
emilypi 9042b79
TODO for patrick
emilypi 0e9de06
Adding checks for module name correctness and file existence
ptkato e2806fa
Adapting tests for the new dependency checks
ptkato fcce141
Adding more checks for the existence of paths
ptkato a63fe9b
Adjusting tests for the remaining checks
ptkato 836d6b6
Pinpointing in which modules the packages couldn't be found
ptkato 7d91d3c
remove golden file cruft
emilypi 0d20866
Parametrizing verbosity for dependencies function
ptkato a0f1ef2
undo reversion
emilypi 5995ada
respect minimal flag
emilypi 03dbdd7
regen golden tests with better names
emilypi 509a2dd
fix warnings
emilypi 9118940
fix some prompt bugs, last minute file creation bugs
emilypi 6ffee75
fix some prompt bugs, last minute file creation bugs
emilypi 0e20b01
Remove redundant imports
emilypi f2c8bb7
improve filecreation consistency and safety checks
emilypi 76468fb
remove tem dir
emilypi 1ae7433
remove stale test directory
emilypi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ptkato This is unused in a bunch of cases (interactive + simple, including thier tests). I'd just configure
NonInteractive.createProject
to take the compiler arg first and then returnNonInteractive.createProject comp
as the function returned in the where clause. Otherwise it just introduces cruft into more places than we want.