regex-pderiv-0.0.8.1: Replaces/Enhances Text.Regex

Text.Regex.PDeriv.Common

Description

this module contains the defs of common data types and type classes

Synopsis

Documentation

type Range = (Int, Int)Source

(sub)words represent by range

type Letter = (Char, Int)Source

a character and its index (position)

class IsEmpty a whereSource

Methods

isEmpty :: a -> BoolSource

Instances

IsEmpty RE

function isEmpty checks whether regular expressions are empty

data GFlag Source

The greediness flag

Constructors

Greedy

greedy

NotGreedy

not greedy

Instances

class IsGreedy a whereSource

Methods

isGreedy :: a -> BoolSource

Instances

IsGreedy RE 
IsGreedy Pat

Function isGreedy checks whether a pattern is greedy

nub2 :: [(Int, a)] -> [(Int, a)]Source

remove duplications in a list of pairs, using the first components as key.

nub3 :: [(Int, a, Int)] -> [(Int, a, Int)]Source