Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Gabriel Gonzalez's haskell-nix is a far more palatable introduction tutorial, then they can make the choice of whether or not to buy into IOHK's haskell.nix ecosystem if it suits their needs.
I also prefer stack for development, but I use nix to deploy to production. This way, I can install ad-hoc system dependencies locally and play with them during development as well as enjoy the bits and pieces of Haskell ergonomics stack affords, and once I'm happy with what I have, I "nixify" those dependencies as part of the project nix configuration and send them to production without fear. I use IOHK's excellent haskell.nix infrastructure to nixify my stack-based Haskell project, which makes it trivial to maintain a nix configuration that's always in sync with my stack configuration.
https://github.com/haskell/cabal/issues/4646#issuecomment-528600067
Official nixpkgs pretty much already supports static binaries, except it is currently broken right now due to: https://github.com/NixOS/nixpkgs/issues/118731
Not sure what kind of project you have, but for any starter this will be enough for a long run: https://github.com/avanov/nix-cabal-simplest It works no worse than Stack, probably even better, since Stack doesn't support all Cabal stanzas.
The project was pushed on Github. The readme.md (hopefully) contains all the needed information to run locally and some useful links to nix/stack-with-nix etc.