haskell-distributed/libssh2-hs — pull request #1 by qnikst (2012-12-04 10:41:47+00:00)
Title: make sessionInit, sessionClose functions to be public

This patch adds an ability to "break-out" of ssh2 session scope, i.e.

```
session <- sessionInit
someActionsWithSession session
someIOOrOtherMonadActions
someActionsWithSession session
sessionClose
````

Code can still can be save if sessionInit sessionClose functions is used in
conjunction with region library like resourcet.

All changes in backward compatible.