rpm-0.0.1: Cozy little project to question unruly rpm packages.

System.Rpm.Combinators

Contents

Description

System.Rpm.Combinators provides a mechanism for comparing attributes of an Rpm against some sort of specification.

Synopsis

Documentation

type Rpm a = RpmInfo -> aSource

type RpmP = Rpm BoolSource

A predicate type that takes an RpmInfo datatype and returns a value of Bool depending on its evaluation.

zeroPSource

Arguments

:: RpmP

The constant combinator that always returns False when run.

The zeroP combinator, much like the oneP combinator, is more for completeness than anything.

onePSource

Arguments

:: RpmP

The constant combinator that always returns False when run.

notPSource

Arguments

:: RpmP

Predicate to negate

-> RpmP

Negated predicate

notP is used to negate its RpmP when run.

(.==.)Source

Arguments

:: Eq a 
=> Rpm a

Some field of RpmInfo

-> a

The value to check equality against

-> RpmP 

(./=.) :: Eq a => Rpm a -> a -> RpmPSource

(.<=.) :: Ord a => Rpm a -> a -> RpmPSource

(.<.) :: Ord a => Rpm a -> a -> RpmPSource

(.>=.) :: Ord a => Rpm a -> a -> RpmPSource

(.>.) :: Ord a => Rpm a -> a -> RpmPSource

(.&&.) :: RpmP -> RpmP -> RpmPSource

This is a logical combinator used for constructing more complex sequences of combinators by requiring both predicates to be true.

(.||.) :: RpmP -> RpmP -> RpmPSource

This is a logical combinator used for constructing more complex sequences of combinators by requiring one of the predicates to be true.

Example: Common Uses