Trying to run some haskell code, but it's not running. Gives me the error seen above
type Name = String
type Location = (Float,Float)
type RainfallFigures = [Int]
type Place = (Name,Location,RainfallFigures)
testData::[Place]
testData=[("London", (51.5, -0.1), [0, 0, 5, 8, 8, 0, 0]),("Cardiff", (51.5 , -3.2),[12, 8, 15, 0, 0, 0, 2])]
rtnNames::[Place] -> [Place]
rtnNames x=x
demo :: Int -> IO ()
demo 1 = rtnNames testData
Error occurs on the last line demo 1 = rtnNames testData I'm trying to get rtnNames to just return the test data itself for now as a first hurdle