Apologies if this is atrivial question but I know next to nothing
about Haskell but I am attempting to install eclipsefp to
learn about it but have not had success.
I downloaded the source for scion and attempted to install
it but the configure fails with:
:~/scion$ runhaskell Setup.hs configure
Setup.hs: At least the following dependencies are missing:
binary ==0.5.* && ==0.5.*,
ghc-paths ==0.1.* && ==0.1.*,
ghc-syb ==0.1.* && ==0.1.*,
hslogger ==1.0.* && ==1.0.*,
json ==0.4.* && ==0.4.*,
list-tries ==0.1.* && ==0.1.*,
multiset ==0.1.* && ==0.1.*,
I have installed:
And the following libraries via cabal:
It seems like only multiset is wrong because it has
version 0.2 when 0.1 is required. Note also that
even though I have these libraries set-up,
scion still complaints that I have them missing.
My question is: how can I circumvent this issue?
I think the easier is to type **cabal install** at the root of the scion source. This will pull the dependencies from cabal and install scion. Otherwise first install scion from cabal (**cabal install scion**) then run **runhaskell Setup.hs configure** on the source
Using **cabal install** worked fine. <br>
After some reading up I also realized that because my
ghc is a local install I should do a: <br>
**runhaskell Setup.hs configure -user**
But then I get::<br>
Warning: This package indirectly depends on multiple versions of the same<br>
package. This is highly likely to cause a compile failure.<br>
package utf8-string-0.3.6 requires bytestring-0.9.1.4<br>
package network-bytestring-0.1.2.1 requires bytestring-0.9.1.4<br>
package json-0.4.3 requires bytestring-0.9.1.4<br>
package ghc-6.10.4 requires bytestring-0.9.1.4<br>
package binary-0.5.0.2 requires bytestring-0.9.1.4<br>
package scion-0.1.0.2 requires bytestring-0.9.1.5<br>**
When I check via cabal for the latest of bytestring it is
in version 0.9.1.5.
And in fact when I execute:<br>
**runhaskell Setup.hs build**<br>
I get a compilation error:<br>
Couldn't match expected type `S.ByteString'
against inferred type `bytestring-0.9.1.4:Data.ByteString.Internal.ByteString'
In the expression: str
In the first argument of `L.fromChunks', namely `'
In the first argument of `return', namely
Couldn't match expected type `bytestring-0.9.1.4:Data.ByteString.Internal.ByteString'
against inferred type `S.ByteString'
In the second argument of `send', namely `str'
In a stmt of a 'do' expression: sent <- send sock str
In the expression:
do let l = S.length str
sent <- send sock str
if (sent /= l) then
$ (show l)
++ " bytes to be sent but could only sent : " ++ (show sent)
So I don't know if this an error in my ghc set-up, the cabal set usage or what. I have reported this here because I think it may be of interest
OK, I will try to update my scion install and see, maybe it's been updated recently, and I'll let you know how it goes for me. In the meantime, maybe you can hook up directly with the scion development at http://code.google.com/p/scion-lib/
Ok, I will stick to the http://code.google.com/p/scion-lib/ lists
and forums about this issue. <br>
Hope you merge this stuff onto the main branch soon, avoids this type of cross-posting. <br>My apologies for any inconvenience.
Thanks for the help.
Don't be sorry, I'm delighted to see people using eclipsefp.
Er, I've updated scion from github (branch devel) and it doesn't require bytestring-0.9.1.5. ghc-pkg list tells me I have bytestring-0.9.1.4.
Ok, I must have messed up somewhere.<br>
I repeated the process more than once so the difference may be in my ghc install.
Anyway I have scion + eclipsefp working so I can start exploring Haskell.<br>
Thanks for the help.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.