<div dir="ltr"><div>Hello Sam,</div><div><br></div><div>It'd be easier to help if you posted the complete example somewhere (e.g. Github).</div><div><br></div><div>--</div><div>Best, Artem<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 7 Aug 2019 at 15:39, Sam Halliday <<a href="mailto:sam.halliday@gmail.com">sam.halliday@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
I've been following along with Stephen Diehl's blog series on the ghc<br>
api and I am using `load LoadAllTargets` on a .hs file (let's call it<br>
Wibble.hs) and then typechecking.<br>
<br>
All seems well until I add a second module (let's call it Wobble.hs) in<br>
the same package and import it from Wibble.<br>
<br>
I can see that the load has correctly calculated the dependency graph<br>
and includes Wobble in the dependencies of Wibble. But if I try to<br>
typecheck Wibble, then I get an error:<br>
<br>
    Could not find module ‘Wobble’<br>
    Use -v to see a list of the files searched for.<br>
  |<br>
4 | import           Wobble<br>
  | ^^^^^^^^^^^^^^^^^^^^^^^<br>
<br>
I have separately compiled the package, and can see its packagedb is<br>
listed in the .ghc.env file. What else do I need to do so that Wibble<br>
can see Wobble?<br>
<br>
-- <br>
Best regards,<br>
Sam<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>