Check out "unlines"! On Sat, Apr 2, 2011 at 4:32 PM, Manfred Lotz <[email protected]> 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 > [email protected] > http://www.haskell.org/mailman/listinfo/beginners >
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
