summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-01-27 16:18:06 +0000
committerIan Lynagh <ian@well-typed.com>2013-01-27 16:18:06 +0000
commit5943a5b2cf7d5da2d253dec73ee5be6ce870e4ba (patch)
treed75a67145f700bd93da76f89642b8d95a36b58bf /distrib
parenta3a2348c6222ee0391cef6b7e62f372d5ed29e13 (diff)
downloadhaskell-5943a5b2cf7d5da2d253dec73ee5be6ce870e4ba.tar.gz
Use Test.Regex.PCRE instead of .Posix in compare
This program: main :: IO () main = do re "[^ ]" "\207" re "[ ]" "\207" re " " "\207" re :: String -> String -> IO () re r str = let r' = makeRegex r :: Regex res = matchM r' str :: Maybe (String, String, String, [String]) in print res prints Nothing Nothing Nothing for me with Posix, but Just ("","\207","",[]) Nothing Nothing with PCRE. This was causing compare to fail with Tar line doesn't parse: "drwxrwxr-x simonmar/GHC 0 2012-12-08 21:35 ghc-7.6.1.20121207/libraries/haskeline/tests/dummy-\206\188\206\177\207\\302\\203/" on the GHC source tarball.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/compare/Utils.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/distrib/compare/Utils.hs b/distrib/compare/Utils.hs
index e2da6b55fa..720f533aaa 100644
--- a/distrib/compare/Utils.hs
+++ b/distrib/compare/Utils.hs
@@ -5,7 +5,7 @@ import Data.Function
import Data.List
import System.Exit
import System.IO
-import Text.Regex.Posix
+import Text.Regex.PCRE
die :: Errors -> IO a
die errs = do mapM_ (hPutStrLn stderr) errs