[Haskell-cafe] Documentation on hackage

2009-06-15 Thread Uwe Schmidt
Dear Haskellers, who needs this kind of documentation? http://hackage.haskell.org/packages/archive/tfp/0.2/doc/html/Types-Data-Num-Decimal-Literals.html isn't this a kind of spam? Cheers, Uwe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 7.2

2007-07-09 Thread Uwe Schmidt
Haskell XML Toolbox 7.2 I would like to announce a new version of the Haskell XML Toolbox. This is mainly a bug fix release, but there is one new module for converting data between user defined types and the HXT DOM structure. This new modules enables the simple persistent storage and retrieval

[Haskell-cafe] Re: [Haskell] Re: Current XML libraries status

2008-10-27 Thread Uwe Schmidt
, (a_remove_whitespace, v_1) , (a_encoding, isoLatin1) , (a_issue_warnings, v_0) , (a_trace, "1") ] - Cheers, Uwe Schmidt -- Uwe Schmidt Web: http://www.fh-wedel.de/~si/ ___

[Haskell-cafe] ANN: regex-xmlschema

2009-02-01 Thread Uwe Schmidt
ns_for_XML_Schema"; Cheers, Uwe -- Uwe Schmidt FH Wedel http://www.fh-wedel.de/~si/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] XML parser recommendation?

2007-10-23 Thread Uwe Schmidt
Yitzchak Gale wrote: > Another question about HaXML and HXT - > what is the level of XML spec. compliance? Implementing the XML 1.0 Standard was one of the goals of HXT when starting the project. This includes full support of DTD processing, which turned out to be the hardest part of the whole pa

Re: [Haskell-cafe] XML parser recommendation?

2007-10-24 Thread Uwe Schmidt
Rene de Visser wrote: > I think a step towards support medium size documents in HXT would be to > store the tags and content more efficiently. > If I undertand the coding correctly every tag is stored as a seperate > Haskell string. As each byte of a string under GHC takes 12 bytes this alone >

Re: [Haskell-cafe] Re: XML parser recommendation?

2007-10-24 Thread Uwe Schmidt
apfelmus wrote: > Ah! I got struck by a trick: it's possible to store every tag name in > full only once but still present a simple tree with full tag names to > the user. You simply share all the tag names. For instance, in > >let x = "mytagname" in Tree (Tag x) [Tree (Tag x) [Text "foobar"]]

[Haskell-cafe] checking regular expressions

2007-11-08 Thread Uwe Schmidt
Hi all, what's the simplest way to check, whether a given string is a wellformed regular expression? In the API there's just a "mkRegex" which does not make any checks, and the "matchRegex" which throws an exception when the regex isn't wellformed. So do I need the IO monad for checking a regex?

Re: [Haskell-cafe] [HXT] Simple question

2007-12-20 Thread Uwe Schmidt
Hi Fernand, > Everything works fine except for the fact that all the nodes « > » > (that is, a space (an XML text node whose contents are a single space > character) > within a element node) get transformed to a « » element I can't really reproduce this: A simple ghci session gives the follow

Re: [Haskell-cafe] [HXT] Simple question

2007-12-20 Thread Uwe Schmidt
Hi Miguel, > Hmmm, with 'readString ... " "' everything works fine, > but with 'readString ... " "' it doesn't. > Seems to be a bug in HXT. I don't see the bug: -- *Main> runX $ ( readString [(a_validate,v_0)] " " >>> setTraceLevel 4 >>> traceDoc "doc af

Re: [Haskell-cafe] [HXT] Simple question

2007-12-20 Thread Uwe Schmidt
Hi Miguel, > Try " " and a_indent writing option. yes, with the indent option set, whitespace becomes insignificant and will change during formating, and so the contents of the inner element reduces to empty Turn of the indentation and you get the result you want. Cheers, Uwe -- Web: http:/

Re: [Haskell-cafe] Re: hxt memory useage

2008-01-28 Thread Uwe Schmidt
Rene de Visser wrote: > "Matthew Pocock" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] > > On Thursday 24 January 2008, Albert Y. C. Lai wrote: > >> Matthew Pocock wrote: > >> > I've been using hxt to process xml files. Now that my files are getting > >> > a > >> > bit bigg

Re: [Haskell-cafe] Re: Re: hxt memory useage

