Skip to content

Commit ca3fd66

Browse files
committed
GHC 7.0.4 compat release
1 parent 6581653 commit ca3fd66

Some content is hidden

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

48 files changed

+20
-105
lines changed

CHANGES.md

+5-1

MissingH.cabal

+12-23
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.0
3+
version: 1.4.2.1
44

55
build-type: Simple
66
license: BSD3
@@ -36,11 +36,6 @@ 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-
4439
source-repository head
4540
type: git
4641
location: https://github.com/hvr/missingh.git
@@ -106,34 +101,28 @@ library
106101
UndecidableInstances
107102
other-extensions:
108103
CPP
109-
Safe
110-
Trustworthy
111104
TypeSynonymInstances
112105

113106
build-depends:
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
107+
array == 0.3.*
108+
, base == 4.3.*
109+
, containers == 0.4.*
110+
, directory == 1.1.*
111+
, filepath == 1.2.*
112+
, hslogger == 1.3.*
120113
, mtl >= 1.1.1.0 && < 2.3
121114
, old-locale == 1.0.*
122-
, old-time == 1.1.*
115+
, old-time == 1.0.*
123116
, parsec == 3.1.* && (< 3.1.12 || >= 3.1.13)
124-
, process >= 1.1.0.1 && < 1.7
117+
, process == 1.0.*
125118
, random >= 1.0.1.1 && < 1.2
126119
, regex-compat >= 0.95.1 && < 0.96
127-
, time >= 1.4 && < 1.10
120+
, time == 1.2.*
128121

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
122+
build-depends: network >= 2.6.3.1 && <2.7
134123

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

138127
ghc-options: -fno-warn-deprecations
139128

cabal.project

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

34
package MissingH

src/Control/Concurrent/Thread/Utils.hs

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

src/Data/BinPacking.hs

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

src/Data/Bits/Utils.hs

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

src/Data/CSV.hs

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

src/Data/Compression/Inflate.hs

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

43
{-

src/Data/Either/Utils.hs

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

src/Data/Hash/CRC32/GZip.hs

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

src/Data/Hash/MD5.hs

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

53
{- |

src/Data/Hash/MD5/Zord64_HARD.hs

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

src/Data/List/Utils.hs

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

src/Data/MIME/Types.hs

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

src/Data/Map/Utils.hs

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

src/Data/Maybe/Utils.hs

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

src/Data/Progress/Meter.hs

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

src/Data/Progress/Tracker.hs

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

src/Data/Quantity.hs

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

src/Data/String/Utils.hs

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

src/Data/Tuple/Utils.hs

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

src/Network/Email/Mailbox.hs

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

src/Network/Email/Sendmail.hs

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

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

src/Network/SocketServer.hs

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

src/Network/Utils.hs

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

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

src/System/Cmd/Utils.hs

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

54
{-
65
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
@@ -326,11 +325,7 @@ forceSuccess (PipeHandle pid fp args funcname) =
326325
Just (Exited (ExitSuccess)) -> return ()
327326
Just (Exited (ExitFailure fc)) ->
328327
cmdfailed funcname fp args fc
329-
#if MIN_VERSION_unix(2,7,0)
330-
Just (Terminated sig _) ->
331-
#else
332328
Just (Terminated sig) ->
333-
#endif
334329
warnfail fp args $ "Terminated by signal " ++ show sig
335330
Just (Stopped sig) ->
336331
warnfail fp args $ "Stopped by signal " ++ show sig
@@ -356,11 +351,7 @@ safeSystem command args =
356351
case ec of
357352
Exited ExitSuccess -> return ()
358353
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
362354
Terminated s -> cmdsignalled "safeSystem" command args s
363-
#endif
364355
Stopped s -> cmdsignalled "safeSystem" command args s
365356
#endif
366357

src/System/Console/GetOpt/Utils.hs

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

src/System/Daemon.hs

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

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

src/System/Debian/ControlParser.hs

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

src/System/FileArchive/GZip.hs

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

src/System/IO/Binary.hs

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

src/System/IO/HVFS.hs

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

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

312-
#if MIN_VERSION_directory(1,2,0)
313-
vGetModificationTime _ p = D.getModificationTime p >>= (\modUTCTime -> return $ TOD ((toEnum . fromEnum . utcTimeToPOSIXSeconds) modUTCTime) 0)
314-
#else
315307
vGetModificationTime _ = D.getModificationTime
316-
#endif
317308
#if !(defined(mingw32_HOST_OS) || defined(mingw32_TARGET_OS) || defined(__MINGW32__))
318309
vCreateSymbolicLink _ = createSymbolicLink
319310
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-
{-# LANGUAGE Safe #-}
2+
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,4 +1,3 @@
1-
{-# LANGUAGE Safe #-}
21
{- arch-tag: HVFS instance helpers
32
Copyright (c) 2004-2011 John Goerzen <jgoerzen@complete.org>
43

src/System/IO/HVFS/Utils.hs

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

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

src/System/IO/HVIO.hs

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

src/System/IO/PlafCompat.hs

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

src/System/IO/StatCompat.hs

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

src/System/IO/Utils.hs

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

src/System/IO/WindowsCompat.hs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE Safe #-}
2+
33
{- Windows compatibility layer
44
Copyright (c) 2005-2011 John Goerzen <jgoerzen@complete.org>
55
@@ -125,11 +125,7 @@ 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
131128
let epochtime = clockTimeToEpoch modct
132-
#endif
133129
return $ FileStatusCompat {deviceID = -1,
134130
fileID = -1,
135131
fileMode = if isfile then regularFileMode

src/System/Path.hs

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

src/System/Path/Glob.hs

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

src/System/Path/NameManip.hs

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

src/System/Path/WildMatch.hs

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

src/System/Posix/Consts.hs

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

src/System/Time/Utils.hs

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

src/Text/ParserCombinators/Parsec/Utils.hs

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

testsrc/TestUtils.hs

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

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

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

0 commit comments

Comments
 (0)