EstebanMarin Posted on Feb 5, 2025 Explain to me how to nix and Haskell properly. #haskell #nix #functional 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 (2) Subscribe Submit Preview Dismiss Collapse Expand Akshay Nair Akshay Nair Akshay Nair Follow Look at this fucking nerd. Just look at him... What a loser Joined Jan 13, 2019 • Feb 6 '25 Dropdown menu Copy link Hide 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... Collapse Expand Andrew Andersen Andrew Andersen Andrew Andersen Follow Pronouns he/him Joined May 14, 2019 • Mar 20 '25 Dropdown menu Copy link Hide You can base of my set up here. It uses stackage snapshot, stacklock2nix and nix-vscode-extensions. Code of Conduct • Report abuse
Top comments (2)
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...
You can base of my set up here. It uses stackage snapshot, stacklock2nix and nix-vscode-extensions.