emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo <leo@relevant-information.com>
To: Lawrence Bottorff <borgauf@gmail.com>,
	emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: ob-haskell
Date: Mon, 04 Jan 2021 11:56:25 +0100	[thread overview]
Message-ID: <877dot2co6.fsf@leo-B85-HD3.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <CAFAhFSXtKuQAD9pBk1LBVW7vsS8e3j2R+PLt8tKrakokaCHetg@mail.gmail.com>

Lawrence Bottorff <borgauf@gmail.com> writes:

> Enclosing code in :{ ... :} is fairly good -- again you can type this in at
> the REPL prompt and see how it works -- however, there are gotchas.

I don't think I understand what the problem is with :{ ... :}. Doing
this manually has worked pretty well for me.

> What would be nice is if a C-c C-c inside a block could somehow act as
> though the ghci were being sent a regular  *.hs buffer in haskell-mode --
> and that, of course, cumulatively. C-' creates a decent haskell-mode
> environment, BTW, so some form of a babel block to haskell-mode connection
> does exist....

This makes a lot of sense in many cases. One case that I think it might
be suboptimal in is when I have a heavy computation that generates
some data. Then I would want to try to do a bunch of things to that data
which means that reloading everything would be suboptimal.

I don't know how other babel plugins work, but the way I enjoy working
with ghci the most is to load in a file to ghci and then test a bunch of
expressions in the repl. Maybe ob-haskell could work like this as well,
with one type of block that loads the code as a file and another block
that just sends the code to the repl. There are some problems here that
needs to be sorted out though. For example should each block of the
former type be loaded in its own module or should all of the code blocks
be loaded in the same module? 

/A sporadic user of ob-haskell

      parent reply	other threads:[~2021-01-04 10:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-02 21:44 ob-haskell Lawrence Bottorff
2021-01-03 13:52 ` ob-haskell Ken Mankoff
2021-01-04 10:56 ` Leo [this message]

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=877dot2co6.fsf@leo-B85-HD3.i-did-not-set--mail-host-address--so-tickle-me \
    --to=leo@relevant-information.com \
    --cc=borgauf@gmail.com \
    --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).