Our great sponsors
-
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.
-
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.
and need to change my stack to use a newer version of ghc that nixpkgs switched to like ghc8106. This is actually open as an issue in the stack project https://github.com/commercialhaskell/stack/issues/4539. However it's more than just a stack issue, even if stack were to fix this part of the problem is haskell-language-server that runs haskell-lsp keeps updating its supported ghc versions. Fixing stack but being unable to use my development environment doesn't do me much good.
Use direnv: https://direnv.net/ (nix package - you could probably look at nix-direnv) and then use https://github.com/purcell/envrc with emacs, whenever you load a file that's in a project with a .envrc file emacs will get your nix environment for that project (shell.nix)
Use direnv: https://direnv.net/ (nix package - you could probably look at nix-direnv) and then use https://github.com/purcell/envrc with emacs, whenever you load a file that's in a project with a .envrc file emacs will get your nix environment for that project (shell.nix)
Here: I threw together an example (without flakes): https://github.com/erikbackman/nix-haskell-example