Move session assigning to haskell-process.

@hvr this avoids the dependency problem.