genvalidity-sydtest-0.0.0.0: Standard properties for functions on `Validity` types for the sydtest framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Syd.Validity.Types

Synopsis

Documentation

class CanFail f where Source #

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

Methods

hasFailed :: f a -> Bool Source #

resultIfSucceeded :: f a -> Maybe a Source #

Instances

Instances details
CanFail Maybe Source # 
Instance details

Defined in Test.Syd.Validity.Types

CanFail (Either e) Source # 
Instance details

Defined in Test.Syd.Validity.Types