[Haskell-cafe] haddock as a markdown preprocessor

Alistair Bayley alistair at abayley.org
Thu Feb 21 08:12:04 EST 2008


On 21/02/2008, Duncan Coutts <duncan.coutts at worc.ox.ac.uk> wrote:
>
> To be honest I like the fact that haddock's markup is really simple and
>  perhaps somewhat restrictive. A great improvement though would be to
>  make it easy to extract the docs from haddock in a nice format so that
>  the could be re-used in other contexts rather than just generating html
>  api documentation. Haddock does have support for multiple backends,
>  someone just needs to define and write a generic backend that spits out
>  the info that haddock gathers in a machine readable format.

I have probably misunderstood both of you, but I think that Conal
proposed that Haddock *input* syntax is largely unchanged; Haddock
should be able to *output* markdown, for consumption by pandoc.

(Which I think is also what you're suggesting.)

Alistair


More information about the Haskell-Cafe mailing list