haskell-mode icon indicating copy to clipboard operation
haskell-mode copied to clipboard

Color escape sequences from `cabal repl` causing garbled output (Cabal 3.10.1.0)

Open sirlensalot opened this issue 2 years ago • 5 comments

Example:

image

Might be something introduced in Cabal 3.10.x + GHC 9.6. Breaks linting.

sirlensalot avatar Aug 20 '23 01:08 sirlensalot

Might be a cabal issue, I opened https://github.com/haskell/cabal/issues/9188 , since passing ghc option -fdiagnostics-color=never doesn't do anything to help.

However it would also be nice to set up the terminal as not ANSI color? I presume the default is auto which means it will try to detect.

sirlensalot avatar Aug 20 '23 02:08 sirlensalot

Hmm, haskell-compile doesn't have this issue

image

sirlensalot avatar Aug 20 '23 02:08 sirlensalot

A colleague of mine has the same issue, but on GHC 9.4 (and I think even before that), while us others don't. AFAIK he had it on x86_64 macOS as well as aarch64 macOS. We have other macOS laptops that don't have this problem, using the same tooling (cabal, ghc etc. coming from the same nix development environment).

kenranunderscore avatar Feb 21 '24 08:02 kenranunderscore