From 6fbaf7fe893a53e277ebaa70dfdf43e8da687ce7 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Wed, 3 Sep 2025 00:37:55 +1000 Subject: [PATCH] add haskell support --- homes/modules/editor/helix.nix | 10 ++++++++++ hosts/lolcathost/default.nix | 3 +++ hosts/myputer/default.nix | 3 +++ 3 files changed, 16 insertions(+) diff --git a/homes/modules/editor/helix.nix b/homes/modules/editor/helix.nix index e7d6003..3c1443d 100755 --- a/homes/modules/editor/helix.nix +++ b/homes/modules/editor/helix.nix @@ -136,6 +136,12 @@ formatter.command = "${pkgs.clang-tools}/bin/clang-format"; language-servers = ["clangd"]; } + { + name = "haskell"; + auto-format = true; + formatter.command = "${pkgs.ormolu}/bin/ormolu"; + language-servers = ["haskell-language-server"]; + } ]; language-server = { @@ -149,6 +155,10 @@ clangd = { command = "${pkgs.clang-tools}/bin/clangd"; }; + + haskell-language-server = { + command = "${pkgs.haskell-language-server}/bin/haskell-language-server-wrapper"; + }; }; }; }; diff --git a/hosts/lolcathost/default.nix b/hosts/lolcathost/default.nix index 2450c55..765118b 100755 --- a/hosts/lolcathost/default.nix +++ b/hosts/lolcathost/default.nix @@ -253,6 +253,9 @@ in { nimble # Go go + # Haskell + ghc + ghcid # Python python312 # I use 3.12 since it's in a pretty stable state now diff --git a/hosts/myputer/default.nix b/hosts/myputer/default.nix index b0c8f6c..dc525f9 100755 --- a/hosts/myputer/default.nix +++ b/hosts/myputer/default.nix @@ -254,6 +254,9 @@ in { nimble # Go go + # Haskell + ghc + ghcid # Python python312 # I use 3.12 since it's in a pretty stable state now