> what is the "default" structure if you don't specify anysimilar to:display::Show a => a -> Stringdisplay = showfa::(Applicative f, Num a) => f afa = pure 1f and a are bounded by Applicative and Num, so to say. No default. Or, it is typed however type is a bit broader than *
> In this case it defaults f to IO and a to Int,does it though?Prelude> let a1 = pure 1Prelude> let a2 = pure 1Prelude> a1 == a2<interactive>:20:1: error:• Ambiguous type variable ‘a0’ arising from a use of ‘a1’prevents the constraint ‘(Num a0)’ from being solved.
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners