[project @ 2005-02-07 15:26:10 by malcolm]
authormalcolm <unknown>
Mon, 7 Feb 2005 15:26:10 +0000 (15:26 +0000)
committermalcolm <unknown>
Mon, 7 Feb 2005 15:26:10 +0000 (15:26 +0000)
Place imports before #includes, just to reduce the number of 'file
not found' warnings from hmake.

Text/Regex/Posix.hsc

index 0f28295..50c7c00 100644 (file)
@@ -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