
5 Oct
2009
5 Oct
'09
2:06 p.m.
2009/10/5 Maria Boghiu
I get an error saying I am mismatching types IO [String] and [String].
Something of the type IO [String] is a computation which does some IO (reading files, launching nukes, etc.) and then returns a list of strings. Something of the type [String] is merely a list of strings. It is impossible (I'm lying here, but for a good cause) to "convert" something on the form "IO a" to just "a". Try something like this: main = do fileContent <- readFile "/path/to/file" xmonad $ defaultConfig { ... workspaces = lines fileContent, ... } ... -- Deniz Dogan