Some templates I use for new Haskell projects.
I tend to start with basic-prelude, a bunch of common-sense language extensions, -Wall
and other recommended warnings.
Usage:
stack new projectname ~/dir/stack-templates/app.hsfiles
For more info see the stack documentation.
For another approach to the same task, see summoner.
For applications. In addition to BasicPrelude
, it adds a couple dependencies that I always end up using: text
and safe
(for fixed versions of prelude functions like headMay
, tailSafe
, Partial, etc.)
Start a library-only package using BasicPrelude.
Start a new library based on the universum prelude, which seems promising.