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
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
out
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
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
People,
I have a question about usage of `show' in the GHCi dialogue system.
I introduce my user class DShow, trying to improve the class Show of
Haskell-98. For example, I program
---
class DShow a where dShow :: ShowOptions -> a -> String
...
main = let listOfListPair