Testing Haskell projects that use homeless shelter up

I see one workaround suggested by Peti is setting HOME to somewhere writable.