type FreqTable = [(Char, Int)]
fTable :: String -> FreqTable
fTable s = [sort $ s, i+1]
where i = 0
As you can see I am trying to return a tuple, but I can't understand why what I have returned isn't acceptable. Obviously this isn't a completed program that returns a frequency table yet but I am just trying to understand how to return this type FreqTable at the moment.
Also any hints to how I would go about creating the frequency table would be much appreciated as I am quite new to Haskell, I don't want the answer just some stepping stones.