[Haskell-beginners] infinite type

Imants Cekusins imantc at gmail.com
Sun Jan 3 15:03:48 UTC 2016


Hello Julian,

Prelude> let f g = g . g
Prelude> let sum x y = x + y
Prelude> f sum

If you are trying to call 'f' and see the result, args are missing.

If you are trying to create new type, use 'let'.

Prelude> (\x y -> x + y) . (\x y -> x + y)

Similar story. Let or args

;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160103/404ebf2e/attachment.html>


More information about the Beginners mailing list