packages feed

regex-examples 1.1.0.1 → 1.1.0.2

raw patch · 19 files changed

+72/−69 lines, 19 files

Files

changelog view
@@ -1,5 +1,8 @@ -*-change-log-*- +1.1.0.2 Igor Ranieri Elland 2022-05-20+* fix for [#171](https://github.com/iconnect/regex/issues/171)+ 1.1.0.1 Chris Dornan <chris.dornan@irisconnect.co.uk> 2018-12-19   * fix for base-4.16.0.0/GHC 9.2.1   * eliminate http-conduit dependency (currently stymied by cryptonite)
examples/re-tests.lhs view
@@ -980,7 +980,7 @@  -- just evaluating quasi quoters to HNF for now -- they -- being tested everywhere [re|...|] (etc.) calculations--- are bings used but HPC isn't measuring this+-- are being used but HPC isn't measuring this valid_res :: RegexType -> [QuasiQuoter] -> TestTree valid_res rty = testCase (show rty) . foldr seq (return ()) 
examples/re-tutorial-options.lhs view
@@ -86,7 +86,7 @@  (For more information on the options provided by the back ends see the decumentation for the `regex-tdfa` and `regex-pcre` packages as-apropriate.)+appropriate.)  Each back end provides a function to compile REs from some options and a string containing the RE as follows:@@ -104,7 +104,7 @@     case-sensitive used with the `re` parser.    * `SimpleREOptions` (explained in the [main tutorial](re-tutorial.html)),-    which will be converted into the apropriate `CompOption` and+    which will be converted into the appropriate `CompOption` and     `ExecOption` for the beck end in question);    * `CompOption` to directly specify the compile-time options for the back
examples/re-tutorial-replacing.lhs view
@@ -197,7 +197,7 @@ substitution should be made or the replacement text.  The above fixup function could be extended to enclose whole date in-square brackets by specifing an `ALL` context and a `0` case for the+square brackets by specifying an `ALL` context and a `0` case for the substitution function. \begin{code} fixup_and_reformat_dates :: String -> String
lib/mega-regex.cabal view
@@ -1,5 +1,5 @@ Name:                   regex-Version:                1.1.0.1+Version:                1.1.0.2 Synopsis:               Toolkit for regex-base Description:            A regular expression toolkit for regex-base with                         compile-time checking of RE syntax, data types for@@ -67,7 +67,7 @@ Source-Repository this     Type:               git     Location:           https://github.com/iconnect/regex.git-    Tag:                1.1.0.1+    Tag:                1.1.0.2   
lib/version.txt view
@@ -1,1 +1,1 @@-1.1.0.1+1.1.0.2
regex-examples.cabal view
@@ -1,5 +1,5 @@ Name:                   regex-examples-Version:                1.1.0.1+Version:                1.1.0.2 Synopsis:               Tutorial, tests and example programs for regex Description:            Tutorial, tests and example programs for regex,                         a Regular Expression Toolkit for regex-base with@@ -67,7 +67,7 @@ Source-Repository this     Type:               git     Location:           https://github.com/iconnect/regex.git-    Tag:                1.1.0.1+    Tag:                1.1.0.2   Executable re-gen-cabals
src/Text/RE/PCRE/ByteString.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/PCRE/ByteString/Lazy.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/PCRE/Sequence.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/PCRE/String.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/PCRE/Text.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/PCRE/Text/Lazy.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/TDFA/ByteString.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/TDFA/ByteString/Lazy.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/TDFA/Sequence.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/TDFA/String.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/TDFA/Text.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.
src/Text/RE/TDFA/Text/Lazy.hs view
@@ -186,7 +186,7 @@ -- options dynamically, use the @[re_| ... |]@ and @[ed_| ... \/\/\/ ... |]@ -- quasi quoters, which generate functions that take an 'IsOption' option -- (e.g., a 'SimpleReOptions' value) and yields a 'RE' or 'SearchReplace'--- as apropriate. For example if you have a 'SimpleReOptions' value in+-- as appropriate. For example if you have a 'SimpleReOptions' value in -- @sro@ then -- --  @(?=~/ [ed_|foo$\/\/\/bar|] sro)@@@ -195,12 +195,12 @@ -- on specifying RE options see "Text.RE.REOptions".  -- $re--- The @[re|.*|]@ quasi quoters, with variants for specifing different+-- The @[re|.*|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions"), and the -- specialised back-end types and functions.  -- $ed--- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifing different+-- The @[ed|.*\/\/\/foo|]@ quasi quoters, with variants for specifying different -- options to the RE compiler (see "Text.RE.REOptions").  -- $ed@@ -211,9 +211,9 @@ -- represents a @SearchReplace@ that will convert a YYYY-MM-DD format date -- into a DD\/MM\/YYYY format date. ----- The only difference betweem these quasi quoters is the RE options that are set,+-- The only difference between these quasi quoters is the RE options that are set, -- using the same conventions as the @[re| ... |]@ quasi quoters.  -- $isregex--- The 'IsRegex' class is used to abstact over the different regex back ends and+-- The 'IsRegex' class is used to abstract over the different regex back ends and -- the text types they work with -- see "Text.RE.Tools.IsRegex" for details.