hspec/hspec — pull request #156 by wuzzeb (2014-01-08 03:27:59+00:00)
Title: [RFC] Sessions using unsafePerformIO

Here is the other RFC for sessions as compared to Pull #154. It does not make any internal changes to hspec and instead uses unsafePerformIO. Also I called these sessions since they are not quite scenarios (which I guess is the usual BDD term), but they can of course be rephrased.

I implemented it as two commits: the first one implements sessions with manual state passing using no extra dependencies and the follow-on commit uses monad-control to thread the state of a monad through the tests.

Both this and #154 try and implement the same thing in different ways and are both still RFCs. No rush though, I saw you are on vacation and I am not in a hurry. The design will probably still have to evolve depending on your feedback.