Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Need help with HXT (Philippe Sismondi)
2. combine concatMap and mapM (Renah Scarowsky)
----------------------------------------------------------------------
Message: 1
Date: Sun, 16 Feb 2014 09:34:31 -0500
From: Philippe Sismondi <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Need help with HXT
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
On 2014-02-15, at 5:17 PM, Mateusz Kowalczyk <[email protected]> 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
>> [email protected]
>> 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-0001.html>
------------------------------
Message: 2
Date: Mon, 17 Feb 2014 10:38:47 +0000
From: Renah Scarowsky <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] combine concatMap and mapM
Message-ID:
<c94703002c644734af846819067f9...@db4pr05mb271.eurprd05.prod.outlook.com>
Content-Type: text/plain; charset="us-ascii"
Hi,
How would I combine the functionalities of concatMap and mapM to define a
function like:
Monad m => (a -> m [b]) -> [a] -> m [b]
I need to create a recursive function within the IO monad which results in a
list of the original type.
So something like:
goX :: MonadIO m => x -> m [x]
goX = do
....
x includes within it a list of xs, let's call it (children x)
I need to call goX on each of the children and get a modified list of children
as result
ys <- ?
return $ x { children = ys } : zs
Thanks,
Renah Scarowsky
Suite Solutions
Create>Manage>Deploy
http://www.suite-sol.com<http://www.suite-sol.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140217/615e023b/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 68, Issue 14
*****************************************