2008-01-29 Thread Uwe Schmidt
Rene de Visser wrote: > If I remember correctly, the data type of the tree in HXT is something like > > data Tree = Tree NodeData [Tree] > > which means that already processed parts of the tree can't be garbage > collected because the parent node is holding onto them. This statement only holds

[Haskell-cafe] tagsoup parser (was: hxt memory useage)

2008-01-29 Thread Uwe Schmidt
Hi Neil, > Please send a patch with whatever come up with, so others can make use > of it. I've already added Data.HTML.TagSoup.Tree to the latest darcs > version, which does as well as it can with tag matching, but is > entirely strict. Having a lazy version would be great. It's too early for a

Re: [Haskell-cafe] ANN: Hayoo! beta 0.1

2008-04-07 Thread Uwe Schmidt
Lieber Herr Hübel, lieber Herr Schlatt, ich habe gerade das Announcement von Holumbus in haskell.org gelesen und natürlich auch Holumbus ausprobiert. RICHTIG GUT! Viele Gruesse Uwe Schmidt ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] ANN: Hayoo! beta 0.1

2008-04-07 Thread Uwe Schmidt
Uwe Schmidt wrote: > Lieber Herr Hübel, > lieber Herr Schlatt, sorry for spamming haskell-cafe Uwe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Problem building HXT

2008-04-08 Thread Uwe Schmidt
ln wrote: > I would like to try HXT, but I can't manage to build it. I resolved all > > the dependencies, but I get the following error: > > > [EMAIL PROTECTED]:~/Desktop/hxt$ make all > > > make -C src all VERSION=7.5 > > > make[1]: Entering directory `/home/ln/Desktop/hxt/src' > > > make in

[Haskell-cafe] Re: HXT 7.4/7.5 leaking TCP connections

2008-04-08 Thread Uwe Schmidt
Daniel McAllansmith wrote: > I'm having some problems with connections leaking when using 7.4.  I've > just checked and it happens with 7.5 off of hackage as well. > > It appears that readDocument doesn't close the connection when using the > haskell http library, it works ok when curl is used tho

Re: [Haskell-cafe] Processing XML with HXT

2008-04-22 Thread Uwe Schmidt
>>> arrIO print ) return () x is processed within an arrow by lifting the print function to then arrow level. There is a new wiki page about picklers http://www.haskell.org/haskellwiki/HXT/Conversio

Re: [Haskell-cafe] Processing XML with HXT

2008-04-23 Thread Uwe Schmidt
Model UseCaseModel processUseCaseModel = arrIO ( \ x -> do {print x ; return x}) --- This program will print the internal haskell value and writes the data to "new-uc.xml" Cheers Uwe -- Uwe Schmidt Web: http://www.fh-wedel.de/~si/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 8.0.0

2008-04-28 Thread Uwe Schmidt
Haskell XML Toolbox 8.0.0 I would like to announce a new version of the Haskell XML Toolbox. The main change is the separation of the old filter interface into a separate package "hxt-filter". This makes the API simpler and more readable. The filter API will not be developed further. But all the

Re: [Haskell-cafe] [tagsoup] is it the expected behaviour ?

2008-05-20 Thread Uwe Schmidt
Ketil Malde wrote: > I don't think that is legal XML. The definitions of STag and Attribute > from http://www.w3.org/TR/xml11/#NT-STag are: > > [40] STag::= '<' Name (S Attribute)* S? '>' > [41] Attribute ::=Name Eq AttValue > > And 'S' represents one or more whitespace chara

Re: [Haskell-cafe] [WARN] Bug fix release of pureMD5 (Was: pureMD5)

2008-06-13 Thread Uwe Schmidt
Thomas M. DuBuisson wrote: > As you can probably tell, I didn't invest enough into the > non-performance aspects of pureMD5. Faced with actual users ;-), I have > released version 0.2.0 which has the bug fix, a new API (type prevention > from re-finalizing a digest), and a reasonable set of quick

Re: [Haskell-cafe] HXT from schema to data model

2008-09-08 Thread Uwe Schmidt
emented. Cheers, Uwe -- Uwe Schmidt FH Wedel http://www.fh-wedel.de/~si/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] The state of Hackage: what are we doing about it?

2010-06-02 Thread Uwe Schmidt
Don wrote > I see fairly regular complaints about too many Haskell libraries, > bewildering choice of difficult-to-determine quality. > > I've tried to summarize the state of Hackage, and what projects are > active to make it easier to find high quality libraries: > > http://tinyurl.com/2cqw9s

