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

There is also a stack tool,
Thank you. It is very interesting. Why were new tools introduced instead of adding new functionality to cabal? A mix of packaging tools may lead to confusion.

On 10/07/15 16:30, Imants Cekusins wrote:
There is also a stack tool,
Thank you. It is very interesting.
Why were new tools introduced instead of adding new functionality to cabal?
A mix of packaging tools may lead to confusion.
Hi, There is a blog post over at FP complete that attempts to answer these questions: https://www.fpcomplete.com/blog/2015/06/why-is-stack-not-cabal Bjørn Øivind

Thank you very much Bjørn. Are Stackage packages - a subset of Hackage packages? Do packages get uploaded to Hackage and then get transferred to Stackage? It would be nice to agree to merge Hackage & Stackage, cabal-install & stack one day. Without this merge the "DLL-mess" might get worse.

On Fri, Jul 10, 2015 at 10:48 AM, Imants Cekusins
Are Stackage packages - a subset of Hackage packages? Do packages get uploaded to Hackage and then get transferred to Stackage?
Stackage is a curated subset of Hackage. (Sadly, the main criterion for curation is "works with Yesod", so you get to take your chances if you're not using Yesod.) It's more an alternative to the Haskell Platform, since Yesod always wants newer stuff. (De facto the Haskell Platform is irrelevant, since everyone is rushing pell-mell to tie themselves to Yesod via Stackage. We're Ruby now! When the ecosystem is defined by a web platform, the ecosystem *becomes* the web platform. This might even work for you; for me, it's a cliff rushing ever closer.) -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On 10/07/15 16:48, Imants Cekusins wrote:
Thank you very much Bjørn.
Are Stackage packages - a subset of Hackage packages? Do packages get uploaded to Hackage and then get transferred to Stackage?
It would be nice to agree to merge Hackage & Stackage, cabal-install & stack one day. Without this merge the "DLL-mess" might get worse.
My experience from playing around with stack the last couple of nights have been that Stackage is indeed a subset of Hackage packages, but that it is possible (and fairly easy - if not very documented) to use packages from Hackage with stack as well. One caveat - depending on how you look at it - is that you end up specifying these packages with specific versions in the stack.yaml file for your project. I personally believe that both a curated subset of "known good" packages like Stackage and the complete set of packages like Hackage can co-exist to their mutual benefit. I can certainly see the appeal of stack - I rather like it so far. Bjørn Øivind

Well if Stackage packages ⊂ Hackage packages, there is choice: If you need the added benefits Stackage gives, "upgrade". Otherwise can stay with Hackage. ?

On 10/07/15 17:06, Imants Cekusins wrote:
Well if Stackage packages ⊂ Hackage packages, there is choice:
If you need the added benefits Stackage gives, "upgrade". Otherwise can stay with Hackage.
?
There's nothing stopping you from using Stackage in addition to Hackage. As an example, I used stack to create a new app-skeleton last night. One of the packages I wanted to use was the FFT package not available in Stackage. I just added it to the .cabal file, and ran "stack solver": % stack solver This command is not guaranteed to give you a perfect build plan It's possible that even with the changes generated below, you will still need to do some manual tweaking Asking cabal to calculate a build plan, please wait flags: carray: bytestringinbase: false extra-deps: - carray-0.1.5.2 - fft-0.1.8.1 - ix-shapable-0.1.0 Resulting in the following stack.yaml file: % cat stack.yaml flags: carray: bytestringinbase: false packages: - '.' extra-deps: - carray-0.1.5.2 - fft-0.1.8.1 - ix-shapable-0.1.0 resolver: nightly-2015-07-08 When building using "stack build", it automatically downloaded, configured and installed all my dependencies. No worrying about sandboxes (because stack handles this gracefully by default as far as I can tell) and no problems getting this simple skeleton up and running. Note that I used the nightly resolver simply because I wanted to use GHC 7.10 which I already had installed. There are multiple resolvers available (for GHC 7.8 and an LTS version with GHC 7.10 looks to arrive shortly after GHC 7.10.2 has been released: https://groups.google.com/forum/#!topic/stackage/Ux7ideofwIA) Bjørn Øivind

.. does stack also allow to reference local packages (not on Hackage)? I just began to learn cabal so maybe it is early for me to switch to stack yet. One thing at a time :)

On 10/07/15 17:33, Imants Cekusins wrote:
.. does stack also allow to reference local packages (not on Hackage)?
I just began to learn cabal so maybe it is early for me to switch to stack yet. One thing at a time :)
I believe so, but I have not tried it yet. Check out the wiki on Github: https://github.com/commercialhaskell/stack/wiki/FAQ#i-need-to-use-a-package-... Maybe that works for you? I must admit that I am still quite green at Haskell infrastructure/tooling stuff, but I have still had a fair amount of trouble with cabal-install, so trying stack was a no-brainer for me at least :) Bjørn Øivind

If you have questions getting started, feel free to ask them over on the stack mailing list[1], you'll find many very helpful people over there.
From quickly scanning this thread, I don't see any use cases that aren't handled well by stack, but I'd rather not spam the beginner mailing list with details of how to make it all happen.
I would also recommend reading the wiki pages, which give quite a bit of
information on various use cases.
[1] https://groups.google.com/d/forum/haskell-stack
On Fri, Jul 10, 2015 at 8:39 AM Bjørn Øivind Bjørnsen
On 10/07/15 17:33, Imants Cekusins wrote:
.. does stack also allow to reference local packages (not on Hackage)?
I just began to learn cabal so maybe it is early for me to switch to stack yet. One thing at a time :)
I believe so, but I have not tried it yet. Check out the wiki on Github:
https://github.com/commercialhaskell/stack/wiki/FAQ#i-need-to-use-a-package-...
Maybe that works for you?
I must admit that I am still quite green at Haskell infrastructure/tooling stuff, but I have still had a fair amount of trouble with cabal-install, so trying stack was a no-brainer for me at least :)
Bjørn Øivind
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
participants (4)
-
Bjørn Øivind Bjørnsen
-
Brandon Allbery
-
Imants Cekusins
-
Michael Snoyman