!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

719 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org143 Servers

Load older messages


SenderMessageTime
2 Dec 2025
@mequbic:matrix.orgiqubic (she/her)I see16:50:48
@mequbic:matrix.orgiqubic (she/her) maralorn: Would you be able to tell me how to modify my shell.nix to disable HLS for now? 16:54:57
@maralorn:maralorn.demaralorndisable HLS or disable hlint?17:00:35
@maralorn:maralorn.demaralorn iqubic (she/her): You need to apply haskell.lib.compose.disableCabalFlag "hlint" to hls. 17:03:08
@maralorn:maralorn.demaralorn e.g. packages = p: [(haskell.lib.compose.disableCabalFlag "hlint" p.haskell-language-server)] or something similar. 17:03:51
@maralorn:maralorn.demaralorn * e.g. buildInputs = [(haskell.lib.compose.disableCabalFlag "hlint" pkgs.haskell-language-server)] or something similar. 17:04:11
@maralorn:maralorn.demaralorn * e.g. buildInputs = [(pkgs.haskell.lib.compose.disableCabalFlag "hlint" pkgs.haskell-language-server)] or something similar. 17:04:22
@mequbic:matrix.orgiqubic (she/her)Actually, I can just tell Emacs to disallow HLint code action stuff. Would that be sufficient for now?17:06:59
@mequbic:matrix.orgiqubic (she/her) maralorn: What do you think? 17:07:10
@maralorn:maralorn.demaralornYou can tell emacs to deactivate the hlint plugin.17:07:50
@maralorn:maralorn.demaralornI don’t know if disabling the code actions does suffice. I think the crash already happens on calculation of available code actions so you have to be early enough.17:08:36
@maralorn:maralorn.demaralorn* I don’t know if disabling the code actions does suffice. I think the crash already happens on calculation of available code actions so you have to be "early enough".17:08:45
@mequbic:matrix.orgiqubic (she/her)

This isn't working for me (pkgs.haskell.lib.compose.disableCabalFlag "hlint" pkgs.haskell-language-server)

LATITUDE-NIXOS hs/aoc25 » nix-shell                                                                         127 ↵
fetching path input 'path:/nix/store/3w2nr2aq2gp76nb6lh1alx6h10mwvp5d-source'
building '/nix/store/mlbpkxipyf763cm4hcanls6wp3mm5vb1-cabal2nix-aoc25.drv'...
error:
       … while evaluating an expression to select 'drvPath' on it
         at «internal»:1:552:
       … while evaluating strict
         at «internal»:1:552:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: function 'anonymous lambda' called with unexpected argument 'mkDerivation'
       at /nix/store/3w2nr2aq2gp76nb6lh1alx6h10mwvp5d-source/pkgs/development/tools/haskell/haskell-language-server/withWrapper.nix:1:1:
            1| {
             | ^
            2|   lib,

       note: trace involved the following derivations:
       derivation 'aoc-shell'
17:14:55
@mequbic:matrix.orgiqubic (she/her) maralorn: What should I do here? 17:17:03
@maralorn:maralorn.demaralornOoh17:21:28
@maralorn:maralorn.demaralornreplace pkgs.haskell-language-server with pkgs.haskellPackages.haskell-language-server.17:21:57
@mequbic:matrix.orgiqubic (she/her) maralorn: Ta! It works now! 17:25:34
20 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".22:10:58
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".22:10:58
@grahamc:nixos.org@grahamc:nixos.org invited @maralorn:maralorn.demaralorn.22:11:05
@maralorn:maralorn.demaralorn joined the room.22:11:13
@andi:kack.itandi- joined the room.22:30:49
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.22:36:42
Room Avatar Renderer.22:46:20
@maralorn:maralorn.demaralorn changed the join rule to "public" from "public".22:54:26
@maralorn:maralorn.demaralorn changed the room topic to "For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/" from "For discussions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/".22:56:19
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.23:05:49
@pennae:matrix.eno.spacepennae joined the room.23:06:26
@justinrestivo:matrix.orgjustinrestivo joined the room.23:07:39
@srid:matrix.orgsrid joined the room.23:07:41

Show newer messages


Back to Room ListRoom Version: 6