I've just been through the process of converting some code from using
Control.Exception to
using an Error monad, and I would recommend that as a more straightforward and
manageable alternative, unless you need Control.Exception for other reasons.
I started by changing my potentially-failing fun
On 01/01/06, Andrew Savige <[EMAIL PROTECTED]> wrote:
> I am a Haskell beginner, using GHC 6.4.1.
>
> Suppose I have a function, tt, say, which may call error.
> For the purposes of testing tt, I'd like to be able to catch
> the error string and assert that it matches the expected error
> string. I
I am a Haskell beginner, using GHC 6.4.1.
Suppose I have a function, tt, say, which may call error.
For the purposes of testing tt, I'd like to be able to catch
the error string and assert that it matches the expected error
string. Is HUnit or QuickCheck (or either) the appropriate tool
for this s