Skip to content

If I have both then can I pick stack? #3

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

Closed
philderbeast opened this issue May 23, 2020 · 3 comments · Fixed by #15
Closed

If I have both then can I pick stack? #3

philderbeast opened this issue May 23, 2020 · 3 comments · Fixed by #15

Comments

@philderbeast
Copy link

I have a project I build with both cabal v2 and stack. Could we please supplement the logic here so that if I have both then there's a way for me to choose stack?

implicit-hie/app/Main.hs

Lines 23 to 28 in 88e8f1c

let name =
if | any (("dist-newstyle" ==) . takeFileName) files -> "cabal"
| any ((".stack-work" ==) . takeFileName) files -> "stack"
| any (("cabal.project" ==) . takeFileName) files -> "cabal"
| any (("stack.yaml" ==) . takeFileName) files -> "stack"
| otherwise -> "cabal"

@Avi-D-coder
Copy link
Owner

I would happily take a PR that added this as a flag.

@fendor
Copy link
Collaborator

fendor commented May 23, 2020

I think it would also make sense to be able to specify it on the cli.
E.g. gen-hie --stack

@Avi-D-coder
Copy link
Owner

Yeah I was meaning something like gen-hie --type stack, but --stack or --cabal works too

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.

3 participants