Hello,<br>I am running into a strange issue that reminds me of Java&#39;s classloader black magic havoc :-)<br><br>My code compiles fine using cabal-dev install, but when I try to compile an individual file with ghc, I got the following error:<br>
<br>$ ghc  -package-conf cabal-dev/packages-7.4.1.conf YakGraph.hs<br>[1 of 1] Compiling YakGraph         ( YakGraph.hs, YakGraph.o )<br><br>YakGraph.hs:13:30:<br>    Couldn&#39;t match expected type `Data.Text.Lazy.Internal.Text&#39;<br>
                with actual type `text-0.11.2.0:Data.Text.Lazy.Internal.Text&#39;<br>    In the first argument of `unpack&#39;, namely `s&#39;<br>    In the expression: unpack s<br>    In an equation for `fromGraphId&#39;: fromGraphId (Str s) = unpack s<br>
<br>YakGraph.hs:24:57:<br>    Couldn&#39;t match expected type `Data.Text.Lazy.Internal.Text&#39;<br>                with actual type `text-0.11.2.0:Data.Text.Lazy.Internal.Text&#39;<br>    In the first argument of `unpack&#39;, namely `name&#39;<br>
    In the expression: unpack name<br>    In a case alternative: (Just (Str name)) : _ -&gt; unpack name<br><br>The code leading to this error is here: <a href="https://gist.github.com/4677191">https://gist.github.com/4677191</a><br>
<br>Any insights on this would be appreciated.<br><br>Arnaud<br>