Re: [Haskell-cafe] Extract source code from literate Haskell (LHS) files

2007-10-06 Thread Malcolm Wallace
> > This is of course very easy to do manually, but does a command line tool > > exist for extracting source code from literate Haskell files? > > Cpphs is the perfect tool to do this. In case the link is not immediately obvious, cpphs has the -unlit flag to remove the literate parts of the file

Re: [Haskell-cafe] Extract source code from literate Haskell (LHS) files

2007-10-06 Thread Neil Mitchell
Hi Peter, > This is of course very easy to do manually, but does a command line tool > exist for extracting source code from literate Haskell files? Cpphs is the perfect tool to do this. Thanks Neil On 9/30/07, Peter Verswyvelen <[EMAIL PROTECTED]> wrote: > > > Thanks, > Peter > > > __

Re: [Haskell-cafe] Extract source code from literate Haskell (LHS) files

2007-10-01 Thread Pekka Karjalainen
On 9/30/07, Peter Verswyvelen <[EMAIL PROTECTED]> wrote: > > This is of course very easy to do manually, but does a command line tool > exist for extracting source code from literate Haskell files? There are a lot of good answers already. You can also use some GHC command line options. Please se

Re: [Haskell-cafe] Extract source code from literate Haskell (LHS) files

2007-09-30 Thread Tim Newsham
This is of course very easy to do manually, but does a command line tool exist for extracting source code from literate Haskell files? something like: sed -e '/^[^>]/d' -e 's/^>//g' < foo.lhs > foo.hs the first expression deletes lines not starting with ">". The second expression removes th

Re: [Haskell-cafe] Extract source code from literate Haskell (LHS) files

2007-09-30 Thread Brandon S. Allbery KF8NH
On Sep 30, 2007, at 14:39 , Peter Verswyvelen wrote: This is of course very easy to do manually, but does a command line tool exist for extracting source code from literate Haskell files? "unlit" in the GHC library directory? -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL

[Haskell-cafe] Extract source code from literate Haskell (LHS) files

2007-09-30 Thread Peter Verswyvelen
This is of course very easy to do manually, but does a command line tool exist for extracting source code from literate Haskell files? Thanks, Peter ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell