[Haskell-cafe] Re: First time haskell - parse error!

2010-03-14 Thread Achim Schneider
Sebastian Fischer wrote: > (Choosing names that are > "misleading or flat out wrong" is of course always a bad idea.) foo = f . g . h where f x = ... g x = ... h x = ... Sometimes laziness is just the clearest option. -- (c) this sig last receiving data processing entity. Inspec

[Haskell-cafe] Re: First time haskell - parse error!

2010-03-10 Thread Maciej Piechotka
> > Good names can help making comments less important. > > OTOH, comment can give you the best(?) of both worlds, both revealing > the linear structure of the function, while still providing extra > information: > > oddSquareSum :: Integer > oddSquareSum = sum -- add tog

[Haskell-cafe] Re: First time haskell - parse error!

2010-03-10 Thread John Lato
> From: Ketil Malde > > "S. Doaitse Swierstra" writes: > >>>      then (s1 ++ s2 ++ s3 ++ s4) where >>>              s1 = "Golds " >>>              s2 = show (gold s g) >>>              s3 = ", Silvers " >>>              s4 = show (silver s g) > >> If you want to keep the definitions local to the