I have a cabal-sandboxed Haskell project on a server. If I do this on the server it installs in the sandbox:
cd project && cabal install
# installs in .cabal-sandbox/bin
But if I do this from my laptop, it installs into the global ~/.cabal/bin
ssh my@server "cd project && cabal install"
# installs in $HOME/.cabal/bin
How can I get the sandboxing behavior to work with commands issued over SSH?