[Haskell-beginners] default(Int)

Imants Cekusins imantc at gmail.com
Thu Jun 16 08:04:19 UTC 2016


default(Int)

allows to use integers anywhere in this module without specifying their
ambiguous type each time, like this: (3::Int)

https://www.haskell.org/tutorial/numbers.html
section 10.4

some other default types may be specified too
somehow I was not aware of this
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160616/2b0d0225/attachment.html>


More information about the Beginners mailing list