Re:Why I prefer scheme to Haskell
by ericssmith on Tuesday April 10, 2012 @06:46PM
(#3824885)
In my work, I read in XML, parse its elements, attributes, and data, producing new XML. Along with Parsec, Hexpat is well-suited to the task.
I haven't had to parse HTML in Haskell. I use BeautifulSoup for that. I wouldn't be surprised if the Haskell libraries aren't as useful for that kind of thing.
Re:Why I prefer scheme to Haskell
by egonschiele on Monday April 16, 2012 @04:29AM
(#3846505)
I wrote up a guide to working with HTML in HXT: http://adit.io/posts/2012-04-14-working_with_HTML_in_haskell...
You might find it handy if you decide to give HXT another go :)
HXT allows me to come close to this:
tree >>> getXPathTreesInDoc "//a"
But I haven't seen a single Haskell XML parsing library that is as nice as Nokogiri.