While "while" can be implemented in haskell, I would strongly suggest you
look at using the many higher-order functions available (foldl/foldr, map,
filter, etc.) - they're much more in line with the spirit of the language,
and will lend themselves to much clearer expressions once you get the hang
Dear Haskell Folks,
Release Candidate 16 of the H98 FFI Addendum 1.0 is now
available from
http://www.cse.unsw.edu.au/~chak/haskell/ffi/
Since the last version of the Addendum announced on
<[EMAIL PROTECTED]>, namely RC12, the FFI Task Force
decided on a slight generalisation of the interface
Johannes Waldmann <[EMAIL PROTECTED]> writes:
> f x y = ( ... ) { info = parens $ fsep [ text "f", info x, info y ] }
Cool!
> that way you always know who built what.
> and it's cheap - if you don't use this information,
> then it's never created (due to laziness).
Uh..is that really true? I w
Ben Escoto wrote:
Hi all, does anyone have any tips on how to insert debugging or
logging statements through a program? Here are two possibilities:
another thing I found quite useful is
to add a component { .. , info :: Doc } to my data types,
and then set its value at each function call:
f x y =