Reading .mat files in Haskell