I very well may be the only person using ob-haskell
<https://github.com/bzg/org-mode/blob/main/lisp/ob-haskell.el>, but it has
stopped working properly, maybe since an upgrade to
haskell-mode-20250210.1927.

So the symptoms are that I can run this code block in an org-mode file

#+begin_src haskell :results verbatim :exports both
1 + 1
#+end_src

#+RESULTS:
: 2

but mysteriously there is no REPL created. In the past the first C-c C-c on
a block of a fresh start would create a REPL buffer named *haskell*. But
now a code block such as

#+begin_src haskell :results verbatim :exports both
:t ($)  -- give info about the $ operator
#+end_src

gives nothing back, i.e., still no REPL buffer. However, when repeat the 1
+ 1 with :session *myhaskell* on the code block, then it does create a REPL
buffer of that name -- and it starts as follows:

Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
 - codeismathiscode2-0.1.0.0 (interactive) (lib) (cannot read state cache)
Preprocessing library for codeismathiscode2-0.1.0.0...
GHCi, version 9.4.8: https://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /home/myhome/.ghci
λ> :set prompt-cont ""
λ> __LAST_VALUE_IMPROBABLE_NAME__=()::()

1 + 1
__LAST_VALUE_IMPROBABLE_NAME__=it

putStrLn "org-babel-haskell-eoe"

λ> 2
λ> λ> org-babel-haskell-eoe
λ> __LAST_VALUE_IMPROBABLE_NAME__

putStrLn "org-babel-haskell-eoe"

2
λ> org-babel-haskell-eoe
λ>

but it's a complete zombie that gives only the prompt back at anything
entered. I can create a function in a code block, run it -- and nothing, no
recognition, complete zombie REPL. I have no understanding of the inner
workings of babel ob- code, nor how it works with the mode of the language.
I'm only guessing something changed in the haskell-mode to break Haskell
Babel. Although haskell-mode does work fine stand-alone. And I have a
makeshift system where code blocks are tangled off into a .hs file. Still,
I'd like my live code block environment back. BTW, ob-haskell author Eric
Schulte has me named as the maintainer -- which I'm not...

⨽
Lawrence Bottorff

Reply via email to