From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Support for Bird-style Literate Haskell Date: Fri, 25 Nov 2011 09:43:21 -0700 Message-ID: <87wraoywye.fsf@gmail.com> References: <38DB773C-B3C2-491F-ADBD-315ED2CC7640@gaillourdet.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTys3-0002P5-O6 for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 11:43:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTys2-0005S0-IP for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 11:43:27 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:49197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTys2-0005PU-AY for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 11:43:26 -0500 Received: by iaek3 with SMTP id k3so6332375iae.0 for ; Fri, 25 Nov 2011 08:43:25 -0800 (PST) In-Reply-To: <38DB773C-B3C2-491F-ADBD-315ED2CC7640@gaillourdet.net> (Jean-Marie Gaillourdet's message of "Thu, 24 Nov 2011 11:31:28 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jean-Marie Gaillourdet Cc: emacs-orgmode List 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 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/