Skip to content

Commit

Permalink
#423, require crypton-connection >= 0.4.1 and fix compile errors
Browse files Browse the repository at this point in the history
Summary:

Test Plan:
  • Loading branch information
ndmitchell committed Jul 28, 2024
1 parent ee364a4 commit 77291e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Changelog for Hoogle (* = API change, @ = database format change)

Require and support crypton-connection >= 0.4.1
5.0.18.4, released 2024-01-14
Don't test on GHC 9.2 or earlier
Fix up the output of /stats to account for API changes
Expand Down
3 changes: 2 additions & 1 deletion hoogle.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ library
conduit >= 1.3.0,
conduit-extra >= 1.2.3.2,
containers >= 0.5,
crypton-connection,
crypton-connection >= 0.4.1,
data-default-class,
deepseq,
directory,
extra >= 1.6.6,
Expand Down
4 changes: 3 additions & 1 deletion src/Input/Download.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import System.FilePath
import Control.Monad.Extra
import System.Directory
import Data.Conduit.Binary (sinkFile)
import Data.Default.Class
import qualified Network.HTTP.Conduit as C
import Network.Connection
import qualified Data.Conduit as C
Expand Down Expand Up @@ -45,7 +46,8 @@ downloadFile insecure file url = do
(TLSSettingsSimple {
settingDisableCertificateValidation = insecure,
settingDisableSession = False,
settingUseServerName = False
settingUseServerName = False,
settingClientSupported = def
}) Nothing
runResourceT $ do
response <- C.http request manager
Expand Down

0 comments on commit 77291e8

Please sign in to comment.