Craft3e-0.2.0.1: Code for Haskell: the Craft of Functional Programming, 3rd ed.
Safe HaskellSafe-Inferred
LanguageHaskell2010

RegExp

Documentation

splits :: [a] -> [([a], [a])] Source #

fsplits :: [a] -> [([a], [a])] Source #

data RE Source #

Constructors

Eps 
Ch Char 
RE :|: RE infixr 5 
RE :*: RE infixr 7 
St RE 
Plus RE 

Instances

Instances details
Show RE Source # 
Instance details

Defined in RegExp

Methods

showsPrec :: Int -> RE -> ShowS #

show :: RE -> String #

showList :: [RE] -> ShowS #

Eq RE Source # 
Instance details

Defined in RegExp

Methods

(==) :: RE -> RE -> Bool #

(/=) :: RE -> RE -> Bool #

interleave :: [a] -> [a] -> [a] Source #

cartesian :: [[a]] -> [[a]] -> [[a]] Source #

plus :: RE -> RE Source #