<div dir="ltr"><div>Sort-of related, I have this setting to honour the escape sequences in my *compile* buffer</div><div><br></div><div>```</div><div>;;----------------------------------------------------------------------<br>;; Enable ansi colours in the compile buffer.<br>;; See <a href="https://stackoverflow.com/questions/3072648/cucumbers-ansi-colors-messing-up-emacs-compilation-buffer#3072831">https://stackoverflow.com/questions/3072648/cucumbers-ansi-colors-messing-up-emacs-compilation-buffer#3072831</a><br>(ignore-errors<br> (require 'ansi-color)<br> (defun my-colorize-compilation-buffer ()<br> (when (eq major-mode 'compilation-mode)<br> (ansi-color-apply-on-region compilation-filter-start (point-max))))<br> (add-hook 'compilation-filter-hook 'my-colorize-compilation-buffer))</div><div>```<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 30 Jul 2022 at 19:54, Henry Laxen <<a href="mailto:nadine.and.henry@pobox.com">nadine.and.henry@pobox.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Cafe,<br>
<br>
Greeting Gentle Haskellers,<br>
<br>
I know this may really be a question for the emacs guys, but I thought<br>
for sure someone here has encoutered the same thing and would<br>
recognize the problem right away.<br>
<br>
Here is my progam:<br>
<br>
module Main where<br>
main = xprint "hi"<br>
<br>
Yes, xprint is intensional, I want an error.<br>
<br>
I am in haskell mode in emacs. I type C-c C-l running<br>
haskell-process-load-file, and get:<br>
<br>
Hours of hacking await!<br>
If I break, you can:<br>
1. Restart: M-x haskell-process-restart<br>
2. Configure logging: C-h v haskell-process-log (useful for debugging)<br>
3. General config: M-x customize-mode<br>
4. Hide these tips: C-h v haskell-process-show-debug-tips<br>
.[;1m/home/henry/a.hs:2:8-13: .[;1m.[31merror:.[0m.[0m.[;1m.[0m.[0m.[;1m …<br>
• Variable not in scope: xprint :: [Char] -> t<br>
• Perhaps you meant ‘print’ (imported from Prelude).[0m.[0m<br>
.[;1m/home/henry/a.hs:2:8-13: .[;1m.[31merror:.[0m.[0m.[;1m.[0m.[0m.[;1m …<br>
• Variable not in scope: xprint :: [Char] -> t<br>
• Perhaps you meant ‘print’ (imported from Prelude).[0m.[0m<br>
Compilation failed.<br>
<br>
but when I swich to the *haskell* buffer and type :r, I get the<br>
beautiful, colorized message:<br>
<br>
[1 of 1] Compiling Main ( /home/henry/a.hs, interpreted )<br>
<br>
/home/henry/a.hs:2:8-13: error:<br>
• Variable not in scope: xprint :: [Char] -> t<br>
• Perhaps you meant ‘print’ (imported from Prelude)<br>
|<br>
2 | main = xprint "hi"<br>
| ^^^^^^<br>
Failed, no modules loaded.<br>
<br>
Where the escape sequences have been interpreted correctly. What do I<br>
have misconfigured? Please point me in a direction. Thanks in<br>
advance.<br>
<br>
Best wishes,<br>
Henry Laxen<br>
<br>
-- <br>
Nadine and Henry Laxen The rest is silence<br>
Gral. Manuel Márquez de León 1301<br>
Onix #2302<br>
Zona Urban Rio Never try to teach a pig to sing;<br>
Tijuana It wastes your time<br>
+52 (333) 667-8633 And it annoys the pig<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>