Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`stack ghci` does not recognise internal libraries #3926
I suspect the fix is to reproduce whatever #3288 did for the
Steps to reproduce
Easiest to check out dbaynard/issues@2530d18 (internal-libraries branch) and run
Alternatively, create a package which has an internal library module and attempt to import that into that package's own library or an executable (they have the same outcome).
Error message, for internal library named
The full output is in the readme in the
Method of installation
From git repo — see above
(Also, I never new about the permalinks to code snippets — thanks! It doesn't really afford scrolling when it overflows, though, at least in chrome, as happens here.)
I've compared command lines and this is what we need to pass:
I've also seen
Ugh. So after getting stack to output that, I find out that cabal new-build generates
which are required. So that doesn't work. Going to take a look what stack does with sublibs.
E: ok, good, it does something similar
added a commit
Apr 23, 2018
referenced this issue
Apr 23, 2018
You got it ahead of me, but I see I was approaching it from a different angle, making more complex changes.
I'll get my PR submitted too as it also handles rebuilding from scratch and tracks changes in sublibraries. I'm testing now the integration tests but will have something up and running in a few hours.