[project @ 2004-09-06 09:07:45 by ross]
authorross <unknown>
Mon, 6 Sep 2004 09:07:47 +0000 (09:07 +0000)
committerross <unknown>
Mon, 6 Sep 2004 09:07:47 +0000 (09:07 +0000)
Text.Regex.Posix is portable (because it includes an implementation)

Text/Regex.hs
Text/Regex/Posix.hsc

index 7957151..f6ffe59 100644 (file)
@@ -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
index 6664165..5ab5c9a 100644 (file)
@@ -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.
 --