3 Could not deduce (Eq a0)
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 the type signature for ‘f’:
9 f :: forall a. Eq a => Int -> Int
10 To defer the ambiguity check to use sites, enable AllowAmbiguousTypes
11 In the type signature for ‘f’: f :: Eq a => Int -> Int