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

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

Open
sirlensalot opened this issue Aug 20, 2023 · 3 comments

Comments

@sirlensalot
Copy link
Contributor

sirlensalot commented Aug 20, 2023

Example:

image

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

@sirlensalot
Copy link
Contributor Author

Might be a cabal issue, I opened haskell/cabal#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
Copy link
Contributor Author

Hmm, haskell-compile doesn't have this issue

image

@kenranunderscore
Copy link

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).

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

No branches or pull requests

2 participants