-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Be smarter about --no-load? #72
Comments
It's not an odd corner case, it's by design. Typically both Cabal and Stack are pretty poor at putting the right things in scope at the right time - sometimes because they can't possibly have that information. To workaround that I let people who care about doing better supply a If you really just want |
Ah, I see. Sounds good. |
Right, using
Also, note that you'll really want |
@mgsloan Just curious, is there GHCi command to load all modules of all components? Or is that a stack-specific feature of |
ghci isn't aware of stack or cabal. https://github.com/chrisdone/intero will likely be stack aware and allow loading modules based on components. |
Ah, of course! Thanks. |
I think I found an odd corner-case whose symptoms look like:
The problem here is I do have a
.ghci
, but it just has some:set -XOverloadedStrings
boilerplate, and doesn't actually:load
anything.So,
ghcid
is passing--no-load
because it incorrectly assumes my.ghci
will load some modules. This can be worked around with a--command
of course, but I wonder if the current behavior could be improved?Thanks!
The text was updated successfully, but these errors were encountered: