Right now I have two types:
type Rating = (String, Int)
type Film = (String, String, Int, [Rating])
I have a file that has this data in it
Is this homework?
You might find these functions useful:
Remember that String
is the same as [Char]
.
Some clues:
dropWhile null
will get rid of empty lines from the start of a listbreak null
will split a list into the leading run of non-empty lines, and the rest of the list