Skip to content

Commit fd748e2

Browse files
committed
Require base >= 4.8, drop custom preludes
The custom preludes simulated the Prelude of base-4.8, which is now present always; thus, they are obsolete.
1 parent b306678 commit fd748e2

Some content is hidden

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

51 files changed

+49
-138
lines changed

example-client/example-client.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ flag Cabal-syntax
3636

3737
executable example-client
3838
main-is: Main.hs
39-
other-modules: Prelude ExampleClient.Options
39+
other-modules: ExampleClient.Options
4040

41-
build-depends: base >= 4.5 && < 4.20,
41+
build-depends: base >= 4.8 && < 4.20,
4242
bytestring >= 0.9,
4343
directory >= 1.1,
4444
filepath >= 1.2,

example-client/src/Prelude.hs

Lines changed: 0 additions & 27 deletions
This file was deleted.

hackage-repo-tool/hackage-repo-tool.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ executable hackage-repo-tool
6565
Hackage.Security.RepoTool.Layout.Keys
6666
Hackage.Security.RepoTool.Paths
6767
Hackage.Security.RepoTool.Util.IO
68-
Prelude
6968

7069
-- For boot libraries we try to accomodate the versions bundled with
7170
-- the respective GHC release
72-
build-depends: base >= 4.5 && < 4.20,
71+
build-depends: base >= 4.8 && < 4.20,
7372
bytestring >= 0.9 && < 0.13,
7473
directory >= 1.1 && < 1.4,
7574
filepath >= 1.3 && < 1.5,

hackage-repo-tool/src/Prelude.hs

Lines changed: 0 additions & 27 deletions
This file was deleted.

hackage-root-tool/hackage-root-tool.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ source-repository head
3939

4040
executable hackage-root-tool
4141
main-is: Main.hs
42-
build-depends: base >= 4.4 && < 5,
42+
build-depends: base >= 4.8 && < 5,
4343
filepath >= 1.2 && < 1.5,
4444
optparse-applicative >= 0.11 && < 0.18,
4545
hackage-security >= 0.5 && < 0.7

hackage-security-HTTP/hackage-security-HTTP.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ flag use-network-uri
4444

4545
library
4646
exposed-modules: Hackage.Security.Client.Repository.HttpLib.HTTP
47-
build-depends: base >= 4.5 && < 4.20,
47+
build-depends: base >= 4.8 && < 4.20,
4848
bytestring >= 0.9 && < 0.13,
4949
HTTP >= 4000.2.19 && < 4000.5,
5050
mtl >= 2.1 && < 2.4,

hackage-security-curl/hackage-security-curl.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ flag use-network-uri
3535

3636
library
3737
exposed-modules: Hackage.Security.Client.Repository.HttpLib.Curl
38-
build-depends: base >= 4.5 && < 4.20,
38+
build-depends: base >= 4.8 && < 4.20,
3939
bytestring >= 0.9,
4040
process >= 1.1,
4141
hackage-security

hackage-security-http-client/hackage-security-http-client.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ flag use-network-uri
3434

3535
library
3636
exposed-modules: Hackage.Security.Client.Repository.HttpLib.HttpClient
37-
build-depends: base >= 4.5 && < 4.20,
37+
build-depends: base >= 4.8 && < 4.20,
3838
bytestring >= 0.9,
3939
http-client >= 0.4 && < 0.8,
4040
http-types >= 0.8,

hackage-security/hackage-security.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ library
110110
Hackage.Security.Util.Lens
111111
Hackage.Security.Util.Stack
112112
Hackage.Security.Util.TypedEmbedded
113-
MyPrelude
114-
-- We support ghc 7.4 (bundled with Cabal 1.14) and up
113+
115114
build-depends: base >= 4.8 && < 4.20,
116115
-- PatternSynonyms are only available since GHC 7.8 (base 4.7)
117116
base16-bytestring >= 0.1.1 && < 1.1,

hackage-security/src/Hackage/Security/Client.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module Hackage.Security.Client (
4141
, LocalFileCorrupted(..)
4242
) where
4343

44-
import MyPrelude hiding (log)
44+
import Prelude hiding (log)
4545
import Control.Arrow (first)
4646
import Control.Exception
4747
import Control.Monad

0 commit comments

Comments
 (0)