Closed yaitskov closed 4 years ago
I've solved the issue with main module disambiguation:
stack ghci PerfTestApp2:exe:PerfTestApp2
--main-is is not need
Though it worth mentioning that ghci loads all apps by default even if it is launched in a particular app folder (/home/dan/demo/haskell/gsoc/Hydra/app/astro).
Hi @yaitskov , thanks for pointing this out.
I'm now researching the problem. There is a lot of hidden pitfalls here. Once I get an understanding of this, I'll update the README file.
JFYI: I mostly don't use ghci but I understand the need of this. JFYI2: I made this huge restructuring as planned one, because I'm moving this whole project into new rails suitable for production. A lot of restructuring and renaming is still ahead. I'm now planning to have several subprojects for all the engines.
Fix module name collision in ghci.
This helps but doesn't solve ghci problem completely. Since last stack reorganization ghci complains on duplicated Main modules too. I cannot rename them. I tried to find a workaround with --main-is astro:exe:astro, but ghci needs -threaded option. I've not found how to pass it through stack ghci. GHCi helps a lot during getting familiar with codebase.