polysoup-0.5.2: Online XML parsing with polyparse and tagsoup

Safe HaskellSafe-Inferred

Text.XML.PolySoup.Predicate

Description

A generic extracting predicate.

Synopsis

Documentation

newtype Q a b Source

A predicate checks if the given element satisfies some properties and extracts its attribute values. You can compose predicates using Functor, Applicative and Alternative operators: *>, <*, <|> etc. Note, that it doesn't really have sense to use function like many or some, since the extracting predicate doesn't consume any input.

Constructors

Q 

Fields

runQ :: a -> Maybe b
 

Instances

true :: Q a aSource

Predicate which is always satisfied.

satisfy :: (a -> Bool) -> Q a aSource

Check if the given predicate is satisfied.