[Haskell-cafe] literate Haskell newbie question

2007-03-09 Thread Immanuel Normann

I am a newbie to literate Haskell and these are my two simple questions:

How do I compile a literate haskell file foo.lhs (using ghc-6.6)?
Is there a tool that translates foo.lhs to foo.hs?

Surprisingly I don't find the answer in 
http://haskell.org/haskellwiki/Literate_programming

whereas a lot about translation into tex-files can be found.

Thanks,
Immanuel
begin:vcard
fn:Immanuel Normann
n:;Immanuel Normann
email;internet:[EMAIL PROTECTED]
tel;work:+49 421 200 3168
tel;fax:+49 421 200 3103
x-mozilla-html:TRUE
version:2.1
end:vcard

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] literate Haskell newbie question

2007-03-09 Thread Jefferson Heard
ghc handles lhs files based on their extension.  You don't need to translate 
it to a different format.  If you want to translate  notation lhs to hs on 
your own (I dunno why, just if you did), the sed/grep combo 

cat foo.lhs | grep -e ^ | sed s/^ //

would work just fine.

On Friday 09 March 2007 09:23, Immanuel Normann wrote:
 I am a newbie to literate Haskell and these are my two simple questions:

 How do I compile a literate haskell file foo.lhs (using ghc-6.6)?
 Is there a tool that translates foo.lhs to foo.hs?

 Surprisingly I don't find the answer in
 http://haskell.org/haskellwiki/Literate_programming
 whereas a lot about translation into tex-files can be found.

 Thanks,
 Immanuel
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe