rex: A quasi-quoter for typeful results of regex captures.

[ bsd3, control, library ] [ Propose Tags ]

Provides a quasi-quoter for regular expressions which yields a tuple, of appropriate arity and types, representing the results of the captures. Allows the user to specify parsers for captures as inline Haskell. Can also be used to provide typeful pattern matching in function definitions and pattern matches. Also, it precompiles the regular expressions into a PCRE compiled byte-array representation, at compile time.


[Skip to Readme]
Versions 0.1, 0.2, 0.3, 0.3.1, 0.4.1, 0.4.2, 0.4.3, 0.5, 0.5.1, 0.5.2
Dependencies base (>=3.0 && <6), bytestring, containers, ghc (>=7), haskell-src-meta, MissingH, pcre-light, split, template-haskell (>=2.5.0.0) [details]
License BSD-3-Clause
Copyright Michael Sloan 2011
Author Michael Sloan
Maintainer Michael Sloan <mgsloan at gmail>
Category Control
Home page http://github.com/mgsloan/rex
Bug tracker http://github.com/mgsloan/rex/issues
Source repo head: git clone git://github.com/mgsloan/rex
Uploaded by MichaelSloan at Mon Jul 25 00:23:26 UTC 2011
Distributions NixOS:0.5.2
Downloads 3548 total (13 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for rex-0.1

[back to package description]
http://hackage.haskell.org/package/rex

Provides a quasi-quoter for regular expressions which
yields a tuple, of appropriate arity and types,
representing the results of the captures.  Allows the user 
to specify parsers for captures as inline Haskell.  Can 
also be used to provide typeful pattern matching in
function definitions and case patterns.

To build / install:

./Setup.hs configure --user
./Setup.hs build
./Setup.hs install

See the haddock or Text/Regex/PCRE/QQT.hs for documentation.