I have a class :
> class Binaer a where
> binaer_zu_a :: String -> a
And two instances:
> instance Binaer Integer where
> binaer_zu_a b = 3
> instance Binaer Bool where
> binaer_zu_a b = True
So the input to he function binaer_zu_a is always a string, but how do I have to call the function so that the function "knows" which of them it should execute?
If I try to call it like binaer_zu_a :: Bool "01" for example I ge anERROR - Syntax error in input (unexpected string literal)
So how do I need to call that function?
(binaer_zu_a :: String -> Bool) "True".