[Haskell-cafe] using ResourceT with MVars