genvalidity-property-0.2.0.2: Standard properties for functions on `Validity` types

Safe HaskellSafe
LanguageHaskell2010

Test.Validity.Types

Synopsis

Documentation

class CanFail f where Source #

A class of types that are the result of functions that can fail

Minimal complete definition

hasFailed, resultIfSucceeded

Methods

hasFailed :: f a -> Bool Source #

resultIfSucceeded :: f a -> Maybe a Source #