cabal install snap-server-0.9.5.1: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1

Hi Could anyone explain this to me, please? $ cabal install snap-server-0.9.5.1 Resolving dependencies... Configuring snap-server-0.9.5.1... cabal: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1 cabal: Error: some packages failed to install: snap-server-0.9.5.1 failed during the configure step. The exception was: ExitFailure 1 Where does this unsatisfiable dependency come from? snap-server-0.9.5.1 seems to require just attoparsec (>=0.10 && <0.14): http://hackage.haskell.org/package/snap-server-0.9.5.1 . And attoparsec 0.13.0.1 is already installed: $ cabal list --installed attoparsec * attoparsec Synopsis: Fast combinator parsing for bytestrings and text Default available version: 0.13.0.1 Installed versions: 0.13.0.1 Homepage: https://github.com/bos/attoparsec License: BSD3 * attoparsec-enumerator Synopsis: Pass input from an enumerator to an Attoparsec parser. Default available version: 0.3.4 Installed versions: 0.3.4 Homepage: https://john-millikin.com/software/attoparsec-enumerator/ License: MIT I am trying to install hakyll 4.6.*, and snap-server seems to be one of the requirements. Hakyll 4.6.* is an old version but AFAIR I need that due to conflicting versions of containers. Thanks! -- http://people.eisenbits.com/~stf/ http://www.eisenbits.com/ OpenPGP: 9EC2 5620 2355 B1DC 4A8F 8C79 0EC7 C214 E5AE 3B4E

snap-server-0.9.5.1 failed during the configure step.
just a guess: ________ https://hackage.haskell.org/package/snap-server-0.9.5.1/src/snap-server.caba... attoparsec >= 0.10 && < 0.13, ________ this line seems odd: attoparsec >=0.10 && <0.13 && ==0.13.0.1 particularly this part: <0.13 && ==0.13.0.1 maybe try to use sandbox?

On 2015-07-10 14:14, Imants Cekusins wrote:
https://hackage.haskell.org/package/snap-server-0.9.5.1/src/snap-server.caba...
attoparsec >= 0.10 && < 0.13,
But this: https://hackage.haskell.org/package/snap-server-0.9.5.1/snap-server.cabal (no "src/" here) says: attoparsec >= 0.10 && < 0.14, WTF?!? Shouldn't these 2 files be the same? -- http://people.eisenbits.com/~stf/ http://www.eisenbits.com/ OpenPGP: 9EC2 5620 2355 B1DC 4A8F 8C79 0EC7 C214 E5AE 3B4E

attoparsec >= 0.10 && < 0.14,
you could try to change the source cabal file or you could use cabal sandbox. Sandboxes are easy. They allow to install exact versions required by the package. Take a look: http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html

On 2015-07-10 14:36, Imants Cekusins wrote:
you could use cabal sandbox.
I went along these lines: $ cabal update $ cabal install cabal-install $ ~/.cabal/bin/cabal sandbox init $ ~/.cabal/bin/cabal install --only-dependencies --max-backjumps=-1 Then I still had to resolve: Loading package transformers-0.4.3.0 ... ghc: mmap 1400832 bytes at (nil): Operation not permitted ghc: Try specifying an address with +RTS -xm<addr> -RTS Failed to install vector-0.10.12.3 (and similar) but finally made it work. Thanks! -- http://people.eisenbits.com/~stf/ http://www.eisenbits.com/ OpenPGP: 9EC2 5620 2355 B1DC 4A8F 8C79 0EC7 C214 E5AE 3B4E

It looks like the package bounds were changed on hackage though. Your install will probably work with an empty sandbox. Also try asking #snapframework on freenode -- they're very helpful!
Tom
El Jul 10, 2015, a las 8:25, Stanislaw Findeisen
On 2015-07-10 14:14, Imants Cekusins wrote:
https://hackage.haskell.org/package/snap-server-0.9.5.1/src/snap-server.caba...
attoparsec >= 0.10 && < 0.13,
But this: https://hackage.haskell.org/package/snap-server-0.9.5.1/snap-server.cabal (no "src/" here) says:
attoparsec >= 0.10 && < 0.14,
WTF?!?
Shouldn't these 2 files be the same?
-- http://people.eisenbits.com/~stf/ http://www.eisenbits.com/
OpenPGP: 9EC2 5620 2355 B1DC 4A8F 8C79 0EC7 C214 E5AE 3B4E
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

Most of such problems can be solved with LTS (Long Term Support) from Stackage.
https://www.stackage.org/
Take a look.
-------- Original Message --------
Subject: [Haskell-beginners] cabal install snap-server-0.9.5.1: At least the
following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1
From: Stanislaw Findeisen
Hi
Could anyone explain this to me, please?
$ cabal install snap-server-0.9.5.1 Resolving dependencies... Configuring snap-server-0.9.5.1... cabal: At least the following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1 cabal: Error: some packages failed to install: snap-server-0.9.5.1 failed during the configure step. The exception was: ExitFailure 1
Where does this unsatisfiable dependency come from? snap-server-0.9.5.1 seems to require just attoparsec (>=0.10 && <0.14): http://hackage.haskell.org/package/snap-server-0.9.5.1 . And attoparsec 0.13.0.1 is already installed:
$ cabal list --installed attoparsec * attoparsec Synopsis: Fast combinator parsing for bytestrings and text Default available version: 0.13.0.1 Installed versions: 0.13.0.1 Homepage: https://github.com/bos/attoparsec License: BSD3
* attoparsec-enumerator Synopsis: Pass input from an enumerator to an Attoparsec parser. Default available version: 0.3.4 Installed versions: 0.3.4 Homepage: https://john-millikin.com/software/attoparsec-enumerator/ License: MIT
I am trying to install hakyll 4.6.*, and snap-server seems to be one of the requirements. Hakyll 4.6.* is an old version but AFAIR I need that due to conflicting versions of containers.
Thanks!
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

There is also a stack tool, new tool that might be considered a cabal
replacement, developed for solving install problems, and much more. You might
find it interesting. It is stable now and has very active community.
https://github.com/commercialhaskell/stack
It might be worth spending some time and master it.
-------- Original Message --------
Subject: Re: [Haskell-beginners] cabal install snap-server-0.9.5.1: At least the
following dependencies are missing: attoparsec >=0.10 && <0.13 && ==0.13.0.1
From: Imants Cekusins
Stackage
Cheers Vlatko
I was not aware of this initiative. Learnt something new today.
participants (4)
-
amindfv@gmail.com
-
Imants Cekusins
-
Stanislaw Findeisen
-
Vlatko Basic