Use TLS manager

This commit is contained in:
Michael Snoyman 2014-12-18 07:31:07 +02:00
parent baf192598b
commit 18a07fa94a
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 0.2.1.0
* Use TLS manager (to download from Github)
## 0.2.0.0 ## 0.2.0.0
* Minor fixes * Minor fixes

View File

@ -12,6 +12,7 @@ import Data.Text.Read (decimal)
import Data.Time import Data.Time
import Data.Yaml (decodeFileEither, encodeFile) import Data.Yaml (decodeFileEither, encodeFile)
import Network.HTTP.Client import Network.HTTP.Client
import Network.HTTP.Client.TLS (tlsManagerSettings)
import Stackage.BuildConstraints import Stackage.BuildConstraints
import Stackage.BuildPlan import Stackage.BuildPlan
import Stackage.CheckBuildPlan import Stackage.CheckBuildPlan
@ -129,7 +130,7 @@ renderLTSVer lts = fpFromText $ concat
] ]
completeBuild :: BuildType -> IO () completeBuild :: BuildType -> IO ()
completeBuild buildType = withManager defaultManagerSettings $ \man -> do completeBuild buildType = withManager tlsManagerSettings $ \man -> do
hSetBuffering stdout LineBuffering hSetBuffering stdout LineBuffering
putStrLn $ "Loading settings for: " ++ tshow buildType putStrLn $ "Loading settings for: " ++ tshow buildType

View File

@ -1,5 +1,5 @@
name: stackage 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. 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. description: Please see <http://www.stackage.org/package/stackage> for a description and documentation.
homepage: https://github.com/fpco/stackage homepage: https://github.com/fpco/stackage
@ -53,6 +53,7 @@ library
, yaml , yaml
, unix-compat , unix-compat
, http-client , http-client
, http-client-tls
, temporary , temporary
, data-default-class , data-default-class
, stm , stm