I have a list of strings, and tried this:
ls = [ \"banana\", \"mango\", \"orange\" ] main = do map PutStrLn list_of_strings
That di
Ayman's answer makes most sense for this situation. In general, if you have [m ()] and you want m (), then use sequence_, where m can be any monad including IO.
[m ()]
m ()
sequence_
m
IO