Re: [Haskell-cafe] The state of Hackage: what are we doing about it?

2010-06-02 Thread Uwe Schmidt
Bas wrote: > Ordering by nr of direct/indirect reverse dependencies might also be > useful. this is already done. After indexing the cabal pages, the dependencies are all known and a package rank is derived from that graph. That is also used in the (new) function search, functions in base (and

Re: [Haskell-cafe] The state of Hackage: what are we doing about it?

2010-06-03 Thread Uwe Schmidt
On Thursday 03 June 2010 06:27:43 am Don Stewart wrote: > I've been posting CSV files of the download statistics here: > >http://www.galois.com/~dons/hackage/hackage-downloads.csv > > The next quarter's aggregated downloads are due soon. > > The Arch Haskell site uses these stats to compute

[Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 9.0.0

2010-10-07 Thread Uwe Schmidt
Haskell XML Toolbox 9.0.0 I would like to announce a new version of the Haskell XML Toolbox. HXT has grown over the years. Components for XPath, XSLT, validation with RelaxNG, picklers for conversion from/to native Haskell data, lazy parsing with tagsoup, input via curl and native Haskell HTTP

Re: [Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 9.0.0

2010-10-11 Thread Uwe Schmidt
Hello Henning, > hxt-filter does not seem to be updated to hxt-9.0. How about providing > hxt-filter with DEPRECATED pragmas for the functions that tell me how to > rewrite functions from hxt-filter to arrows? Or is there another guide > about how to move from hxt-filter to arrows? Sorry, but the

Who is afraid of arrows, was Re: [Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 9.0.0

2010-10-11 Thread Uwe Schmidt
Hi Gregory, >   Could you explain to me why HXT uses arrows?  I have never been able > to figure out what advantage this gives your library over monads.  Since > your arrows in practice implement ArrowApply, they are really just > monads anyway, so it seems to me that using arrows instead of monad

Re: Who is afraid of arrows, was Re: [Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 9.0.0

2010-10-12 Thread Uwe Schmidt
Hi Gregory, > ... > No, but there is no point in using a formalism that adds complexity > without adding functionality. Arrows are more awkward to use than > monads because they were intentionally designed to be less powerful than > monads in order to cover situations in which one could not use a

Re: Who is afraid of arrows, was Re: [Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 9.0.0

2010-10-13 Thread Uwe Schmidt
Hi Gregory, > > As I understood, John Hughes invented the arrows as a generalisation > > of monads, you say it's a less powerful concept. I'm a bit puzzled with > > that. Could you explain these different views. > > > > Consider the following example: > > f :: Int -> m a > f i = monads

[Haskell-cafe] type class design

2010-10-29 Thread Uwe Schmidt
Dear Haskellers, I've a question about type class design. When developing the set of functions for a class, there are often two or more functions, let's say f and g, where the semantics of g can be expressed by f. When writing down the code, there are two choices for g. First g is included in the

Re: [Haskell-cafe] type class design

2010-10-30 Thread Uwe Schmidt
Hi Ivan, > Another possible argument: large type classes can look daunting for > both implementors and users, even if only one or two methods need to > be defined for a minimal instantiation (I'm tring to work out what to > do here myself, as I have some typeclasses that for efficiency reasons > i

[Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 8.5.0

2010-01-22 Thread Uwe Schmidt
Haskell XML Toolbox 8.5.0 I would like to announce a new version of the Haskell XML Toolbox. The main change in this release is the separation of the XPath module and the XSLT module into separate packages hxt-xpath and hxt-xslt. So the base package becomes a bit smaller. Installation shouldn't

[Haskell-cafe] Re: HXT Namespaces and XPath

2010-04-06 Thread Uwe Schmidt
Hi Mads, > In HXT, namespace prefixes bound by an XML document are valid in the > context of an XPath. How do avoid that? > > An example program will clarify: > > simpleXml :: String > simpleXml = " xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\"/>" > > nsEnv :: [(String, String)] > nsEn

[Haskell-cafe] Re: HXT error handling

2010-04-06 Thread Uwe Schmidt
Hi Mads, > I am trying to use HXT to evaluate XPath expressions. The XPath > expressions are not specified by myself, but by users of my program. > However, the idea behind HXT's error handling confuses me. Maybe > somebody can enlighten me. > > This program fragment: > > evalXPath :: String ->

[Haskell-cafe] Re: HXT error handling

2010-04-06 Thread Uwe Schmidt
Hi Mads, > > This is a right point. Here the current XPath calling interface is too > > simple. > > A separation into XPath parsing and evaluation would be more flexible. > > The parsing (and error handling of XPath syntax errors) could be done once. > > I will extend the interface to support th

Re: [Haskell-cafe] Re: HXT Namespaces and XPath

2010-04-06 Thread Uwe Schmidt
Hi Mads, > Replying to myself: > > > I think another example will clarify my point. The code: > > > > simpleXmlOne, simpleXmlTwo :: String > > simpleXmlOne = "http://foo.org\"/>" > > simpleXmlTwo = "http://foo.org\"/>" > > > > nsEnv :: [(String, String)] > > nsEnv = [ ("notFoo", "http://not

Re: [Haskell-cafe] Is XHT a good tool for parsing web pages?

2010-04-28 Thread Uwe Schmidt
Hi John and Malcom, > I know that the HaXml library has a separate error-correcting HTML > parser that works around most of the common non-well-formedness bugs > in HTML: > Text.XML.HaXml.Html.Parse > > I believe HXT has a similar parser: > Text.XML.HXT.Parser.HtmlParsec > > Indeed, some

Re: [Haskell-cafe] Is XHT a good tool for parsing web pages?

2010-04-28 Thread Uwe Schmidt
Hi Ivan, > Uwe Schmidt writes: > > The HTML parser in HXT is based on tagsoup. It's a lazy parser > > (it does not use parsec) and it tries to parse everything as HTML. > > But garbage in, garbage out, there is no approach to repair illegal HTML > > as e.g. the

Re: [Haskell-cafe] String rewriting

2010-05-21 Thread Uwe Schmidt
Hi Roly, > I'm looking for a simple way to rewrite strings according to simple > composable rules like: > > replace "_" by "\\(\\hole\\)" > replace "-n" where n matches an integer by "^{n}" > > so that I can import some pretty-printed output into a LaTeX alltt > environment. I'm guessing that this

Re: [Haskell-cafe] HXT: Replace an element with its text

2012-06-26 Thread Uwe Schmidt
l contains two text nodes, one for "foo" and one for "bar". If you later search for a text "foobar" you don't find a node. The melting of adjacent text nodes can be done with ... (xshow (deep getText) >>> mkText) ... Cheers, Uwe -- Uwe Schmidt

Re: [Haskell-cafe] getErrorStatus in HXT

2010-12-04 Thread Uwe Schmidt
Hi Tobias, > I have some problems with the error processing in HXT. > > Here is a trivial example: > > e <- runX (transformDoc [] someRules src dst) > > transformDoc cfg rules src dst = > configSysVars cfg >>> > readDocument [] src >>> > rules >>> -- some transformations > writ

Re: [Haskell-cafe] getErrorStatus in HXT

2010-12-05 Thread Uwe Schmidt
Hi Tobias, > When is the release of hxt-9.1 on hackage expected? I've uploaded a hxt-9.0.1 to hackage with that bug removed. Cheers, Uwe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] HXT is slow?

2011-01-12 Thread Uwe Schmidt
Hi Patrick, > Is it just me, or is HXT slow? I noticed that both reading a document > from a file, as well as running computations, are exceedingly slow, > with simple stuff like 'get the contents of everything with a given > class' taking .3 seconds for a 400KB HTML file in Python using lxml > an

[Haskell-cafe] ANN: Haskell XML Toolbox Version 9.1

2011-03-04 Thread Uwe Schmidt
Haskell XML Toolbox 9.1 I would like to announce an update hxt-9.1 of the Haskell XML Toolbox. Main changes compared to hxt-9.0 are * space optimization of DOM tree for better performance for lager XML documents * optimization of space used during parsing in native XML and HTML parsers * a bin

Re: [Haskell-cafe] A long day with HXT

2011-05-09 Thread Uwe Schmidt
Hi Henry, > I have just spent many hours staring at code and losing some hair.  My > hope is to save you the same experience someday.  Here was my goal: > > Take some XML, like and > replace the align attribute with a class attribute, but only if the > value of the align attribute was not null.  

Re: [Haskell-cafe] character encoding problems with hxt (I think)

2012-10-14 Thread Uwe Schmidt (FH Wedel)
ith the wrong structure of that document, or correct the XML file (and give the maintainers of that file a bug report). But with the error message HXT gave you, there is some room for improvements. Cheers, Uwe -- Uwe Schmidt FH Wedel __