Skip to content

Conversation

@arianvp
Copy link

@arianvp arianvp commented Aug 25, 2018

Fixes #209

This is still a WIP. but the first step is completed (adding a type parameter to Property)

This will allow us to return something from the test at hand,
like the counter-example that made it fail.
@arianvp
Copy link
Author

arianvp commented Aug 25, 2018

Need some advice here.

Considering TestT is the actual thing that is returning a Failure, by means of an ExceptT I actually think the type
of PropertyT needs to be more like:

newtype TestT e m a
newtype PropertyT e m a

data Property e = { PropertyT e m () }

reflecting that a PropertyT can return a counterexample e.

but that actually seems to be a bit of a bigger refactoring, as I'll need to refactor MonadTest to carry
around e too

but then functions like eval, evalEither and evalM become unimplementable... so I'm kind of stuck and it becomes a bit of a larger refactoring than I would've hoped

@jacobstanley jacobstanley force-pushed the master branch 2 times, most recently from 4139585 to c228279 Compare May 22, 2022 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant