summaryrefslogtreecommitdiff
path: root/libraries/base/Text
diff options
context:
space:
mode:
authorross <unknown>2004-09-06 09:07:47 +0000
committerross <unknown>2004-09-06 09:07:47 +0000
commit585004abb19e5bf4009ce349ad77b3be19215bef (patch)
treee1134f0486f78a31049d22d2f89d7bdc03465f5a /libraries/base/Text
parentaebf6b55d508f43723209d1faa743a646d26de2d (diff)
downloadhaskell-585004abb19e5bf4009ce349ad77b3be19215bef.tar.gz
[project @ 2004-09-06 09:07:45 by ross]
Text.Regex.Posix is portable (because it includes an implementation)
Diffstat (limited to 'libraries/base/Text')
-rw-r--r--libraries/base/Text/Regex.hs9
-rw-r--r--libraries/base/Text/Regex/Posix.hsc2
2 files changed, 2 insertions, 9 deletions
diff --git a/libraries/base/Text/Regex.hs b/libraries/base/Text/Regex.hs
index 7957151add..f6ffe5925a 100644
--- a/libraries/base/Text/Regex.hs
+++ b/libraries/base/Text/Regex.hs
@@ -1,4 +1,3 @@
-{-# OPTIONS -cpp #-}
-----------------------------------------------------------------------------
-- |
-- Module : Text.Regex
@@ -7,22 +6,19 @@
--
-- Maintainer : libraries@haskell.org
-- Stability : experimental
--- Portability : non-portable (only on platforms that provide a regex lib)
+-- Portability : portable
--
-- Regular expression matching. Uses the POSIX regular expression
-- interface in "Text.Regex.Posix".
--
-----------------------------------------------------------------------------
-#include "ghcconfig.h"
module Text.Regex (
-- * Regular expressions
Regex,
-#if !defined(__HUGS__) || defined(HAVE_REGEX_H)
mkRegex,
mkRegexWithOpts,
matchRegex,
matchRegexAll
-#endif
) where
import Prelude
@@ -30,7 +26,6 @@ import qualified Text.Regex.Posix as RE
import Text.Regex.Posix ( Regex )
import System.IO.Unsafe
-#if !defined(__HUGS__) || defined(HAVE_REGEX_H)
-- | 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
@@ -83,5 +78,3 @@ matchRegexAll
-- > subexpression matches )
matchRegexAll p str = unsafePerformIO (RE.regexec p str)
-
-#endif
diff --git a/libraries/base/Text/Regex/Posix.hsc b/libraries/base/Text/Regex/Posix.hsc
index 6664165172..5ab5c9a780 100644
--- a/libraries/base/Text/Regex/Posix.hsc
+++ b/libraries/base/Text/Regex/Posix.hsc
@@ -6,7 +6,7 @@
--
-- Maintainer : libraries@haskell.org
-- Stability : experimental
--- Portability : non-portable (needs POSIX regexps)
+-- Portability : portable
--
-- Interface to the POSIX regular expression library.
--