[Haskell-cafe] Extracting structured data in XML into records

2007-02-24 Thread Johan Tibell
Hi! I'm trying to extract HCards (http://microformats.org/wiki/hcard) from HTML documents. HCard is a microformat. Microformats is an attempt to add semantic information to XML documents without adding any new tags. This is done by adding semantic information in class attributes instead (see the

Re: [Haskell-cafe] Extracting structured data in XML into records

2007-02-24 Thread Daniel McAllansmith
On Saturday 24 February 2007 21:22, Johan Tibell wrote: So my question is. How can I write the function 'extractElementsIntoRecords' below. Or, perhaps HXT is the wrong tool for the job and I should be trying to walk the DOM tree instead? module HCard where import Text.XML.HXT.Arrow

Re: [Haskell-cafe] haskell-art mailing list

2007-02-24 Thread Henk-Jan van Tuyl
Is this something for the list at http://haskell.org/mailman/listinfo ? (Maybe this page could be moved to haskellwiki?) Met vriendelijke groet, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ -- On Sat, 24 Feb 2007 00:10:57 +0100, alex [EMAIL PROTECTED] wrote: Hi all, After a bit of

Re: [Haskell-cafe] Illegal polymorphic or qualified type: forall l.

2007-02-24 Thread Bulat Ziganshin
Hello Marc, Friday, February 23, 2007, 5:22:12 PM, you wrote: type ActionMonad a l = forall l. (HOccurs D1 l) = ( ReaderT l IO a ) 'l' should be either parameter of type constructor or forall'ed variable. it seems that you try to set limitations on type

Re: [Haskell-cafe] Re: Code and Perf. Data for Prime Finders (was: Genuine Eratosthenes sieve)

2007-02-24 Thread Melissa O'Neill
Someone asked if I'd include a classic C version of the Sieve in my comparisons. Having done so, Lennart wrote (slightly rephrased): How did you compare the C version with the Haskell versions? The Haskell programs produce the Nth prime, whereas the C code produces the last prime less than