mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
Use TLS manager
This commit is contained in:
parent
baf192598b
commit
18a07fa94a
@ -1,3 +1,7 @@
|
||||
## 0.2.1.0
|
||||
|
||||
* Use TLS manager (to download from Github)
|
||||
|
||||
## 0.2.0.0
|
||||
|
||||
* Minor fixes
|
||||
|
||||
@ -12,6 +12,7 @@ import Data.Text.Read (decimal)
|
||||
import Data.Time
|
||||
import Data.Yaml (decodeFileEither, encodeFile)
|
||||
import Network.HTTP.Client
|
||||
import Network.HTTP.Client.TLS (tlsManagerSettings)
|
||||
import Stackage.BuildConstraints
|
||||
import Stackage.BuildPlan
|
||||
import Stackage.CheckBuildPlan
|
||||
@ -129,7 +130,7 @@ renderLTSVer lts = fpFromText $ concat
|
||||
]
|
||||
|
||||
completeBuild :: BuildType -> IO ()
|
||||
completeBuild buildType = withManager defaultManagerSettings $ \man -> do
|
||||
completeBuild buildType = withManager tlsManagerSettings $ \man -> do
|
||||
hSetBuffering stdout LineBuffering
|
||||
|
||||
putStrLn $ "Loading settings for: " ++ tshow buildType
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: stackage
|
||||
version: 0.2.0.0
|
||||
version: 0.2.1.0
|
||||
synopsis: "Stable Hackage," tools for creating a vetted set of packages from Hackage.
|
||||
description: Please see <http://www.stackage.org/package/stackage> for a description and documentation.
|
||||
homepage: https://github.com/fpco/stackage
|
||||
@ -53,6 +53,7 @@ library
|
||||
, yaml
|
||||
, unix-compat
|
||||
, http-client
|
||||
, http-client-tls
|
||||
, temporary
|
||||
, data-default-class
|
||||
, stm
|
||||
|
||||
Loading…
Reference in New Issue
Block a user