I need the list for further operations on strings. I do not want just print the list of strings!
my code so far
https://gist.github.com/bigos/0067a62e15dbed264ce6ef92e0eca58c
clarification of my goal
I would consider the question answered if somebody provided an example where code traverses through the list of filenames and prints the first half of each filename.
explanation why I could not do it
This question How to get normal value from IO action in Haskell has the answer submitted by Riccardo T.
has nice pseudocode example.