`doom-apply-ansi-color-to-compilation-buffer-h` does not work when compiling Haskell code (GHC)
- 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
Assessment
This issue has not been assessed yet.