Re: How to best add logging/debugging code?

2003-11-27 Thread Andy Fugard
Manuel M T Chakravarty wrote: There is `Debug.Trace.trace' for this: http://haskell.org/ghc/docs/latest/html/base/Debug.Trace.html However, if you want to log as opposed to debug, you may want to have the output go to somewhere else but stdout. Hence, it might be useful to have a variant of

RE: Counting occurrences question

2002-06-05 Thread Andy Fugard
- Integer ... I'm not sure if I should go any further, in case this is a homework question... Andy -- [ Andy Fugard ] [ +44 (0)7901 603075 ] ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Counting occurrences question

2002-06-05 Thread Andy Fugard
At 20:11 05/06/2002 +0200, Hannah Schroeter wrote: Why not combine filter and length appropriately? Pass -- I'm also a newbie, and haven't got as far as filter. *Looks up filter* Well, there's his homework done :-)

Critique required

2002-05-27 Thread Andy Fugard
( do w - openWindow A Snowflake Fractal (700,650) snowFlake w [Cyan, Blue, Magenta, White, Blue] 400 5 (300,250) k - getKey w closeWindow w ) -- [ Andy Fugard ] [ +44 (0)7901 603075

(no subject)

2002-05-21 Thread Andy Fugard
* * * * * * * * * * * * * * * * * * * * * * * Get your free @ecosse.net account http://www.ecosse.net Scotland's Free Internet Service Provider * * * * * * * * * * * * * * * * * * * * * * * ___ Haskell-Cafe mailing list [EMAIL

Permutations of a list

2001-05-14 Thread Andy Fugard
in advance, Andy -- [ Andy Fugard /'andi fju:ga:d/ ] [ Phone: +44 (0)7901 603075] ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: Permutations of a list

2001-05-14 Thread Andy Fugard
At 13:43 14/05/01 +0200, Ralf Hinze wrote: Andy Fugard wrote: My main question is really what facilities of the language I should be looking at to make this code more elegant! As you can see I currently know only the basics of currying, and some list operations. Definitely list