Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haskell: Fix error when languageServer is set to null #645

Merged
merged 1 commit into from
Jun 3, 2023

Conversation

sestrella
Copy link
Contributor

The languageServer option type inside the haskell language module is set to lib.types.nullOr lib.types.package, however, the packages section does not check for null values causing the following error:

error: A definition for option `perSystem.aarch64-darwin.devenv.shells.default.packages."[definition 1-entry 2]"' is not of type `package'. Definition values:
       - In `/nix/store/95czchz5fgjcak3y1y5cizx22irqa09w-source/src/modules/languages/haskell.nix': null

Relevant code snippet:

languages.haskell = {
  enable = true;
  languageServer = null;
};

@sestrella sestrella force-pushed the haskell/fix-language-server branch from 0f607fe to 4618f40 Compare June 3, 2023 04:25
@sestrella sestrella changed the title haskell: Fix error when languageServer is set to null haskell: Fix error when languageServer is set to null Jun 3, 2023
@domenkozar domenkozar merged commit 873e790 into cachix:main Jun 3, 2023
@sestrella sestrella deleted the haskell/fix-language-server branch June 3, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants