Safe Haskell | None |
---|---|
Language | Haskell2010 |
SYB functions
- selectMany :: (Data a, Typeable b) => (b -> Bool) -> a -> [b]
- selectOne :: (Typeable a, Data a1) => (a -> Bool) -> a1 -> Maybe a
- relevantOps :: (Data a, Eq a) => a -> [MuOp] -> [MuOp]
- once :: MonadPlus m => GenericM m -> GenericM m
- once' :: (forall a. Data a => a -> Maybe a) -> forall a. Data a => a -> a
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