Re: Unhealthy Haskell babel

2020-12-14 Thread Bastien
Hi Lawrence, Lawrence Bottorff writes: > I'm looking into Haskell (latest ghci) again on org-mode. This Sadly enough, we don't have a maintainer for ob-haskell.el. Would you be willing to become the maintainer? Of course, you can always hand it over to someone else when you want to. It is ju

Re: Unhealthy Haskell babel

2020-12-10 Thread Lawrence Bottorff
Yes -- and I think I came across this long ago during another attempt and totally forgot about it. I think I'll write this up on emacs.stackexchange so others will not have to scrounge around. I'm pursuing this because I really believe emacs org-mode "reproducible research" is superior to all other

Re: Unhealthy Haskell babel

2020-12-10 Thread Immanuel Litzroth
Well another possible solution is to wrap the code blocks in :{ xxx :} in (defun org-babel-execute:haskell (body params) -- ob-haskell.el Immanuel On Thu, Dec 10, 2020 at 6:21 PM Lawrence Bottorff wrote: > > I see your point, i.e., compiled, multi-file projects are not really meant > for the REP

Re: Unhealthy Haskell babel

2020-12-10 Thread Lawrence Bottorff
I see your point, i.e., compiled, multi-file projects are not really meant for the REPL-dominant world of org-mode babel. Babel's sweet-spot would be the interpreted world, the very best probably a Lisp language. Still, the ability to add code to a running REPL should be possible. As I mentioned, S

Re: Unhealthy Haskell babel

2020-12-10 Thread Immanuel Litzroth
I don't think org-babel is a good fit for compiled languages. If the idea is to just take 1 snippet, and "execute" that it means that to have a consistent whole you'd need to put all the modules of your program into that snippet (already impossible in Haskell, you can have only 1 module per file),

Unhealthy Haskell babel

2020-12-09 Thread Lawrence Bottorff
I'm looking into Haskell (latest ghci) again on org-mode. This #+begin_src haskell :results verbatim :exports both :set +m doubleSmallNumber x = if x > 100 then x else x*2 #+end_src works, but still the :set +m is necessary for it to see the whole. But this #+begin_src haskell :results verba