<div dir="ltr"><div>Hi, </div><div><br></div><div>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 - </div><div><br></div><div><font face="monospace, monospace">----</font></div><div><div><font face="monospace, monospace"> do</font></div><div><font face="monospace, monospace"> _ <- [1..4]</font></div><div><font face="monospace, monospace"> b <- putStrLn "Test"</font></div><div><font face="monospace, monospace"> return b</font></div></div><div><font face="monospace, monospace">---</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">The intended output is to print 'Test' 4 times.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Clearly there is a mismatch between the Monad types but I can't see how to achieve this without causing the conflict.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks,</font></div><div><span style="font-family:georgia,serif;color:rgb(11,83,148)">Shishir</span></div>
</div>