[project @ 2003-07-23 10:27:49 by wolfgang]
[ghc-base.git] / Text / Regex.hs
index 3dc0da9..a0d724e 100644 (file)
@@ -24,11 +24,9 @@ module Text.Regex (
 
 import Prelude
 import qualified Text.Regex.Posix as RE
+import Text.Regex.Posix ( Regex )
 import System.IO.Unsafe
 
--- | A compiled regular expression
-type Regex = RE.Regex
-
 -- | Makes a regular expression with the default options (multi-line,
 -- case-sensitive).  The syntax of regular expressions is
 -- otherwise that of @egrep@ (i.e. POSIX \"extended\" regular
@@ -40,10 +38,10 @@ mkRegex s = unsafePerformIO (RE.regcomp s RE.regExtended)
 -- case-sensitve options can be changed from the default settings.
 mkRegexWithOpts
    :: String  -- ^ The regular expression to compile
-   -> Bool    -- ^ 'True' @<=>@ \'@^@\' and \'@$@\' match the beginning and 
-             -- end of individual lines respectively, and \'.\' does /not/
+   -> Bool    -- ^ 'True' @\<=>@ '@^@' and '@$@' match the beginning and 
+             -- end of individual lines respectively, and '.' does /not/
              -- match the newline character.
-   -> Bool    -- ^ 'True' @<=>@ matching is case-sensitive
+   -> Bool    -- ^ 'True' @\<=>@ matching is case-sensitive
    -> Regex   -- ^ Returns: the compiled regular expression
 
 mkRegexWithOpts s single_line case_sensitive