Graph structure in Haskell: Import and export