I know to use show and putStrLn but I just don&#39;t know how to put them into<br>
the function correctly</blockquote><div><br>Well I hope we&#39;re not doing your homework for you but...<br><br>As putStrLn is in the IO monad, listFilms should at least have a signature like this:<br><br>listFilms :: [Film] -&gt; IO ()<br>
<br>Now
you know you want to call putStrLn on each item in the list. That means
you want to join a bunch of functions return IO (). That sounds like a
job for sequence_:<br><br>listFilms films = sequence_ $ map (putStrLn.show) films<br><br>Or the same thing more verbosely:<br><br>listFilms [] = return ()<br>listFilms (film:films)<br> = do putStrLn (show film)<br> listFilms films<br>
<br>Hope that helps,<br>Alex<br><br></div></div>