On Tue, Dec 13, 2011 at 03:39, Magnus Therning wrote:
> 1. What to call files? I understand (C)WEB suggests using .w, and
> that noweb uses .nw, what should I call anansi files?
I usually use .anansi, but it doesn't matter. You can use whatever
extensions you like, or even none at all.
> 2. Com
Anansi is a preprocessor for literate programs, in the model of NoWeb
or nuweb. Literate programming allows both computer code and
documentation to be generated from a single unified source.
Home page: https://john-millikin.com/software/anansi/
Hackage: http://hackage.haskell.org/package/anansi
but I can email you a postscript file
directly if you want.
Haskell is the first language where I've managed to work happily with
literate programming - partly because of the direct integration and
partly because the order isn't critical and the code is compact.
Cheers,
Andrew
PS The
Richard,
| for almost a year now, it has been on my list of things to do to read
| thih. for reasons too detailed to get into now, except to say that I
| still use a 486 computer (sans printer) at home, I find reading dvi, ps
| and pdf inconvenient and tend to postpone reading them whereas I ten
this is addressed to Mark, but others may be interested
in my lament against papers available only in "paper-oriented"
formats (dvi, ps, pdf).
Mark P. Jones writes:
>I use exactly the kind of techniques described here in my work. For
>example, I use literate programming for the
I agree with Mark that literate programming is messed up in Haskell. I
think that it is even worse than he says and hence I don't use it
anymore at all.
Mark P Jones wrote:
> The literate programming conventions using leading '>'s (also known
> as "Bird tra
Koen Claessen <[EMAIL PROTECTED]> writes:
> Take a look at the following "program snippet" (a very
> popular word at last week's ICFP :-):
>
> > bfReplace :: [b] -> Tree a -> Tree b
> > bfReplace xs = deQ . bfReplaceQ xs . singletonQ
>
> Now we just have to define bfReplaceQ.
If
Hi Koen,
I think that literate programming is a great idea, but I don't
think Haskell does it justice. I'll suggest a simple solution
to your problem at the end of this message. You can skip there
now if you want ... or else read on while I rant about this some
more and describe wha
This one of the reasons why I never use literate programming. I always
forget the blank lines, and then after being puzzled by the error, I
remember it, and get completely turned off.
> C Literate comments
> [...]
> To capture some cases where one omits an ">" by
>
> Huh?!? Is this a bug in Hugs? Is it confused by the `<' and
> `>' in the HTML code? No! It is just doing what the
> Haskell98 report says:
>
> C Literate comments
> [...]
> To capture some cases where one omits an ">" by mistake,
> it is an error for a program line to appear adjacen
Hi all!
I recently started hacking up some webpages that explain
some programming tricks in Haskell. For convenience, I
wanted these files to be runnable. Of course, literate
programming comes to the rescue.
Not!
Take a look at the following HTML literate fragment
(indented 2 spaces):
Take
Since we're debating literate programming and embedded documentation,
I wonder what is the point, what are we trying to achieve?
Is it to
a) write books or papers containing pieces of code?
b) add some formatting and functionality to comment blocks?
c) make source code easier to navigat
12 matches
Mail list logo