Skip to content

Commit

Permalink
languageServe: fix haskell type
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Feb 3, 2023
1 parent 5029ae6 commit fc1128d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ in {
'';
};
haskell = lib.mkOption {
type = types.functionTo types.package;
description = "Python language server";
type = types.package;
description = "Haskell language server";
default = config.nixpkgs.haskell-language-server;
example = lib.literalExample ''
config.nixpkgs.haskell-language-server.override { supportedGhcVersions = [ "90" "94" ]; };
Expand Down Expand Up @@ -140,6 +140,7 @@ in {
poetry2nix
;

# all of packages should be kept in extraPackages, instead of runtimePackages
extraPackages = ps:
(lib.optionals (enabledLanguage "python" "lsp") [
(config.jupyterlab.extensions.languageServers.python ps)
Expand Down

0 comments on commit fc1128d

Please sign in to comment.