[project @ 2005-03-27 13:41:19 by panne]
[ghc-base.git] / Text / Regex / Posix.hsc
index f2dda51..50c7c00 100644 (file)
@@ -14,7 +14,7 @@
 
 -- ToDo: should have an interface using PackedStrings.
 #ifndef __NHC__
-#include "ghcconfig.h"
+#include "HsBaseConfig.h"
 #else
 #define HAVE_REGEX_H 1
 #define HAVE_REGCOMP 1
@@ -42,6 +42,18 @@ module Text.Regex.Posix (
 
   ) where
 
+import Prelude
+
+import Foreign
+import Foreign.C
+
+type CRegex    = ()
+
+-- | A compiled regular expression
+newtype Regex = Regex (ForeignPtr CRegex)
+
+
+-- The C-library backend
 #include <sys/types.h>
 
 #if HAVE_REGEX_H && HAVE_REGCOMP
@@ -57,16 +69,6 @@ module Text.Regex.Posix (
 {-# CFILES cbits/regex/regfree.c #-}
 #endif
 
-import Prelude
-
-import Foreign
-import Foreign.C
-
-type CRegex    = ()
-
--- | A compiled regular expression
-newtype Regex = Regex (ForeignPtr CRegex)
-
 -- -----------------------------------------------------------------------------
 -- regcomp