Skip to content

Commit a2f0ce1

Browse files
committed
Revert "GHC 7.0.4 compat release"
This reverts commit ca3fd66.
1 parent ca3fd66 commit a2f0ce1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+104
-15
lines changed

MissingH.cabal

+23-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22
name: MissingH
3-
version: 1.4.2.1
3+
version: 1.4.2.0
44

55
build-type: Simple
66
license: BSD3
@@ -36,6 +36,11 @@ extra-source-files:
3636
examples/test2.hs
3737
examples/test3.hs
3838

39+
flag network--GE-3_0_0
40+
description: [network](http://hackage.haskell.org/package/network) ≥ 3.0.0
41+
default: True
42+
manual: False
43+
3944
source-repository head
4045
type: git
4146
location: https://github.com/hvr/missingh.git
@@ -101,28 +106,34 @@ library
101106
UndecidableInstances
102107
other-extensions:
103108
CPP
109+
Safe
110+
Trustworthy
104111
TypeSynonymInstances
105112

106113
build-depends:
107-
array == 0.3.*
108-
, base == 4.3.*
109-
, containers == 0.4.*
110-
, directory == 1.1.*
111-
, filepath == 1.2.*
112-
, hslogger == 1.3.*
114+
array >= 0.4.0.0 && < 0.6
115+
, base >= 4.5.0.0 && < 4.13
116+
, containers >= 0.4.2.1 && < 0.7
117+
, directory >= 1.1.0.2 && < 1.4
118+
, filepath >= 1.3.0.0 && < 1.5
119+
, hslogger >= 1.3.0.0 && < 1.4
113120
, mtl >= 1.1.1.0 && < 2.3
114121
, old-locale == 1.0.*
115-
, old-time == 1.0.*
122+
, old-time == 1.1.*
116123
, parsec == 3.1.* && (< 3.1.12 || >= 3.1.13)
117-
, process == 1.0.*
124+
, process >= 1.1.0.1 && < 1.7
118125
, random >= 1.0.1.1 && < 1.2
119126
, regex-compat >= 0.95.1 && < 0.96
120-
, time == 1.2.*
127+
, time >= 1.4 && < 1.10
121128

122-
build-depends: network >= 2.6.3.1 && <2.7
129+
if flag(network--GE-3_0_0)
130+
build-depends: network-bsd >= 2.8.1 && <2.9,
131+
network >= 3.0 && <3.2
132+
else
133+
build-depends: network >= 2.6.3.1 && <2.9
123134

124135
If !os(windows)
125-
Build-Depends: unix >= 2.4.2 && < 2.5
136+
Build-Depends: unix >= 2.5.1.0 && < 2.8
126137

127138
ghc-options: -fno-warn-deprecations
128139

cabal.project

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
with-compiler: ghc-7.0.4
21
packages: .
32

43
package MissingH

src/Control/Concurrent/Thread/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: Thread utilities main file
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/BinPacking.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{-
23
Copyright (c) 2008-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/Bits/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: Bit utilities main file
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/CSV.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: CSV and TSV utilities
23
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/Compression/Inflate.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
-- arch-tag: Inflate implementation for Haskell
23

34
{-

src/Data/Either/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: Either utilities
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/Hash/CRC32/GZip.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: GZIP CRC32 implementation in pure Haskell
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/Hash/MD5.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Safe #-}
2+
13
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
24

35
{- |

src/Data/Hash/MD5/Zord64_HARD.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Safe #-}
2+
13
{-# OPTIONS_HADDOCK hide #-}
24
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
35

src/Data/List/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: List utilities main file
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/MIME/Types.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Safe #-}
2+
13
{- arch-tag: MIME Types main file
24
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
35

src/Data/Map/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{-
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/Maybe/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: Maybe utilities
23
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/Progress/Meter.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Safe #-}
2+
13
{-
24
Copyright (c) 2006-2011 John Goerzen <jgoerzen@complete.org>
35

src/Data/Progress/Tracker.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{-
23
Copyright (c) 2006-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/Quantity.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{-
23
Copyright (c) 2006-2011 John Goerzen <jgoerzen@complete.org>
34

src/Data/String/Utils.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Trustworthy #-}
2+
13
{- arch-tag: String utilities main file
24
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
35

src/Data/Tuple/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: Tuple utilities main file
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/Network/Email/Mailbox.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{-
23
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>
34

src/Network/Email/Sendmail.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE CPP #-}
2+
{-# LANGUAGE Safe #-}
23

34
{- arch-tag: Sendmail utility
45
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>

src/Network/SocketServer.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Trustworthy #-}
2+
13
{- arch-tag: Generic Server Support
24
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
35

src/Network/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE CPP #-}
2+
{-# LANGUAGE Trustworthy #-}
23

34
{- arch-tag: Network utilities main file
45
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>

src/System/Cmd/Utils.hs

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-- arch-tag: Command utilities main file
22
{-# LANGUAGE CPP #-}
3+
{-# LANGUAGE Trustworthy #-}
34

45
{-
56
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
@@ -325,7 +326,11 @@ forceSuccess (PipeHandle pid fp args funcname) =
325326
Just (Exited (ExitSuccess)) -> return ()
326327
Just (Exited (ExitFailure fc)) ->
327328
cmdfailed funcname fp args fc
329+
#if MIN_VERSION_unix(2,7,0)
330+
Just (Terminated sig _) ->
331+
#else
328332
Just (Terminated sig) ->
333+
#endif
329334
warnfail fp args $ "Terminated by signal " ++ show sig
330335
Just (Stopped sig) ->
331336
warnfail fp args $ "Stopped by signal " ++ show sig
@@ -351,7 +356,11 @@ safeSystem command args =
351356
case ec of
352357
Exited ExitSuccess -> return ()
353358
Exited (ExitFailure fc) -> cmdfailed "safeSystem" command args fc
359+
#if MIN_VERSION_unix(2,7,0)
360+
Terminated s _ -> cmdsignalled "safeSystem" command args s
361+
#else
354362
Terminated s -> cmdsignalled "safeSystem" command args s
363+
#endif
355364
Stopped s -> cmdsignalled "safeSystem" command args s
356365
#endif
357366

src/System/Console/GetOpt/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{-
23
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>
34

src/System/Daemon.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE CPP #-}
2+
{-# LANGUAGE Trustworthy #-}
23

34
{-
45
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>

src/System/Debian/ControlParser.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Safe #-}
2+
13
{- arch-tag: Parser for Debian control file
24
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
35

src/System/FileArchive/GZip.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: GZip file support in Haskell
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/System/IO/Binary.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Trustworthy #-}
2+
13
{- arch-tag: I/O utilities, binary tools
24
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
35

src/System/IO/HVFS.hs

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE CPP, TypeSynonymInstances #-}
2+
{-# LANGUAGE Trustworthy #-}
23
{- arch-tag: HVFS main file
34
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
45
@@ -61,6 +62,10 @@ import System.Posix.Types
6162
import System.Time
6263
import qualified System.Directory as D
6364

65+
#if MIN_VERSION_directory(1,2,0)
66+
import Data.Time.Clock.POSIX ( utcTimeToPOSIXSeconds )
67+
#endif
68+
6469
{- | Encapsulate a 'HVFSStat' result. This is required due to Haskell
6570
typing restrictions. You can get at it with:
6671
@@ -304,7 +309,11 @@ instance HVFS SystemFS where
304309
vGetSymbolicLinkStatus = vGetFileStatus
305310
#endif
306311

312+
#if MIN_VERSION_directory(1,2,0)
313+
vGetModificationTime _ p = D.getModificationTime p >>= (\modUTCTime -> return $ TOD ((toEnum . fromEnum . utcTimeToPOSIXSeconds) modUTCTime) 0)
314+
#else
307315
vGetModificationTime _ = D.getModificationTime
316+
#endif
308317
#if !(defined(mingw32_HOST_OS) || defined(mingw32_TARGET_OS) || defined(__MINGW32__))
309318
vCreateSymbolicLink _ = createSymbolicLink
310319
vReadSymbolicLink _ = readSymbolicLink

src/System/IO/HVFS/Combinators.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{-# LANGUAGE CPP #-}
2-
2+
{-# LANGUAGE Safe #-}
33
{- arch-tag: HVFS Combinators
44
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
55

src/System/IO/HVFS/InstanceHelpers.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: HVFS instance helpers
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/System/IO/HVFS/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Trustworthy #-}
12

23
{- arch-tag: HVFS utilities main file
34
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>

src/System/IO/HVIO.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Safe #-}
2+
13
{- arch-tag: HVIO main file
24
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
35

src/System/IO/PlafCompat.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE CPP #-}
2+
{-# LANGUAGE Safe #-}
23
{- Platform Compatibility Layer
34
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>
45

src/System/IO/StatCompat.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE CPP #-}
2+
{-# LANGUAGE Safe #-}
23
{-
34
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>
45

src/System/IO/Utils.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Trustworthy #-}
2+
13
{-
24
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
35

src/System/IO/WindowsCompat.hs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{-# LANGUAGE CPP #-}
2-
2+
{-# LANGUAGE Safe #-}
33
{- Windows compatibility layer
44
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>
55
@@ -125,7 +125,11 @@ getFileStatus fp =
125125
isdir <- doesDirectoryExist fp
126126
perms <- getPermissions fp
127127
modct <- getModificationTime fp
128+
#if MIN_VERSION_directory(1,2,0)
129+
let epochtime = utcTimeToSeconds modct
130+
#else
128131
let epochtime = clockTimeToEpoch modct
132+
#endif
129133
return $ FileStatusCompat {deviceID = -1,
130134
fileID = -1,
131135
fileMode = if isfile then regularFileMode

src/System/Path.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE CPP #-}
2+
{-# LANGUAGE Safe #-}
23
{- arch-tag: Path utilities main file
34
Copyright (C) 2004-2011 John Goerzen <jgoerzen@complete.org>
45

src/System/Path/Glob.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Safe #-}
2+
13
{-
24
Copyright (c) 2006-2011 John Goerzen <jgoerzen@complete.org>
35

src/System/Path/NameManip.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- |
23
Module : System.Path.NameManip
34
Copyright : Copyright (C) 2004 Volker Wysk

src/System/Path/WildMatch.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE Trustworthy #-}
2+
13
{-
24
Copyright (c) 2006-2011 John Goerzen <jgoerzen@complete.org>
35

src/System/Posix/Consts.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- Posix consts not included with Haskell
23
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>
34

src/System/Time/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: Time utilities main file
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

src/Text/ParserCombinators/Parsec/Utils.hs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE Safe #-}
12
{- arch-tag: Parsec utilities
23
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
34

testsrc/TestUtils.hs

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE CPP #-}
2+
13
module TestUtils (mapassertEqual, assertRaises, errorCallMsg) where
24

35
import Control.Exception (ErrorCall (..), Exception,
@@ -27,3 +29,6 @@ assertRaises check act = do
2729

2830
errorCallMsg :: ErrorCall -> String
2931
errorCallMsg (ErrorCall msg) = msg
32+
#if MIN_VERSION_base(4,9,0)
33+
errorCallMsg (ErrorCallWithLocation msg _) = msg
34+
#endif

0 commit comments

Comments
 (0)