Haskell divide String into Lists
<p>I've been working for quite a while on this project and just want to ask if it is possible to divide a string into a set list. At the moment I have</p>

<pre><code>type Rate = (String,Int)
type Film  =  (String,String,Int,[Rate])

testDatabase :: [Film]
testDatabase = [("Blade Runner","Ridley Scott",1982,[("Amy",5), ("Bill",8), ("Ian",7), ("Kevin",9), ("Emma",4), ("Sam",7), ("Megan",4)]),("The Fly","David Cronenberg",1986,[("Megan",4), ("Fred",7), ("Chris",5), ("Ian",0), ("Amy",6)])...
</code></pre>

<p>And I have tailored a lot of functions to be able to work with the <code>[Film]</code> type.</p>

<p>My problem arose when I tried to import the data from a text file.</p>

<p>Using <code>readFile</code> I am only able to read</p>

<pre><code>[("Blade Runner","Ridley Scott",1982,[("Amy",5), ("Bill",8), ("Ian",7), ("Kevin",9), ("Emma",4), ("Sam",7), ("Megan",4)]),("The Fly","David Cronenberg",1986,[("Megan",4), ("Fred",7), ("Chris",5), ("Ian",0), ("Amy",6)]) 
</code></pre>

<p>as </p>

<pre><code>"[("Blade Runner","Ridley Scott",1982,[("Amy",5), ("Bill",8), ("Ian",7), ("Kevin",9), ("Emma",4), ("Sam",7), ("Megan",4)]),("The Fly","David Cronenberg",1986,[("Megan",4), ("Fred",7), ("Chris",5), ("Ian",0), ("Amy",6)])" 
</code></pre>

<p>and I don't know if there is a way to make the <code>readFile</code> read to a different data type rather than string or to convert this string to fit in the datatype.</p>

<p>Any advice would be really appreciated. Sorry if I didn't phrase the question well. In summary, is there a way to make a string into just data to be able to implement into a type or is there a way to <code>readFile</code> as something other than <code>String</code>?</p>

<p>Thank you in advance.</p>