for example I have [1,2,5,1,1,2], I have the function below,
card :: [Int] -> Map Int Int
card = Map.fromListWith (+) . (`zip`[1,1..])
that is able to give out this -> fromList [(1,3),(2,2),(5,1)]
and now I have to use this function in order to get the mode from these tuples, I basically have to get the maximum value from the key-value pairs.