[Haskell-beginners] infinite type

Imants Cekusins imantc at gmail.com
Sun Jan 3 21:05:04 UTC 2016


>Where does the infinity come from?

Here is composition signature:

(.) <http://hackage.haskell.org/package/base-4.8.1.0/docs/Prelude.html#v:.> ::
(b -> c) -> (a -> b) -> a -> c

It looks like it is applicable to functions with 1 arg. Sum expects 2 args.
I guess this explains why sum can not be passed to f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160103/06feacaa/attachment.html>


More information about the Beginners mailing list