Often when trying to run my GTK2HS application the first time with GHCi I get<br><br><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">: panic! (the &#39;impossible&#39; happened)<br> &nbsp;(GHC version 6.10.1 for i386-unknown-mingw32):<br>
        loadObj: failed<br><br>Please report this as a GHC bug: &nbsp;<a href="http://www.haskell.org/ghc/reportabug">http://www.haskell.org/ghc/reportabug</a></span><br><br><br>This only occurs when I forgot to set my current directory correctly; then GHCi gives an error since it can&#39;t find modules<br>
<span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">GHCi, version 6.10.1: <a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a> &nbsp;:? for help<br>Loading package ghc-prim ... linking ... done.<br>
Loading package integer ... linking ... done.<br>Loading package base ... linking ... done.<br><br>Boxes.hs:23:17:<br> &nbsp; &nbsp;Could not find module `NM8.GUI.Layout&#39;:<br> &nbsp; &nbsp; &nbsp;Use -v to see a list of the files searched for.<br>
Failed, modules loaded: none.<br></span><br><div>If I then correctly set my current directory using the :cd command, and try again, I get the panic crash.</div><div><br></div><div>When I start GHCi again and immediately set the correct current directory, it works fine.</div>
<div><br></div><div>I haven&#39;t tried to isolate the problem, but maybe others have experienced this problem?</div><div><br></div><div>It&#39;s not really a show-stopper, just but a bit annoying</div><div><br></div><div>
<br></div><div><br></div><div><br></div>