an XML-based approach for maintaining the libraries page

Wolfgang Jeltsch wolfgang@jeltsch.net
Wed, 18 Jun 2003 09:00:51 +0200


On Wednesday, 2003-06-18, 01:00, CEST, Peter Simons wrote:
> Hi,
>
> in the light of the recent discussion on how to maintain
> haskell.org/libraries/, I played a bit with an XML-based approach.

Why not use a Haskell datatype instead of a DTD and a Haskell value instead of 
an XML document?

    newtype Catalog
        = Catalog (Set Section)
    data Section
        = Section {sectionTitle :: String, sectionContent :: Set Library}
    ...

> [...]

Wolfgang