regexdot-0.12.2.2: A polymorphic, POSIX, extended regex-engine.

Safe HaskellSafe
LanguageHaskell2010

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 -> Bool Source #

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.