nick8325 / nick8325/quickcheck

Add exception handling to the PropertyM monad

Open
#51 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion
Dominant language
Haskell
Stars
790
Forks
130
Avg merge
16h 41m
Merged PRs (30d)
2

Description

Ideally the exception handling logic would be based off of either the exceptions or the monad-control package, but even a simple try :: (Exception e, Monad m) => PropertyM m a -> PropertyM m (Either e a) would be satisfactory.

I took a stab at each of these myself, but I couldn't get the types to work out. I'm creating this issue in hopes that there's something I missed that will be obvious to someone more familiar with QuickCheck's inner workings.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names PropertyM and the exceptions and monad-control packages but no files or tests. Start by locating PropertyM and its existing monad instances, then compare the requested try signature with those package APIs; done means a workable exception-handling interface is implemented and its behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.