HaXPath-0.3.0.1: An XPath-generating embedded domain specific language.
Safe HaskellSafe-Inferred
LanguageHaskell2010

HaXPath.Schematic.Operators

Description

XPath operators which are re-exported from the HaXPath.Schematic module for convenience. This module is designed to be imported unqualified.

Synopsis

Documentation

(#) :: (PathLike p, ToNonSchematic p, FromNonSchematic (NonSchematic p) p, Filterable (NonSchematic p)) => p -> [Bool' (Attributes (ReturnNode p)) (Showed (NonSchematic p))] -> p infixl 9 Source #

Filter the path-like expression using the given predicate(s). The predicates must only make use of the attributes of the type of node selected by the path, otherwise it will not type check.

(&&.) :: IsString s => Bool' as s -> Bool' as s -> Bool' as s infixr 3 Source #

The XPath and operator.

(/.) :: (Member (SelectNode q) (Relatives (ReturnNode p) (Axis q)), PathLike p, PathLike q, SlashOperator (NonSchematic p) (NonSchematic q)) => p -> q -> Path' (Context (NonSchematic p)) (Axis p) (SelectNode p) (ReturnNode q) (Showed (NonSchematic q)) infixl 8 Source #

The XPath / operator.

(/=.) :: (ToNonSchematic t, Eq (NonSchematic t), IsString (Showed (NonSchematic t))) => t -> t -> Bool' (AttributesUsed t) (Showed (NonSchematic t)) infix 4 Source #

The XPath != operator.

(<.) :: (ToNonSchematic t, Ord (NonSchematic t), IsString (Showed (NonSchematic t))) => t -> t -> Bool' (AttributesUsed t) (Showed (NonSchematic t)) infix 4 Source #

The XPath < operator.

(<=.) :: (ToNonSchematic t, Ord (NonSchematic t), IsString (Showed (NonSchematic t))) => t -> t -> Bool' (AttributesUsed t) (Showed (NonSchematic t)) infix 4 Source #

The XPath <= operator.

(=.) :: (ToNonSchematic t, Eq (NonSchematic t), IsString (Showed (NonSchematic t))) => t -> t -> Bool' (AttributesUsed t) (Showed (NonSchematic t)) infix 4 Source #

The XPath = operator.

(>.) :: (ToNonSchematic t, Ord (NonSchematic t), IsString (Showed (NonSchematic t))) => t -> t -> Bool' (AttributesUsed t) (Showed (NonSchematic t)) infix 4 Source #

The XPath > operator.

(>=.) :: (ToNonSchematic t, Ord (NonSchematic t), IsString (Showed (NonSchematic t))) => t -> t -> Bool' (AttributesUsed t) (Showed (NonSchematic t)) infix 4 Source #

The XPath >= operator.

(||.) :: IsString s => Bool' as s -> Bool' as s -> Bool' as s infixr 2 Source #

The XPath or operator.