Skip to content

Commit 745b294

Browse files
hasufellMikolaj
authored andcommitted
Fix running 'cabal repl hackage-security' wrt #262
1 parent 398f001 commit 745b294

Some content is hidden

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

42 files changed

+49
-10
lines changed

hackage-security/hackage-security.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ library
113113
Hackage.Security.Util.Lens
114114
Hackage.Security.Util.Stack
115115
Hackage.Security.Util.TypedEmbedded
116-
Prelude
116+
MyPrelude
117117
-- We support ghc 7.4 (bundled with Cabal 1.14) and up
118118
build-depends: base >= 4.5 && < 4.17,
119119
base16-bytestring >= 0.1.1 && < 1.1,
@@ -171,6 +171,7 @@ library
171171
KindSignatures
172172
MultiParamTypeClasses
173173
NamedFieldPuns
174+
NoImplicitPrelude
174175
NoMonomorphismRestriction
175176
RankNTypes
176177
RecordWildCards

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 Prelude hiding (log)
44+
import MyPrelude hiding (log)
4545
import Control.Arrow (first)
4646
import Control.Exception
4747
import Control.Monad

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module Hackage.Security.Client.Formats (
1717
, formatsLookup
1818
) where
1919

20+
import MyPrelude
2021
import Hackage.Security.Util.Stack
2122
import Hackage.Security.Util.TypedEmbedded
2223

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module Hackage.Security.Client.Repository (
3030
, mustCache
3131
) where
3232

33+
import MyPrelude
3334
import Control.Exception
3435
import Data.Typeable (Typeable)
3536
import qualified Codec.Archive.Tar.Index as Tar

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module Hackage.Security.Client.Repository.Cache (
1515
, lockCacheWithLogger
1616
) where
1717

18+
import MyPrelude
1819
import Control.Exception
1920
import Control.Monad
2021
import Control.Monad.IO.Class

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module Hackage.Security.Client.Repository.HttpLib (
1111
, bodyReaderFromBS
1212
) where
1313

14+
import MyPrelude
1415
import Data.IORef
1516
import Network.URI hiding (uriPath, path)
1617
import qualified Data.ByteString as BS

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module Hackage.Security.Client.Repository.Local (
55
, withRepository
66
) where
77

8+
import MyPrelude
89
import Hackage.Security.Client.Formats
910
import Hackage.Security.Client.Repository
1011
import Hackage.Security.Client.Repository.Cache

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Hackage.Security.Client.Repository.Remote (
2727
, fileSizeWithinBounds
2828
) where
2929

30+
import MyPrelude
3031
import Control.Concurrent
3132
import Control.Exception
3233
import Control.Monad.Cont

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module Hackage.Security.Client.Verify (
1010
, liftIO
1111
) where
1212

13+
import MyPrelude
1314
import Control.Exception
1415
import Control.Monad.Reader
1516
import Data.IORef

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module Hackage.Security.JSON (
3838
, module Hackage.Security.Util.JSON
3939
) where
4040

41+
import MyPrelude
4142
import Control.Arrow (first, second)
4243
import Control.Exception
4344
import Control.Monad.Except

0 commit comments

Comments
 (0)