Good day All,Why doesliftM (take 5) $ sequence $ repeat getLinenot stop at reading only 5 lines from stdin but keeps on reading more?What I’m really trying to achieve is to get input from the user untilan empty line is read with the code below. But this doesn’t workas I expected, similar to the above.liftM (takeWhile (/= "")) $ sequence $ repeat getLineRegards,Nicolaas du Preez
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners