3 Could not deduce (Eq a0) arising from the ambiguity check for ‘f’
4 from the context (Eq a)
5 bound by the type signature for f :: Eq a => Int -> Int
7 The type variable ‘a0’ is ambiguous
8 In the ambiguity check for: forall a. Eq a => Int -> Int
9 To defer the ambiguity check to use sites, enable AllowAmbiguousTypes
10 In the type signature for ‘f’: f :: Eq a => Int -> Int