so my function 'flatten' is to take a list of characters and digits to a string
flatten :: [(Char, Int)] -> String
flatten [] = []
flatten [(x,y):xs)] = x:(show y ++ flatten xs)
but I keep getting parse error, can anyone help me understand? Thanks.
parse error (possibly incorrect indentation or mismatched brackets)
|
18 | flatten :: [(Char, Int)] -> String
| ^