[Haskell-beginners] Loop
Shishir Srivastava
shishir.srivastava at gmail.com
Fri May 1 12:40:16 UTC 2015
Hi,
Please can anyone point out the correct way of doing this - I am simply
trying to print "Test" in a loop based on the counter derived from the list
-
----
do
_ <- [1..4]
b <- putStrLn "Test"
return b
---
The intended output is to print 'Test' 4 times.
Clearly there is a mismatch between the Monad types but I can't see how to
achieve this without causing the conflict.
Thanks,
Shishir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150501/e7327970/attachment.html>
More information about the Beginners
mailing list