Haskell: Difference between revisions

DHCP (talk | contribs)
m style: add missing "$" prefix, use lang=console, remove unneeded spaces - where needed
DHCP (talk | contribs)
m Further reading: clean the link text
 
(One intermediate revision by the same user not shown)
Line 226: Line 226:
=== Using haskell-flake (flake-parts) ===
=== Using haskell-flake (flake-parts) ===


[https://community.flake.parts/haskell-flake haskell-flake] is a project that aims to simplify writing Nix for Haskell development through use of [[Flake Parts|flake-parts module system]]. It uses <code>callCabal2nix</code> and <code>shellFor</code> under the hood while exposing friendly module options API. For an overview of Flakes, see the [[Flakes]] wiki page.
[https://haskell.nixos.asia/ haskell-flake] is a project that aims to simplify writing Nix for Haskell development through use of [[Flake Parts|flake-parts module system]]. It uses <code>callCabal2nix</code> and <code>shellFor</code> under the hood while exposing friendly module options API. For an overview of Flakes, see the [[Flakes]] wiki page.


* For existing Haskell projects, initialize with:
* For existing Haskell projects, initialize with:
Line 300: Line 300:
==== Further reading ====
==== Further reading ====


* [https://github.com/srid/haskell-template/tree/master Example Haskell project with a development environment]
* [https://github.com/srid/haskell-template Example Haskell project with a development environment]


* [https://github.com/srid/haskell-multi-nix/tree/master Example cabal.project multi-package Haskell project]
* [https://github.com/srid/haskell-multi-nix Example cabal.project multi-package Haskell project]


* [https://community.flake.parts/haskell-flake/start Getting started with haskell-flake].
* [https://haskell.nixos.asia/start Getting started with haskell-flake].


* [https://community.flake.parts/haskell-flake/dependency Overriding dependencies in a haskell-flake]
* [https://haskell.nixos.asia/dependency Overriding dependencies in a haskell-flake]


* [https://flake.parts/options/haskell-flake haskell-flake haskell-flake options reference]
* [https://flake.parts/options/haskell-flake haskell-flake options reference]


== Overrides ==
== Overrides ==