Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module defines some predicate builders and combinators useful to apply the filter middleware to a directory.
Synopsis
- type Predicate = Entry -> Bool
- equalP :: Eq a => EntryGetter a -> a -> Predicate
- lessP :: Ord a => EntryGetter a -> a -> Predicate
- greaterP :: Ord a => EntryGetter a -> a -> Predicate
- infixP :: Text -> EntryGetter Text -> Predicate
- prefixP :: Text -> EntryGetter Text -> Predicate
- suffixP :: Text -> EntryGetter Text -> Predicate
- andP :: Predicate -> Predicate -> Predicate
- orP :: Predicate -> Predicate -> Predicate
- notP :: Predicate -> Predicate
Documentation
andP :: Predicate -> Predicate -> Predicate Source #
Builds a predicate which combines with a logical and given predicates.