From: Eric Schulte <schulte.eric@gmail.com>
To: Jean-Marie Gaillourdet <jmg@gaillourdet.net>
Cc: emacs-orgmode List <emacs-orgmode@gnu.org>
Subject: Re: Support for Bird-style Literate Haskell
Date: Fri, 25 Nov 2011 09:43:21 -0700 [thread overview]
Message-ID: <87wraoywye.fsf@gmail.com> (raw)
In-Reply-To: <38DB773C-B3C2-491F-ADBD-315ED2CC7640@gaillourdet.net> (Jean-Marie Gaillourdet's message of "Thu, 24 Nov 2011 11:31:28 +0100")
Hi Jean,
Look at the `org-babel-haskell-export-to-lhs' function defined in
ob-haskell.el. It should be usable to export an Org-mode file with
Haskell code blocks to a latex-style .lhs file with Haskell code blocks.
Best -- Eric
Jean-Marie Gaillourdet <jmg@gaillourdet.net> writes:
> Hi everybody,
>
> I'd be interested to use org syntax in the comments of a literate
> haskell file. I know and use occasionally org-babel. Though, this
> question is not about org-babel. I am merely interested in telling
> org-mode to leave the code parts of a literate Haskell file alone,
> i.e. similar to code blocks in org-mode. I have no propblem with
> switching between org-mode and literate-haskell-mode depending on what
> I am currently editing. I am not interested in org-babel because I
> don't want to have a separate weaving step in my build system.
>
> In case you don't know: Literate Haskell files (ending with .lhs) come
> in two flavors: bird style and latex style. In bird style every line
> is a comment unless it has '>' in the first column. And in latex style
> code blocks are surround with \begin{code} and \end{code}. Haskell
> implementations do not care what is in the non-code parts. So, I'd
> like to use org markup and especially the editing features of
> org-mode. I'd prefer to work in bird-style and latex-style would be
> fine as well.
>
> Do you have any ideas/pointers how to achieve that?
>
> Thanks for your help!
>
> Cheers,
> Jean
--
Eric Schulte
http://cs.unm.edu/~eschulte/
prev parent reply other threads:[~2011-11-25 16:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 10:31 Support for Bird-style Literate Haskell Jean-Marie Gaillourdet
2011-11-25 12:48 ` Stephen Eglen
2011-11-25 16:43 ` Eric Schulte [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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=87wraoywye.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jmg@gaillourdet.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
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).