[Haskell-beginners] Change in type that I don't understand

David McBride toad3k at gmail.com
Fri Jan 27 15:43:28 UTC 2017

Because f has an argument x, and g doesn't.

On Fri, Jan 27, 2017 at 10:17 AM, Daniel Trstenjak
<daniel.trstenjak at gmail.com> wrote:
> 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 at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

More information about the Beginners mailing list