4 ms·
My advice would be start with stack and hpack, and remain with your editor or IDE of choice to start with. Learning any new language is difficult enough without
by cyclinghacker 9y ago
My advice would be start with stack and hpack, and remain with your editor or IDE of choice to start with. Learning any new language is difficult enough without having to also deal with a different workflow.
This is my recipe for starting with haskell and intellij:
- install stack, run `stack new helloworld simple-hpack`
- make sure it builds: `cd helloworld && stack test --exec helloworld`
- install https://github.com/rikvdkleij/intellij-haskell https://github.com/rikvdkleij/intellij-haskell and follow the `Getting started' guide
- marcosdumay 9y ago> My advice would be start with stack and hpack Interesting. I would advice to start with plain cabal. One has to learn how to deal with cabal anyway, so there's no point adding stack on top of it from the start.
- bsummer4 9y agoOne has to learn how to deal with cabal anyway Nah, I haven't used cabal-install in years now. Because of hpack, you don't even need to write .cabal files. The only time I touch cabal is when I need to write Setup.hs files, which is, mercifully, quite rare.
- st1ck 9y ago> One has to learn how to deal with cabal anyway With *.cabal project files yes, for sure. But `stack` has completely replaced `cabal` command for me. I don't even have it installed.