<div dir="ltr">To that end, I've got an example for firing up a little Cabal project and using a sandbox for the dependencies here: <a href="http://howistart.org/posts/haskell/1">http://howistart.org/posts/haskell/1</a><div><br></div><div>The short version:</div><div><br></div><div>mkdir project && cd project && cabal sandbox init && cabal install vector && cabal repl</div><div><br></div><div>Hope this helps,</div><div>Chris</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 28, 2015 at 4:01 PM, Brandon Allbery <span dir="ltr"><<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><div class="gmail_quote">On Wed, May 27, 2015 at 4:15 AM, Dananji Liyanage <span dir="ltr"><<a href="mailto:dan9131@gmail.com" target="_blank">dan9131@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"><interactive>:41:18:</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> Couldn't match expected type ‘Data.Vector.Vector a’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> with actual type ‘vector-0.10.9.1:Data.Vector.Vector Int’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> NB: ‘Data.Vector.Vector’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> is defined in ‘Data.Vector’ in package ‘vector-0.10.12.3’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> ‘vector-0.10.9.1:Data.Vector.Vector’</font></div><div class="gmail_default"><font face="monospace, monospace" color="#ff0000"> is defined in ‘Data.Vector’ in package ‘vector-0.10.9.1’</font></div><div class="gmail_default"></div></blockquote></div><br></span>Did you read the message? It is telling you that you have two versions of the vector package installed, and it is unable to reconcile them.</div><div class="gmail_extra"><br></div><div class="gmail_extra">You should likely remove one of them --- and in the future use sandboxes so that you can avoid this kind of conflict.<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>