!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

738 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.org147 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
26 Sep 2025
@sternenseemann:systemli.orgsterni (he/him) yes this also happens in that case, hence you need to overrideScope 09:52:08
@maralorn:maralorn.demaralornA recent ghc version started embedding links to the ghc error index via terminal control codes.14:14:39
@maralorn:maralorn.demaralornThat doesn’t seem to work in nix logs.14:15:07
@maralorn:maralorn.demaralornDoes anyone know how that can be fixed?14:15:23
@maralorn:maralorn.demaralornIf not maybe we should deactivate/strip it?14:15:41
@maralorn:maralorn.demaralorn

Looks like that for me:

<no location info>: warning: [8;;https://errors.haskell.org/messages/GHC-42258GHC-422588;;] [-Wunused-packages]
14:16:36
@alex:tunstall.xyzAlex My guess is that [8;; is some kind of terminal escape code.
Although undesirable, does disabling colours work?
15:03:59
@teoc:matrix.orgTeo (he/him)A quick glance at the GHC codebase points me to GHC.Types.Errors where it seems like this is always emitted irrespective of whether you are in a fancy terminal. We probably shouldn't do that15:06:29
@teoc:matrix.orgTeo (he/him)Ah wait no it is a setting15:06:50
@teoc:matrix.orgTeo (he/him) yeah it determines if your terminal supports colours and only uses it in that case. And you can disable it with fprint-error-index-links=never 15:08:23
@maralorn:maralorn.demaralornYeah, but are we sure that nix can’t forward that? I mean it can forward colors.15:14:09
@b:chreekat.netchreekatSounds like something in the chain does not understand the encoding. Maybe something (nix?) is special cased for colors but not that17:04:37
@maralorn:maralorn.demaralornSounds likely.17:12:11
@maralorn:maralorn.demaralornMight be worth to open a nix issue about it.17:12:25

Show newer messages


Back to Room ListRoom Version: 6