input-output-hk / io-sim

Haskell's IO simulator which closely follows core packages (base, async, stm).
https://hackage.haskell.org/package/io-sim
Apache License 2.0
37 stars 15 forks source link

Add support for nested exception testing in Test/STM #36

Open yogeshsajanikar opened 2 years ago

yogeshsajanikar commented 2 years ago

Is your feature request related to a problem? Please describe. Test/STM.hs contains a toy DSL which can be evaluated in a pure as well as the STM context. It is used to test the correctness of the io-sim STM implementation. The PR #16 implements the support for MonadCatch. However, the test code does not have support for nested exceptions. Adding a support for nested exception evaluation in Test/STM will make it a complete.

Describe the solution you'd like

Describe alternatives you've considered

Additional context NA

Are you willing to implement it?