Bulat, > or just > > return $ map (mkVec . map read . words) $ lines str Yeah, I wrote that one down a little bit later, but didn't really find it worth mentioning. ;) As said, I don't really think this kind of programs is suitable for learning Haskell, anyway. Regards, Stefan