
27 Jan
2017
27 Jan
'17
10:43 a.m.
Because f has an argument x, and g doesn't.
On Fri, Jan 27, 2017 at 10:17 AM, Daniel Trstenjak
On Fri, Jan 27, 2017 at 08:35:08AM -0500, David McBride wrote:
If you have the Monomorphism restriction set, it will choose types based on the type defaulting rules (Num changes to Integer). This is because polymorphic code is slower than code that has concrete types.
But why didn't the defaulting rules have been applied for both: 'f' and 'g'?
Greetings, Daniel _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners