summaryrefslogtreecommitdiff
path: root/EXAMPLES
diff options
context:
space:
mode:
Diffstat (limited to 'EXAMPLES')
-rw-r--r--EXAMPLES3
1 files changed, 3 insertions, 0 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",".!?!?!"]