Basically what I need to do is write a function that takes in a list of type [(String,String)] and print out the contents so that, line-by-line, the output looks like this:
FirstString : SecondString
FirstString : SecondString
..etc, for every item in the list. I've got the following code and it prints it out, but for some reason it prints out a line containing [(),()] at the end.
display :: Table -> IO()
display zs = do {xs <- sequence [putStrLn (a++" = "++b) | (a,b) <- zs]; print xs }
Is there anything I'm doing wrong?