It is true that ambiguous types cause time-wasting frustration for many a beginner.<div><br></div><div>The link that Imants gave helps clarify matters:</div><div><br></div><div><div><font color="#000000" size="2"><span style="background-color:rgba(255,255,255,0)"><a href="https://www.haskell.org/tutorial/numbers.html" target="_blank">https://www.haskell.org/tutorial/numbers.html</a></span></font></div></div><div><br></div><div>Even better is the link to the Haskell report given at the end:</div><div><br></div><div><a href="https://www.haskell.org/onlinereport/decls.html#default-decls">https://www.haskell.org/onlinereport/decls.html#default-decls</a><br><br>On Thursday, June 16, 2016, Imants Cekusins <<a href="mailto:imantc@gmail.com">imantc@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>default(Int)<br></div><div><br></div><div>allows to use integers anywhere in this module without specifying their ambiguous type each time, like this: (3::Int)</div><div><br></div><div><a href="https://www.haskell.org/tutorial/numbers.html" target="_blank">https://www.haskell.org/tutorial/numbers.html</a><br></div><div>section 10.4</div><div><br></div><div>some other default types may be specified too</div><div>somehow I was not aware of this</div></div>
</blockquote></div><br><br>-- <br>-- Kim-Ee<br>