From 806d5343d64b5bb3d1d7d9e60e6998069dc39590 Mon Sep 17 00:00:00 2001 From: malcolm Date: Mon, 7 Feb 2005 15:26:10 +0000 Subject: [PATCH] [project @ 2005-02-07 15:26:10 by malcolm] Place imports before #includes, just to reduce the number of 'file not found' warnings from hmake. --- Text/Regex/Posix.hsc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Text/Regex/Posix.hsc b/Text/Regex/Posix.hsc index 0f28295..50c7c00 100644 --- a/Text/Regex/Posix.hsc +++ b/Text/Regex/Posix.hsc @@ -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 #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 -- 1.7.10.4