regexqq: A quasiquoter for PCRE regexes.

[ bsd3, library, text ] [ Propose Tags ] [ Report a vulnerability ]

A quasiquoter for Text.Regex.PCRE regexes. This makes use of a new GHC extension known as QuasiQuotes. QuasiQuotes do not appear in ghc until 6.9, BUT there is a patch for ghc-6.8.3 which adds quasiquote functionality. A patched version of ghc-6.8.3, made possible by audreyt's patch, is at http://code.haskell.org/~morrow/quasiquotes/ghc-6.8.3_QQ-0.2.tar.bz2. An example of the use of regexqq is located at http://code.haskell.org/~morrow/quasiquotes/regexqq.txt. Haddock docs are at http://code.haskell.org/~morrow/quasiquotes/regexqq/docs/.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.2, 0.3, 0.4, 0.5, 0.6
Dependencies base, bytestring, pcre-light, template-haskell (>=2.2) [details]
License BSD-3-Clause
Copyright Matt Morrow
Author Matt Morrow
Maintainer Matt Morrow <mjm2002@gmail.com>
Category Text
Home page http://code.haskell.org/~morrow/code/haskell/regexqq
Uploaded by MattMorrow at 2008-06-25T12:44:37Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 4278 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for regexqq-0.6

[back to package description]
regexqq - Matt Morrow, 2008.

The current (as of 080623) location of the
current template-haskell docs are temporarily
(until they're located in the standard place)
available at:

http://code.haskell.org/~morrow/code/haskell/misc/template-haskell-HEAD_080623/

An example:

ghci> :m + Text.Regex.PCRE.QQ
ghci> [$rx|([aeiou]).*(er|ing|tion)([\.,!\?]*)$|] "helloing.!?!?!"
Just ["elloing.!?!?!","e","ing",".!?!?!"]