Re: `show' in ghci dialogue

2008-01-12 Thread Neil Mitchell
Hi Serge, I think what you are looking for is putStr: ghci putStr Test\nhere Test here Thanks Neil On 1/12/08, Serge D. Mechveliani [EMAIL PROTECTED] wrote: People, I have a question about usage of `show' in the GHCi dialogue system. I introduce my user class DShow, trying to improve

Re: `show' in ghci dialogue

2008-01-12 Thread Ian Lynagh
Hi Serge, On Sat, Jan 12, 2008 at 03:58:14PM +0300, Serge D. Mechveliani wrote: main in the ghci interpreter outputs something like this: [([1, 2, 3), []),\n\n([4, 5, 6), [7]),\n\n([9, 8, 0],\n\n[0, 0, 0])] It shouldn't do; can you give a complete example please? 1. If we give to

Re: `show' in ghci dialogue

2008-01-12 Thread Serge D. Mechveliani
On Sat, Jan 12, 2008 at 01:11:00PM +, Neil Mitchell wrote: Hi Serge, I think what you are looking for is putStr: ghci putStr Test\nhere Test here Thank you. And my `main' function below did apply putStr. I am sorry, I got confused: cannot recall in what situation its output was

Re: `show' in ghci dialogue

2008-01-12 Thread Serge D. Mechveliani
On Sat, Jan 12, 2008 at 01:23:19PM +, Ian Lynagh wrote: Hi Serge, On Sat, Jan 12, 2008 at 03:58:14PM +0300, Serge D. Mechveliani wrote: main in the ghci interpreter outputs something like this: [([1, 2, 3), []),\n\n([4, 5, 6), [7]),\n\n([9, 8, 0],\n\n[0, 0, 0])] It