On Sat, Jun 8, 2013 at 9:02 AM, Peter Hall <peter.hall@memorphic.com> wrote:
--This is confusing me, and I'm wondering if it's a compiler bug. I have this:
foo = (++) `on` showI'm expecting the type to be:foo :: Show a => a -> a -> StringBut GHCI is inferring:foo :: () -> () -> StringNo bug; it's the monomorphism restriction combining with extended defaulting to infer a monomorphic type. If you want to keep the monomorphism restriction and throw a type error, disable ExtendedDefaultRules.brandon s allbery kf8nh sine nomine associatesunix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net