MuCheck-0.1.2.2: Automated Mutation Testing

Safe HaskellNone
LanguageHaskell2010

MuCheck.Utils.Syb

Description

SYB functions

Synopsis

Documentation

selectMany :: (Data a, Typeable b) => (b -> Bool) -> a -> [b] Source

select all code components satisfying a certain predicate

selectOne :: (Typeable a, Data a1) => (a -> Bool) -> a1 -> Maybe a Source

special case of selectMany, which selects the first components satisfying a predicate

relevantOps :: (Data a, Eq a) => a -> [MuOp] -> [MuOp] Source

selecting all relevant ops

once :: MonadPlus m => GenericM m -> GenericM m Source

apply a mutating function on a piece of code one at a time

once' :: (forall a. Data a => a -> Maybe a) -> forall a. Data a => a -> a Source