[Haskell-beginners] Literate Haskell - capturing output
Rustom Mody
rustompmody at gmail.com
Thu Jan 31 15:25:56 CET 2013
On Fri, Jan 18, 2013 at 12:30 AM, Martin Drautzburg <
Martin.Drautzburg at web.de> wrote:
> Hello all,
>
> I am using literate haskell quite a lot (otherwise I don't understand my
> own
> code). This works fine for the code as such. But when I give an example
> usage,
> I run code snippets in ghci and copy&paste into the main document/program,
> which turns them into "text" (and not code).
>
> When I make changes to the program these examples tend to no longer reflect
> the actual program.
>
> Is there a way to automatically run examples and include them in the .lhs
> file, preferably with the haskell prompt and everything?
>
>
If you are ok with emacs,
emacs -> orgmode -> babel may be worth a consider
http://orgmode.org/worg/org-contrib/babel/intro.html
http://www.jstatsoft.org/v46/i03/paper
--
http://www.the-magus.in
http://blog.languager.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130131/7cbeef10/attachment.htm>
More information about the Beginners
mailing list