summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--EXAMPLES3
-rw-r--r--README.ghc-6.84
-rw-r--r--regexqq.cabal6
3 files changed, 9 insertions, 4 deletions
diff --git a/EXAMPLES b/EXAMPLES
index 4f89800..60cd55c 100644
--- a/EXAMPLES
+++ b/EXAMPLES
@@ -4,6 +4,7 @@ regexqq - EXAMPLES
-- Here is a pasteable-into-ghci version of the below:
:m + Text.Regex.PCRE.QQ
+:set -XQuasiQuotes
[$rx|([aeiou]).*(er|ing|tion)([\.,!\?]*)$|] "helloing.!?!?!"
[$rx|^([+-])?([0-9]+)\.([0-9]+)|] (show $ negate pi)
tail `fmap` [$rx|^([+-])?([0-9]+)\.([0-9]+)|] (show $ negate pi)
@@ -15,6 +16,8 @@ maybe [] tail $ [$rx|^([+-])?([0-9]+)\.([0-9]+)(.*)$|] (show (negate pi) ++ "asd
ghci> :m + Text.Regex.PCRE.QQ
+ghci> :set -XQuasiQuotes
+
ghci> [$rx|([aeiou]).*(er|ing|tion)([\.,!\?]*)$|] "helloing.!?!?!"
Just ["elloing.!?!?!","e","ing",".!?!?!"]
diff --git a/README.ghc-6.8 b/README.ghc-6.8
index cf093eb..74b7501 100644
--- a/README.ghc-6.8
+++ b/README.ghc-6.8
@@ -3,10 +3,10 @@ ghc-6.8.* doesn't yet support QuasiQuotes.
BUT, there is a patched ghc-6.8.3 that *does*
support QuasiQuotes at:
-http://code.haskell.org/~morrow/quasiquotes/ghc-6.8.3_QQ-0.1.tar.bz2
+http://code.haskell.org/~morrow/quasiquotes/ghc-6.8.3_QQ-0.2.tar.bz2
NOTE:
- ghc-6.8.3_QQ-0.1.tar.bz2 *already*
+ ghc-6.8.3_QQ-0.2.tar.bz2 *already*
has the extralibs included.
If you are unwilling/unable to use ghc-6.9, then building
diff --git a/regexqq.cabal b/regexqq.cabal
index bb75b64..bad21cc 100644
--- a/regexqq.cabal
+++ b/regexqq.cabal
@@ -1,5 +1,5 @@
name: regexqq
-version: 0.5
+version: 0.6
cabal-version: >= 1.2
build-type: Simple
license: BSD3
@@ -18,7 +18,9 @@ description: A quasiquoter for Text.Regex.PCRE regexes.
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>
+ <http://code.haskell.org/~morrow/quasiquotes/regexqq.txt>.
+ Haddock docs are at
+ <http://code.haskell.org/~morrow/quasiquotes/regexqq/docs/>.
library
build-depends: base, bytestring, template-haskell >= 2.2, pcre-light