Beginners Digest, Vol 25, Issue 44

2010-07-19 Thread beginners-request
rg > http://www.haskell.org/mailman/listinfo/beginners > ------ next part -- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/beginners/attachments/20100719/5406d765/attachment-0001.html -- Message: 3 Date: Mon, 19 Jul 2010 1

Beginners Digest, Vol 25, Issue 43

2010-07-19 Thread beginners-request
7;s a simple version without any of the implementation details: fetchLine = do let results = (unstrict . repeat) getLine mapM_ putStrLn results where unstrict [] = [] unstrict (x:xs) = unsafePerformIO x:unstrict xs -- next part -- An HTML attachment was scrubbed... URL:

Beginners Digest, Vol 25, Issue 42

2010-07-19 Thread beginners-request
this case I'd probably write the following functions: 1. Parser for strings like "v55" and "v13": result type Parser Int 2. Parser for strings like "c123" and "c12": result type Parser [Int] 3. Parser combining 1 and 2: result ty