From: malcolm Date: Mon, 7 Feb 2005 15:26:10 +0000 (+0000) Subject: [project @ 2005-02-07 15:26:10 by malcolm] X-Git-Tag: nhc98-1-18-release~22 X-Git-Url: http://git.megacz.com/?p=ghc-base.git;a=commitdiff_plain;h=806d5343d64b5bb3d1d7d9e60e6998069dc39590 [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. --- 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