regex-do-1.9: PCRE wrapper

Safe HaskellNone
LanguageHaskell2010

Text.Regex.Do.Pcre.MatchSame

Synopsis

Documentation

class MatchSame a out where Source

picks Match instance where Pattern and Body are of the same type

specify either Pattern or Body + out types

handy when working with OverloadedStrings

>>> ("^all"::String) -~ "all the time"::[String]

["all"]

Minimal complete definition

Nothing

Methods

match' :: Match a a out => Pattern a -> Body a -> out Source

(-~) Source

Arguments

:: Match a a out 
=> a

pattern

-> a

body

-> out

- in (-~) is the minus sign