Skip to content

Commit

Permalink
Merge pull request #492 from Vlix/data-default-cleanup
Browse files Browse the repository at this point in the history
Data default cleanup
  • Loading branch information
kazu-yamamoto authored Nov 3, 2024
2 parents 2c36f3c + 136c5f7 commit 5211e00
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion debug/src/RetrieveCertificate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import Control.Exception
import qualified Data.ByteString.Char8 as B
import Data.Default
import Data.Default (def)
import Data.IORef
import Data.PEM
import Data.X509 as X509
Expand Down
2 changes: 1 addition & 1 deletion debug/src/SimpleClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Crypto.Random
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as BC
import qualified Data.ByteString.Lazy.Char8 as LC
import Data.Default
import Data.Default (def)
import Data.IORef
import Data.X509.CertificateStore
import Network.Socket (PortNumber, close, connect, socket)
Expand Down
2 changes: 1 addition & 1 deletion debug/src/SimpleServer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Crypto.Random
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as BC
import qualified Data.ByteString.Lazy.Char8 as LC
import Data.Default
import Data.Default (def)
import Data.X509.CertificateStore
import Network.Socket (accept, bind, close, listen, socket)
import qualified Network.Socket as S
Expand Down
2 changes: 1 addition & 1 deletion debug/src/Stunnel.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import qualified Control.Exception as E
import qualified Crypto.PubKey.DH as DH ()
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as L
import Data.Default
import Data.Default (def)
import Data.X509.CertificateStore
import Data.X509.Validation
import Network.Socket hiding (Debug)
Expand Down
2 changes: 1 addition & 1 deletion debug/tls-debug.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ executable tls-stunnel
crypton-x509-store,
crypton-x509-system >=1.0,
crypton-x509-validation >=1.5,
data-default >= 0.8,
data-default,
crypton,
tls >=1.5.5,
tls-session-manager
Expand Down
11 changes: 8 additions & 3 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ~*~ auto-generated by haskell-ci with config : 612b7b1ece7f8fc31b366a09f7f526209ba27c62216380e24186ee1751a48093 ~*~
{ resolver: lts-14.27, packages: [ core/, debug/, session/ ], extra-deps: [ cryptonite-0.27 ], flags: {} }

resolver: lts-22.39
packages:
- debug
- tls
- tls-session-manager
extra-deps:
- crypto-token-0.1.2
# flags: []
2 changes: 1 addition & 1 deletion tls-session-manager/tls-session-manager.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ library
ghc-options: -Wall
build-depends:
base >=4.7 && <5,
auto-update >= 0.1 && < 0.3,
auto-update >= 0.2.2 && < 0.3,
basement >= 0.0.16 && < 0.1,
bytestring >= 0.10 && < 0.13,
clock >= 0.8 && < 0.9,
Expand Down
2 changes: 1 addition & 1 deletion tls/Benchmarks/Benchmarks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Main where
import Certificate
import Connection
import Control.Concurrent.Chan
import Data.Default
import Data.Default (def)
import Data.IORef
import Data.X509
import Data.X509.Validation
Expand Down
2 changes: 1 addition & 1 deletion tls/Network/TLS/Hooks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Network.TLS.Hooks (
) where

import qualified Data.ByteString as B
import Data.Default
import Data.Default (Default (def))
import Network.TLS.Struct (Handshake, Header)
import Network.TLS.Struct13 (Handshake13)
import Network.TLS.X509 (CertificateChain)
Expand Down
2 changes: 1 addition & 1 deletion tls/Network/TLS/Parameters.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module Network.TLS.Parameters (
) where

import qualified Data.ByteString as B
import Data.Default
import Data.Default (Default (def))
import Network.TLS.Cipher
import Network.TLS.Compression
import Network.TLS.Credentials
Expand Down
2 changes: 1 addition & 1 deletion tls/Network/TLS/QUIC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ import Network.TLS.Record.State
import Network.TLS.Struct
import Network.TLS.Types

import Data.Default
import Data.Default (def)

nullBackend :: Backend
nullBackend =
Expand Down
2 changes: 1 addition & 1 deletion tls/test/Arbitrary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Arbitrary where

import Control.Monad
import qualified Data.ByteString as B
import Data.Default
import Data.Default (def)
import Data.List
import Data.Word
import Data.X509 (
Expand Down
2 changes: 1 addition & 1 deletion tls/test/HandshakeSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module HandshakeSpec where
import Control.Monad
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as L
import Data.Default
import Data.Default (def)
import Data.IORef
import Data.List
import Data.Maybe
Expand Down
2 changes: 1 addition & 1 deletion tls/test/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Control.Monad
import Data.ByteString (ByteString)
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as L
import Data.Default
import Data.Default (def)
import Data.IORef
import Network.TLS
import System.Timeout
Expand Down
2 changes: 1 addition & 1 deletion tls/tls.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ library
crypton-x509 >= 1.7 && < 1.8,
crypton-x509-store >= 1.6 && < 1.7,
crypton-x509-validation >= 1.6.5 && < 1.7,
data-default >= 0.8 && < 0.9,
data-default,
memory >= 0.18 && < 0.19,
mtl >= 2.2 && < 2.4,
network >= 3.1,
Expand Down

0 comments on commit 5211e00

Please sign in to comment.