-
Notifications
You must be signed in to change notification settings - Fork 0
Could not load module ‘HaskellSay’ #1
Comments
Hi. What backend are you using? ide-haskell-repl or ide-haskell-hls? In any case, it might be that you just need to reload the backend to force it to reread the cabal file. By far the simplest way to achieve this is to run |
Hmm. I have a suspicion of what goes wrong exactly. Could you try opening |
Yes, that works. So the cabal file must be in the root folder of the project? |
Apparently so, but tbh it's an accident. I'll try to see if I can do something about it. In the meantime, I think packages: */*.cabal |
doesn't seem to work, but the |
This is not a simple fix. In fact, I'm questioning the feasibility of the fix. This would need some rather drastic changes to some dependencies, which I have my doubts will be accepted. However, I've verified the diff --git a/futurelearn/cabal.project b/futurelearn/cabal.project
new file mode 100644
index 0000000..f44a24c
--- /dev/null
+++ b/futurelearn/cabal.project
@@ -0,0 +1 @@
+packages: */*.cabal I figure this is a reasonable workaround for the time being. It needs to be documented though, as well as a bunch of other stuff. As a heads-up, I'm transferring this issue to the relevant repo. |
ok, thanks |
Following the cabal getting stared guide, I created a project structure like this
In Atom I then get an error like this
The project cabal file contains this ...
The same happens with
import System.Random
The project works with
cabal repl
andcabal run :starman
The text was updated successfully, but these errors were encountered: