-
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 see preprocessed (e.g. c2hs) files, and doesn't error
#498
Comments
I might be running into something similar:
The modules With the
My best guess for a workaround was to mention
But that does not help Stack. In contrast, |
I think I also have a similar problem - files auto-generated by cabal aren't available from stack ghci or similar. If I do the following:
This fails to load because "Could not find module 'Paths_foobar'". Note that "stack ghci" works properly; I just used ghci in the above to illustrate the problem. |
It now loads like:
I think this needs to launch GHC with |
For me, the Alex and Happy generated dependencies problem is now gone; thanks! I still have the second problem, but I think it's unrelated:
Again, |
It seems I do still have to run
|
Steps to reproduce:
pkg-a.cabal
:A.chs
:stack.yaml
:Expected:
Running
stack ghci
builds and loads module A (after preprocessing withc2hs
).Actual:
Actually you'll get this result if the A file is named anything other than
A.hs
(likeA.foobar
), or even if it doesn't exist at all.So there are 2 bugs:
A
is not loaded when it's a non-.hs
extensionA
wasn't found while supposedly loadingpkg-a
does not cause an errorThe text was updated successfully, but these errors were encountered: