emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jean-Marie Gaillourdet <jmg@gaillourdet.net>
To: emacs-orgmode List <emacs-orgmode@gnu.org>
Subject: Support for Bird-style Literate Haskell
Date: Thu, 24 Nov 2011 11:31:28 +0100	[thread overview]
Message-ID: <38DB773C-B3C2-491F-ADBD-315ED2CC7640@gaillourdet.net> (raw)

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

             reply	other threads:[~2011-11-24 10:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24 10:31 Jean-Marie Gaillourdet [this message]
2011-11-25 12:48 ` Support for Bird-style Literate Haskell Stephen Eglen
2011-11-25 16:43 ` Eric Schulte

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=38DB773C-B3C2-491F-ADBD-315ED2CC7640@gaillourdet.net \
    --to=jmg@gaillourdet.net \
    --cc=emacs-orgmode@gnu.org \
    /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).