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

Switch from openUrl to readDocument #6

Closed singpolyma closed 11 years ago

singpolyma commented 12 years ago

From my email.

I'm curious why HandsomeSoup has its own openUrl and fromUrl when readDocument in HXT already exists and can use Network.HTTP?

The reason I ask is that openUrl current uses Network.HTTP's broken String return option, which mangles non-ASCII data. I'm not sure what readDocument does, but it seems on reading the docs to be encoding-aware, which would be nice.