Beginners Digest, Vol 25, Issue 20

2010-07-06 Thread beginners-request
gt; seems to make sense, but looking at it's definition in Prelude I really > > can't see why it's useful. > > > > Yitz gave me the code; > > > > fmap (runGet $ readNames n) $ L.hGetContents h > > > > So can I rewrite this without the $ like this? &

Beginners Digest, Vol 25, Issue 19

2010-07-06 Thread beginners-request
really can't see why it's useful. Yitz gave me the code; fmap (runGet $ readNames n) $ L.hGetContents h So can I rewrite this without the $ like this? fmap (runGet (readNames n)) (L.hGetContents h) Is there any additional benefit to using $ than just not having to wr

Beginners Digest, Vol 25, Issue 18

2010-07-06 Thread beginners-request
e (memory footprint, speed of execution, etc) does "carrying around the IO monad" make much of a difference? You're right. I don't need to pull the [String] out of the IO monad. Suprise, suprise, the general pattern is appropriate in my c

Beginners Digest, Vol 25, Issue 17

2010-07-06 Thread beginners-request
he stream, no further IO is necessary, so any other function should be able to just use the list and not worry about the IO stuff. Again my questions are, Is this an okay thing to do, or is my design/idea very, very wrong? Thanks again for the help, Tom On Thu, Jul 1, 2010 at 1:53 PM, Stephen Te