Fix defaulting when local classes are involved
Consider the following program.
class Eq
test :: (Eq a, Num a) => a
test = 42
The REPL tries to default the type of the expression test
to Int
. But due to the local definition of Eq
this should not happen as it cannot be guaranteed that there is an Eq
instance for Int
(which is not the case in the program above).
This problem can be fixed, if the full qualified class name is considered when defaulting (so Prelude.Eq
instead of Eq
).