This is what I consider project nirvana: No global state You’re probably best off just using Stack. If you’re just starting out with Haskell, this guide is not for you. In this post I will outline what I think is currently the best way of setting up a Haskell project. Of course, just compiling a project is not that hard, it’s when you have multiple projects, spanning multiple compiler versions, all requiring tooling compiled with the right GHC version, that things quickly turn into a mess. If you’ve ever tried to set up a Haskell project, you know that it can be extremely frustrating to get to a point where everything just werks 1. To get started quickly, use the template-haskell project template. Tl dr: Nothing beats Haskell.nix for features and flexibility. It works the exact same way, just clone and run the wizard.sh script. I might properly update this post at some point, but for now, the template-haskell repo has a no-haskell-nix branch that you can use. I no longer use the approach described below myself. The regular Nix infrastructure has improved, and now works better in 99% of cases. ← Back The working programmer’s guide to setting up Haskell projects
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |