[Haskell-beginners] Data.Vector in Haskell

Christopher Allen cma at bitemyapp.com
Thu May 28 21:03:42 UTC 2015


To that end, I've got an example for firing up a little Cabal project and
using a sandbox for the dependencies here:
http://howistart.org/posts/haskell/1

The short version:

mkdir project && cd project && cabal sandbox init && cabal install vector
&& cabal repl

Hope this helps,
Chris

On Thu, May 28, 2015 at 4:01 PM, Brandon Allbery <allbery.b at gmail.com>
wrote:

> On Wed, May 27, 2015 at 4:15 AM, Dananji Liyanage <dan9131 at gmail.com>
> wrote:
>
>> <interactive>:41:18:
>>     Couldn't match expected type ‘Data.Vector.Vector a’
>>                 with actual type ‘vector-0.10.9.1:Data.Vector.Vector Int’
>>     NB: ‘Data.Vector.Vector’
>>           is defined in ‘Data.Vector’ in package ‘vector-0.10.12.3’
>>         ‘vector-0.10.9.1:Data.Vector.Vector’
>>           is defined in ‘Data.Vector’ in package ‘vector-0.10.9.1’
>>
>
> 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.
>
> You should likely remove one of them --- and in the future use sandboxes
> so that you can avoid this kind of conflict.
>
> --
> brandon s allbery kf8nh                               sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150528/dc063415/attachment.html>


More information about the Beginners mailing list