-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
[#96] Add option to choose cabal or stack or both #106
Conversation
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.
Looks quite good to me. Probably we can refactor some parts later. But this is already nice 👍
src/Summoner/Config.hs
Outdated
@@ -170,6 +176,8 @@ finalise Config{..} = Config | |||
<*> fin "email" cEmail | |||
<*> fin "license" cLicense | |||
<*> fin "ghcersions" cGhcVer |
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.
I just noticed typo in ghcersions
...
src/Summoner/Project.hs
Outdated
@@ -67,7 +71,9 @@ generateProject projectName Config{..} = do | |||
-- Library/Executable/Tests/Benchmarks flags | |||
github <- decisionToBool cGitHub "GitHub integration" | |||
travis <- ifGithub github "Travis CI integration" cTravis | |||
appVey <- ifGithub github "AppVeyor CI integration" cAppVey | |||
appVey <- let appTar = "AppVeyor CI integration" in | |||
if stack then ifGithub github appTar cAppVey |
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.
You can write this as ifGithub (github && stack) ...
src/Summoner/Project.hs
Outdated
(Idk, Idk) -> decisionToBool cCabal "cabal" >>= \c -> | ||
if c then decisionToBool cStack "stack" >>= \s -> pure (c, s) | ||
else stackMsg True >> pure (False, True) | ||
(Nop, Nop) -> errorMessage "Neither cabal nor stack was choosen" >> exitFailure |
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.
Probably it's chosen
ad048d3
to
6a0b8ef
Compare
Resolves #96