Fixing cabal file for sdist
Adding helper function to save into .hdr file.