`show' in ghci dialogue

Ian Lynagh igloo at earth.li
Sat Jan 12 08:23:19 EST 2008


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 the interpreter the line
> 
>    > listOfListPairs
> 
> , then the  ghci  dialogue system does interprete the NewLine 
> characters on output as needed -- 
> only          for the value of  (show listOfListPairs).
> And I need it for the value of  (dShow opts listOfListPairs).
> Is there any way to substitute a user function instead of `show' in the  
> ghci  output?  (and dShow has additional argument ...).

Not as far as I know.


Thanks
Ian



More information about the Glasgow-haskell-users mailing list