Re: [Haskell-cafe] [Haskell-beginners] how to modify show for a list of certain types
2 Apr
2011
2 Apr
'11
1:49 p.m.
Check out "unlines"! On Sat, Apr 2, 2011 at 4:32 PM, Manfred Lotz <manfred.lotz@arcor.de> wrote:
Hi there, I have a list of say type Record which I write to a file and read back from the file if required.
The list's content is a single line in the file it doesn't matter how many records the list contains.
I would like to modify show for type Record in a way that show does work like the normal show but additionally adds a newline at the end of the string.
I'm a bit lost how to do that. Any idea?
-- Manfred
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
5621
Age (days ago)
5621
Last active (days ago)
0 comments
1 participants
participants (1)
-
Markus Läll