-
Notifications
You must be signed in to change notification settings - Fork 841
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
stack ghci doesn't load any files #355
Comments
btw, this is after deleting the |
Related: #347 (comment) tl;dr it's not supposed to load anything on start-up, but enough people want it that I'll make it do that by default and add |
I don't super care about the default, since this is for using it through ghcid, but is there any way to replicate something close to what Also:
I would have expected that to try loading Sample.hs. |
This works: #328 (comment)
But enough people have assumed |
OK, I guess I'll hold off on integration until after things have settled down. |
@chrisdone - can you please update this ticket once you think |
Sure. |
So currently for https://github.com/ndmitchell/hoogle |
Yeah, as |
Is the first executable or test-suite in the module not a good default? That way people could reorder their cabal file to get what they are after. |
I should also note that I always name my executables and test suites differently and us |
I imagine We could have it take a cabal component name instead in the interest of being convenient, e.g. |
Yep, search for main-is here: https://github.com/ndmitchell/shake/blob/master/shake.cabal |
What if you have a test suite named Main and an executable named Main? How would you want to distinguish them when calling |
I would have thought:
|
I've implemented this. If I load up
So I can either just load the one target that I want, or I can proceed trying to load everything and specify what the main is. |
Awesome! Just tried this with HLint and it worked straight away. |
Cool, closing. |
I was expecting
stack ghci
to load the hlint library, but it doesn't, it loads nothing.The text was updated successfully, but these errors were encountered: