Skip to content

Commit 77291e8

Browse files
committed
#423, require crypton-connection >= 0.4.1 and fix compile errors
Summary: Test Plan:
1 parent ee364a4 commit 77291e8

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Changelog for Hoogle (* = API change, @ = database format change)
22

3+
Require and support crypton-connection >= 0.4.1
34
5.0.18.4, released 2024-01-14
45
Don't test on GHC 9.2 or earlier
56
Fix up the output of /stats to account for API changes

hoogle.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ library
5353
conduit >= 1.3.0,
5454
conduit-extra >= 1.2.3.2,
5555
containers >= 0.5,
56-
crypton-connection,
56+
crypton-connection >= 0.4.1,
57+
data-default-class,
5758
deepseq,
5859
directory,
5960
extra >= 1.6.6,

src/Input/Download.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import System.FilePath
66
import Control.Monad.Extra
77
import System.Directory
88
import Data.Conduit.Binary (sinkFile)
9+
import Data.Default.Class
910
import qualified Network.HTTP.Conduit as C
1011
import Network.Connection
1112
import qualified Data.Conduit as C
@@ -45,7 +46,8 @@ downloadFile insecure file url = do
4546
(TLSSettingsSimple {
4647
settingDisableCertificateValidation = insecure,
4748
settingDisableSession = False,
48-
settingUseServerName = False
49+
settingUseServerName = False,
50+
settingClientSupported = def
4951
}) Nothing
5052
runResourceT $ do
5153
response <- C.http request manager

0 commit comments

Comments
 (0)