[Haskell-cafe] [Q] A typing problem

Didier Verna didier at lrde.epita.fr
Wed Apr 13 08:20:40 EDT 2005


Henning Thielemann <lemming at henning-thielemann.de> wrote:

> Do you mean
>
> foldmap :: (b -> b -> b) -> (a -> b) -> [a] -> b
> foldmap f m = foldr1 f . map m

        But of course ! Thanks :-)

-- 
Didier Verna, didier at lrde.epita.fr, http://www.lrde.epita.fr/~didier

EPITA / LRDE, 14-16 rue Voltaire   Tel.+33 (1) 44 08 01 85
94276 Le Kremlin-Bicêtre, France   Fax.+33 (1) 53 14 59 22   didier at xemacs.org


More information about the Haskell-Cafe mailing list