emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: Support for Bird-style Literate Haskell
Date: Fri, 25 Nov 2011 12:48:54 +0000	[thread overview]
Message-ID: <t5xy5v48j0p.fsf@rgc.damtp.cam.ac.uk> (raw)
In-Reply-To: 38DB773C-B3C2-491F-ADBD-315ED2CC7640@gaillourdet.net

Jean-Marie Gaillourdet <jmg@gaillourdet.net> writes:

> 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.


Check out Dave Love's work, it does latex-style, but not bird style.
 www.loveshack.ukfsn.org/emacs/haskell-latex.el

  reply	other threads:[~2011-11-25 12:49 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 [this message]
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=t5xy5v48j0p.fsf@rgc.damtp.cam.ac.uk \
    --to=s.j.eglen@damtp.cam.ac.uk \
    --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).