-
Notifications
You must be signed in to change notification settings - Fork 849
Closed
Milestone
Description
C:\Neil\ghcid>stack ghci
* * * * * * * *
The main module to load is ambiguous. Candidates are:
Package `ghcid' component exe:ghcid with main-is file: C:\Neil\ghcid\src\Ghcid.hs
Package `ghcid' component test:ghcid_test with main-is file: C:\Neil\ghcid\src\Test.hs
None will be loaded. You can specify which one to pick by:
1) Specifying targets to stack ghci e.g. stack ghci ghcid:exe:ghcid
2) Specifying what the main is e.g. stack ghci --main-is ghcid:exe:ghcid
* * * * * * * *
This error is a little annoying - it says it's not going to do anything useful, and the two ways of picking the useful behaviours are both quite annoying - they require me to remember command line flags every time. Instead, how about:
- Always default to whichever is first in the
.cabal
file lexically, then people can reorder their.cabal
file to indicate a preference. - Add a facility to add an entry to
stack.yaml
to record a default.
Wizek and anka-213