Hi I have small problem with printing [[[Char]]]
using IO.
I have a [[[Char]]]
list - in another words [[String]]
I would like to print them like
FirstStringOfFirstListOfStrings
SecondStringOfFirstListOfStrings
.
.
.
LastStringOffFirstListofStrings
(some gap anything empty line "----" string anything)
FirstStringOfSecondsListOfStrings
In another words I don't want the [String]
to be printed one under another (one row break at least or some line filled with ------
for example)
mapM_ (mapM_ print)
My idea was to compose the (mapM_ print)
function with another but that doesn't seem to work. Any suggestions?
Edit: Here's an example, as requested
data to print: [["abc","cde","efg"],["hjk","mno","prs"],["stu","wxy","zzz"]]
while using mapM_ (mapM_ print)
it prints like
abc
cde
efg
hjk
mno
prs
stu
wxy
zzz
But I would like it to be printed like this:
abc
cde
efg
hjk
mno
prs
stu
why
zzz
They can be separated by an empty line or some string.