![]() #!nix-shell -pure -i runghc -p "haskellPackages.ghcWithPackages (pkgs: )" You can get the full list of available GHC versions using:įor simple scripts, you can directly use nix-shell to get a redistributable Haskell script that you can run on any Nix system with. However you can use a different version by replacing haskellPackages with the wanted package, for instance use 884 to use GHC 8.8.4. Note that in the following, haskellPackages is a synonym of where XYZ is the current default version of GHC in nixpkgs. Below is an image to help you in your choice: There are multiples ways to develop in Haskell on Nix depending on the simplicity of the project and on whether one want to benefit from the reproducibility offered by nix or not. How to fix broken Haskell packages? (video).How are Haskell packages managed in nixpkgs?.Super-Simple Haskell Development with Nix (and discussion that provides interesting alternative methods together with there pro and cons).The official documentation (the manual directly points to this ressource).Nix recipes for Haskellers aims to get a beginner comfortable managing simple Haskell programs and projects using Nix.2.6 Using haskell.nix (for complex projects).2.4 Using developPackage (use the nix packages set for haskell).2.2 Directly using cabal (no nix caching/reproducibility).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |