« Return to Thread: MPTCs and rigid variables

MPTCs and rigid variables

by David House :: Rate this Message:

Reply to Author | View in Thread

class Foo a b | a -> b
instance Foo Int String
bar :: Foo Int b => b
bar = "rargh"

Is there any reason why that shouldn't work? GHC gives one of its
silly "b is a rigid variable" errors (aside: that's a really confusing
error; I'd prefer something like Hugs's "Infered type is not general
enough").

--
-David House, dmhouse@...
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

 « Return to Thread: MPTCs and rigid variables

LightInTheBox - Buy quality products at wholesale price!