emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Haskell code blocks
@ 2022-01-03  1:16 Thomas S. Dye
  2022-10-19  2:52 ` Ihor Radchenko
  2022-10-22  5:06 ` Jarmo Hurri
  0 siblings, 2 replies; 15+ messages in thread
From: Thomas S. Dye @ 2022-01-03  1:16 UTC (permalink / raw)
  To: emacs-orgmode

Aloha all,

Happy New Year!

I'm struggling to write a minimal ob-doc-haskell.org for Worg.

I installed Haskell via Spacemacs (development branch) and the 
Haskell installation appears to be functioning correctly.

The obligatory Hello World! example yields bad results.

#+name: haskell-hello-world
#+begin_src haskell 
main :: IO () 
main = putStrLn  "Hello, World!"
main
#+end_src

#+RESULTS: haskell-hello-world
: Prelude> Hello, World!

I'm guessing the "Prelude>" part of the output is the prompt from 
the interpreter.

I found this in ob-haskell.el:

              (setq-local comint-prompt-regexp
                          (concat haskell-prompt-regexp "\\|^λ?> 
                          "))))
                          
But I couldn't find a way to modify haskell-prompt-regexp without 
changing the source.

Advice welcome.

All the best,
Tom

-- 
Thomas S. Dye
https://tsdye.online/tsdye


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-03-19  9:21 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-03  1:16 Haskell code blocks Thomas S. Dye
2022-10-19  2:52 ` Ihor Radchenko
2022-10-19  3:50   ` Thomas S. Dye
2022-10-19  4:22     ` Ihor Radchenko
2022-10-19  4:47       ` Thomas S. Dye
2022-10-19 10:17         ` Ihor Radchenko
2022-10-19 18:03           ` Bruno Barbier
     [not found]           ` <notmuch-sha1-431220eef964237e131dcf36f817756f3537caf1>
2022-10-21  3:10             ` Ihor Radchenko
2022-11-07  7:24             ` Ihor Radchenko
2022-11-08 18:46               ` Bruno Barbier
2022-11-09  2:54                 ` Ihor Radchenko
2023-03-13 11:38                 ` Ihor Radchenko
2023-03-15 18:12                   ` Bruno Barbier
     [not found]                   ` <notmuch-sha1-86fc4270780c1f4b2624b20be5d3684ddf44d9c0>
2023-03-19  9:20                     ` Bruno Barbier
2022-10-22  5:06 ` Jarmo Hurri

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).