News for hackers. Stuff that matters.
Re:Exploratory Haskell (2015) by Parsonsmatt on Saturday November 19, 2016 @10:02AM (#12993743)
Writing code. Failing. Trying again and again. Slowly, at some point, it starts clicking, and before you know it, you're much more productive than you used to be in Ruby or whatever else, and then you're cursed by lambda.

I wrote this as an exploratory bit of Haskell before I knew monad transformers : http://www.parsonsmatt.org/2015/05/02/scotty_and_persistent....

Three months after that, I had a fulltime Haskell internship, and a year after that, I'm working full time doing Haskell.

Re:Exploratory Haskell (2015) by progman on Saturday November 19, 2016 @02:15PM (#12995088)
How did you overcome the cabal hell? Sandbox? VM? Nix? ...
Re:Exploratory Haskell (2015) by nilkn on Saturday November 19, 2016 @02:35PM (#12995184)
Just use stack these days:

https://docs.haskellstack.org/en/stable/README/

It's easy to use and completely solves the problem. I could never use Haskell seriously until I found stack.

Re:Exploratory Haskell (2015) by progman on Sunday November 20, 2016 @08:58AM (#12998843)
It may be easy to use but hard to install if you don't want to depend on binary downloads. Since I always prefer source compilation for reproducible installations on new platforms I tried to install an up-to-date Haskell platform on Debian 7 to use stack. After being stuck in the cabal hell again I tried several upgrades and downgrads of ghc just to make a cabal upgrade. Nothing worked. I couldn't even compile the built-in cabal-install of ghc. At least this should work.

Haskell is a really nice language, and I admire the work of the developers who provide GHC for free, but installation from source is really immature and painful, at least on Linux. If the Haskell platform were just self-hosting ...

Re:Exploratory Haskell (2015) by nilkn on Sunday November 20, 2016 @11:17AM (#12999531)
That's an interesting point. I've never tried to build it directly from source. I'm not sure if this actually addresses what you want to do, but maybe you could start with the prebuilt binaries and then do `stack upgrade`, which will fetch and build the latest release from source?

I will say that I won't touch the Haskell platform with a 10 foot pole. I had nothing but issues with it in the past and it drove me away from using Haskell for years prior to finding stack.

Re:Exploratory Haskell (2015) by progman on Sunday November 20, 2016 @12:54PM (#13000084)
> start with the prebuilt binaries and then do `stack upgrade`

Thanks but in this case I could also download the newest binaries instantly. The point is that I don't want to be dependent on any binaries. Compilation from scratch doesn't work.

Btw Rust has the same problem - it also depends on binary upgrades. Nim (nim-lang.org) proves how easy self-hosting can be - which also means how easy porting to other platforms can be.

Re:Exploratory Haskell (2015) by Parsonsmatt on Saturday November 19, 2016 @10:36PM (#12997126)
I've never experienced cabal hell since stack came around.