test-fun-0.1.0.0: Testable functions

Safe HaskellSafe
LanguageHaskell2010

Test.Fun.Internal.Shrink

Description

Shrinker for representation of functions.

Warning

This is an internal module: it is not subject to any versioning policy, breaking changes can happen at any time. It is made available only for debugging. Otherwise, use Test.Fun.

If something here seems useful, please open an issue to export it from an external module.

Synopsis

Documentation

shrinkFun :: forall a r. (r -> [r]) -> (a :-> r) -> [a :-> r] Source #

Simplify function.

shrinkBranches :: forall x r. (r -> [r]) -> Branches x r -> [Branches x r] Source #

shrinkFields :: forall x r. (r -> [r]) -> Fields x r -> [Fields x r] Source #

shrinkBin :: forall r. (r -> [r]) -> Bin r -> [Bin r] Source #

binToShrink :: forall r. Bin r -> Bin r Source #

shrinkMaybe :: (r -> [r]) -> Maybe r -> [Maybe r] Source #

firstFun :: forall a r t. (r -> Maybe t) -> (a :-> r) -> Maybe t Source #

firstBranches :: forall x r t. (r -> Maybe t) -> Branches x r -> Maybe t Source #

firstField :: forall x r t. (r -> Maybe t) -> Fields x r -> Maybe t Source #

firstBin :: forall r t. (r -> Maybe t) -> Bin r -> Maybe t Source #