News for hackers. Stuff that matters.
Re:Stack – a Haskell development tool by deckiedan on Tuesday June 09, 2015 @02:27PM (#9687667)
This looks pretty cool - I hope it works. I couldn't download the ubuntu package, as download.fpcomplete.com is unreachable here. I downloaded the linux-generic package, but it seems to be a bit older, and so doesn't cope w/o a stack.yaml file.

OK - now with a stack.yaml file it's busy getting me a ghci...

cabal hell was one of the first things that really put me off haskell. I was downloading and trying to get xmonad working, but within half an hour, had a completely unusable ghc / xmonad combination. I think I was on debian, and the version of ghc that was installed wasn't compatible with the correct versions of various libs that xmonad wanted to have installed... Very frustrating.

Well, looks like installing stack does at least allow me to get a ghci up and running. That's cool. The easier getting haskell up and running becomes, the better. It's a wacky and esoteric language enough without it being hard to get going...

Interesting how programming languages "need" their own package manager these days. A bit of a pain that there's no universal one for all languages, but I guess that would be just too convenient...

Re:Stack – a Haskell development tool by davexunit on Tuesday June 09, 2015 @02:51PM (#9687822)
>A bit of a pain that there's no universal one for all languages, but I guess that would be just too convenient...

Nix and GNU Guix are capable of filling this role. Not only can they do the things that the typical system package managers (dpkg, yum) lack, but they also do many things that language-specific package managers lack. Transactional upgrades, rollbacks, unprivileged package installation, gracefully handling multiple versions of the same software, system-wide deduplication, full system configuration (if you want to use their associated distro), etc.

I have read several Nix + Haskell success stories on various blogs, so I would say it's worth checking out. Nix and Guix are the future of package management.

Re:Stack – a Haskell development tool by chriswarbo on Tuesday June 09, 2015 @03:15PM (#9687961)
Nix is pretty great.

Something to be aware of for Haskell: Nix's Haskell infrastructure has gone through a big breaking change recently. It's settled down now, and the new system (AKA "haskell NG") is much nicer, but all of the "stable" releases are using the old system, and a lot of blog posts, etc. online are now out of date.

Re:Stack – a Haskell development tool by cr__ on Tuesday June 09, 2015 @03:40PM (#9688092)
Do you have any links on how the new system is supposed to work? I'm trying to piece it together and I'm not having much luck.
Re:Stack – a Haskell development tool by loevborg on Tuesday June 09, 2015 @04:09PM (#9688244)
As I understand it, the corresponding section of the nixpkgs manual is being written as we speak; when this is done, it should reflect the new haskell infrastructure which was merged a few months ago (no longer called haskell-ng any more btw). In the meantime, here are a few links to get you started:

https://twitter.com/garbas/status/601717689225187328 -- a recent presentation w/ accompanying slides introducing Nix's new haskell infrastructure by github.com/peti, the maintainer

https://nixos.org/wiki/Haskell

http://wiki.ocharles.org.uk/Nix

http://stackoverflow.com/questions/29033580/how-do-i-use-the...

Re:Stack – a Haskell development tool by cr__ on Tuesday June 09, 2015 @04:23PM (#9688311)
The ocharles link is exactly what I'm looking for. Thanks so much.
Re:Stack – a Haskell development tool by rev on Tuesday June 09, 2015 @03:56PM (#9688175)
Re:Stack – a Haskell development tool by borsboom on Tuesday June 09, 2015 @11:04PM (#9689838)
> I couldn't download the ubuntu package, as download.fpcomplete.com is unreachable here.

download.fpcomplete.com is served directly from an S3 bucket. You can try replacing download.fpcomplete.com with s3.amazonaws.com/download.fpcomplete.com (e.g. http://s3.amazonaws.com/download.fpcomplete.com/ubuntu/fpco....), and see if that helps. Either way, I'd be interested to know who your ISP and/or if you're behind a corporate or national firewall.

Re:Stack – a Haskell development tool by deckiedan on Wednesday June 10, 2015 @02:03AM (#9690334)
No corp. firewall here - at home, in Carlisle, UK. ISP is talktalk.