From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Eglen Subject: Re: Support for Bird-style Literate Haskell Date: Fri, 25 Nov 2011 12:48:54 +0000 Message-ID: References: <38DB773C-B3C2-491F-ADBD-315ED2CC7640@gaillourdet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTvDM-0002lw-4O for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 07:49:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTvDK-0006Fx-Ep for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 07:49:12 -0500 Received: from lo.gmane.org ([80.91.229.12]:34969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTvDK-0006Ff-9i for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 07:49:10 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RTvDG-00062y-69 for emacs-orgmode@gnu.org; Fri, 25 Nov 2011 13:49:06 +0100 Received: from rgc.damtp.cam.ac.uk ([131.111.17.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Nov 2011 13:49:06 +0100 Received: from S.J.Eglen by rgc.damtp.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Nov 2011 13:49:06 +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: emacs-orgmode@gnu.org Jean-Marie Gaillourdet 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