emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.online>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Haskell code blocks
Date: Sun, 02 Jan 2022 15:16:57 -1000	[thread overview]
Message-ID: <87a6gdaa9i.fsf@tsdye.online> (raw)

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!"

#+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,

Thomas S. Dye

             reply	other threads:[~2022-01-03  1:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-03  1:16 Thomas S. Dye [this message]
2022-10-19  2:52 ` Haskell code blocks 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6gdaa9i.fsf@tsdye.online \
    --to=tsd@tsdye.online \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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