DEV Community

EstebanMarin
EstebanMarin

Posted on

Explain to me how to nix and Haskell properly.

Looking for help on how to properly nix with Haskell

TL;DR I am looking for feedback on how to properly Haskell with nix.

The problem

I need to install locally Haskell, with reasonable integration with vscode (LSP as a minimun)

Top comments (1)

Collapse
 
phenax profile image
Akshay Nair

If you want to go the nix flake route then haskell-flake is a pretty decent flake-parts module. Here's the available options: flake.parts/options/haskell-flake

Example project for reference: github.com/phenax/chelleport/blob/...

Otherwise you can create a derivation for the project along with haskell-language-server: github.com/NixOS/nixpkgs/blob/mast...