Matrix/Haskell: read in file contents