[Haskell-beginners] Need help with HXT
Philippe Sismondi
psismondi at arqux.com
Sun Feb 16 14:34:31 UTC 2014
On 2014-02-15, at 5:17 PM, Mateusz Kowalczyk <fuuzetsu at fuuzetsu.co.uk> wrote:
> On 15/02/14 21:25, Philippe Sismondi wrote:
>> Greetings. I am trying to move some very old code from using HaXml to HXT. This is experimental; I have reasons which I think are not relevant to this post.
>>
>> The website that purports to document HXT has broken links. This is Uwe Schmidt's website. I have emailed Dr. Schmidt. Meanwhile, can anyone elucidate the use of readDocument with its withCurl and withHTTP options? What may be passed in the list to e.g. withHTTP?
>>
>> - Phil -
>> _______________________________________________
>> Beginners mailing list
>> Beginners at haskell.org
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>
> Why don't you use the documentation on Hackage? Here[1] is your
I tried to do that.
> readDocument. It mentions the withCurl option and how to use it. As it
> points out, the withCurl comes from hxt-curl and the relevant page is
> at [2]. As you can see, it takes Attributes which is just a list of
Yes. The "relevant page is at [2]". Clicking on that link takes me to a page that tells me this:
withCurl :: Attributes -> SysConfig
So now I want to know what about "Attributes" (above). If I click on the link to "Attributes" in the hackage documentation I discover this:
Attribute list
used for storing option lists and features of DTD parts
So, I am clearly missing something - which, as usual, is probably my fault. What I am missing is: what goes in the attribute list for e.g. withCurl?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140216/6853d254/attachment.html>
More information about the Beginners
mailing list