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: 'courier new', monospace;">: panic! (the 'impossible' happened)<br> (GHC version 6.10.1 for i386-unknown-mingw32):<br>
        loadObj: failed<br><br>Please report this as a GHC bug: <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't find modules<br>
<span class="Apple-style-span" style="font-family: 'courier new', monospace;">GHCi, version 6.10.1: <a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a> :? 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> Could not find module `NM8.GUI.Layout':<br> 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't tried to isolate the problem, but maybe others have experienced this problem?</div><div><br></div><div>It's not really a show-stopper, just but a bit annoying</div><div><br></div><div>
<br></div><div><br></div><div><br></div>