[Haskell] HSXML version 1.13. Overloading polyvariadic functions

oleg at pobox.com oleg at pobox.com
Tue Feb 6 19:18:01 EST 2007


schneegloeckchen wrote:
> Seems like 
> http://www.informatik.uni-freiburg.de/~thiemann/haskell/WASH/
> has has the same purpose [as HSXML], has it?

_Some_ of the same purpose, yes. But HSXML does follow the
S-expression syntax -- something that has not been attained in
Haskell. Here's a sample HSXML:

      [p "Haskell is a general purpose," 
       [[em [[strong "purely"]] "functional"]] "programming language"]

one may observe the absence of any commas and other list
delimiters. The things in square brackets can't be lists anyway
because their `elements' patently have different types. The strings
are represented as strings rather than (text "string") etc. The `p'
element obviously can have arbitrary number of subelements and
strings.  On a Scheme system that takes square brackets (which is the
R6RS behavior) the above expression can be read with one `read' call
-- proving that HSXML is an S-expression.



More information about the Haskell mailing list