doomemacs / doomemacs/core

`doom-apply-ansi-color-to-compilation-buffer-h` does not work when compiling Haskell code (GHC)

Open
#6,222 11 comments 0 reactions 0 assignees View on GitHub
:lang haskell core is:bug
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

Compilation finishes without error messages.

### What actually happened?

Various errors are reported by `doom-apply-ansi-color-to-compilation-buffer-h` which fails to colorize the compilation output of GHC.

### Describe your attempts to resolve the issue

I added
```
;; Compile.
(after! compile
;; The ANSI color hook leads to errors when compiling Haskell code.
(remove-hook 'compilation-filter-hook #'doom-apply-ansi-color-to-compilation-buffer-h))
```
to my configuration. Then, compilation with GHC works perfect (with colors). However, compilation with `gcc` is now ugly.

Is there an option to turn this hook off for specific modes only?

### Steps to reproduce

Compile Haskell code or C code.

### System Information

https://pastebin.com/bpxTuqSc

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.