Oops, think I didn't send this to cafe, forgive any duplicates please.
-mdg ---------- Forwarded message ---------- From: Mark Goldman <[EMAIL PROTECTED]> Date: Mar 9, 2007 8:37 AM Subject: Re: [Haskell-cafe] Re: Haskell spacing problem. To: Frozz <[EMAIL PROTECTED]>
From a different angle, are you looking at the text file with a
proportional font instead of a fixed width font? With a proportional font each letter takes up a different amount of horizontal space which mucks up most ASCII based formating. -mdg On 3/9/07, Frozz <[EMAIL PROTECTED]> wrote:
prettyPrint seems complicated.. Dan Mead <d.w.mead <at> gmail.com> writes: > > > that seems like the "wrong" waycheck out prettyprint in the standard library > > On 3/9/07, Frozz < > dj_frozz <at> hotmail.com> wrote:Hi Haskell ppl,I'm trying to solve a problem that had been bothering me for a long time. I'm > trying to create index and display the index in Hugs as well as an output textfile.Below is my code. In Hugs, the index managed to get displayed well with nicealignments. However, for the text file, the alignment is off. The bracket with > the numbers are messy. I really don't know why this would happen.Desired output:Anna [1]Ben[2]Shane[3]dispTable :: [([Int], Word)] -> StringdispTable = unlines . map (\ (num,word) -> word ++ > take (25 - (length word)) (repeat ' ')++ show num)Did i do sth wrong? Thanks in advance._______________________________________________Haskell-Cafe mailing list > Haskell-Cafe <at> haskell.orghttp://www.haskell.org/mailman/listinfo/haskell- cafe > > > > > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe <at> haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Our problems are mostly behind us, now all we have to do is fight the solutions. -- Our problems are mostly behind us, now all we have to do is fight the solutions. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe