regexdot-0.10.2.1: A /polymorphic/, POSIX, extended regular-expression engine.

RegExDot.ShowablePredicate

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Used to implement Perl-shortcuts, BracketExpression-ranges & POSIX Character-classes.

Synopsis

Types

type Predicate a = a -> BoolSource

An arbitrary polymorphic predicate function.

Data-types

data ShowablePredicate a Source

Container for both the predicate, & the name used in the implementation of Show.

Constructors

MkShowablePredicate 

Fields

name :: String

The identifier of this predicate when in string-form.

predicate :: Predicate a

The function used to determine whether an input datum matches.