> fb = > do { > putStr "Enter Data: "; > line <- getLine; > let line2 = line; > putStr line2; > } I suggest doing this: > fb = > do { putStr "Enter Data: " > ; line <- getLine > ; let line2 = line > ; putStr line2 > } which looks nicer and has the advantage of being much easier to keep track of where the semicolons are. -Paul _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
- The Do-Let-Braces problem Mark Utting
- Re: The Do-Let-Braces problem Sebastien Carlier
- Re: The Do-Let-Braces problem Marcin 'Qrczak' Kowalczyk
- Re: The Do-Let-Braces problem Malcolm Wallace
- RE: The Do-Let-Braces problem Paul Hudak
- RE: The Do-Let-Braces problem Simon Marlow