egonSchiele / HandsomeSoup

Easy HTML parsing for Haskell
http://egonschiele.github.com/HandsomeSoup
BSD 3-Clause "New" or "Revised" License
124 stars 20 forks source link

Types for fromUrl, parseHtml are too strict #17

Open peter50216 opened 10 years ago

peter50216 commented 10 years ago

Current type for fromUrl and parseHtml are both:

String -> IOSArrow XmlTree (NTree XNode)

But it only needs to be

String -> IOSArrow b (NTree XNode)

This change would make the following code valid:

let doc = setDefaultBaseURI url >>> parseHtml html
egonSchiele commented 10 years ago

Pushed a fix, please try it out and see if it works.