Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Make `cabal init` create Main.hs if it doesn't exist. #2483
This implements issue #2304.
Now, after doing
`cabal init` will create Main.hs if the following conditions hold: - creating an executable (not a library) - the mainIs flag has been specified - the file the mainIs flag is pointing to doesn't exist
I tried this out but it doesn't seem to work. If I run
@byorgey, I think you're saying that the
I was under the assumption that libraries would not have a
Should I remove this check and also create a
@byorgey, I understand what you're saying. But that's really strange.
When I run
Basically, I create an empty directory, run
I'm wondering what's going on when you're running cabal and why it's not going through the same code paths?
Looking at my pull request, here are three possible problems I could think of:
I'm not sure what else could be the reason that it's working on my system and not on yours. Do you have any idea of things I could take a look at?