Compiled Haskell libraries and GHC installations are not generally relocatable to a different path. So in theory copying ~/.stack between machines should work if your home directory is in the same place on the filesystem (and the architecture matches), but won't work if your home directory changes.