I have a class with no explicit type a.
> class Binaer a where
> a_zu_binaer :: a -> String
And I am building an instance of that class. The function toBin requires as input an Integer.
> instance Binaer Integer where
> a_zu_binaer b = toBin b
Doing so I get the following error:
Inferred type is not general enough
*** Expression : a_zu_binaer
*** Expected type : a -> String
*** Inferred type : Integer -> String
Is there a way to solve this problem? I can not give an explicit type for "a"