Place imports before #includes, just to reduce the number of 'file
not found' warnings from hmake.
) 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
{-# 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