Hello,<br>I am running into a strange issue that reminds me of Java'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't match expected type `Data.Text.Lazy.Internal.Text'<br>
with actual type `text-0.11.2.0:Data.Text.Lazy.Internal.Text'<br> In the first argument of `unpack', namely `s'<br> In the expression: unpack s<br> In an equation for `fromGraphId': fromGraphId (Str s) = unpack s<br>
<br>YakGraph.hs:24:57:<br> Couldn't match expected type `Data.Text.Lazy.Internal.Text'<br> with actual type `text-0.11.2.0:Data.Text.Lazy.Internal.Text'<br> In the first argument of `unpack', namely `name'<br>
In the expression: unpack name<br> In a case alternative: (Just (Str name)) : _ -> 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>