on master help sign in
Use TLS manager
18a07faMichael Snoyman
ChangeLog.md+4
@@ -1,3 +1,7 @@
1+## 0.2.1.0
2+
3+* Use TLS manager (to download from Github)
4+
1## 0.2.0.0
5## 0.2.0.0
2
6
3* Minor fixes
7* Minor fixes
Stackage/CompleteBuild.hs+2−1
@@ -12,6 +12,7 @@ import Data.Text.Read (decimal)
12import Data.Time
12import Data.Time
13import Data.Yaml (decodeFileEither, encodeFile)
13import Data.Yaml (decodeFileEither, encodeFile)
14import Network.HTTP.Client
14import Network.HTTP.Client
15+import Network.HTTP.Client.TLS (tlsManagerSettings)
15import Stackage.BuildConstraints
16import Stackage.BuildConstraints
16import Stackage.BuildPlan
17import Stackage.BuildPlan
17import Stackage.CheckBuildPlan
18import Stackage.CheckBuildPlan
@@ -129,7 +130,7 @@ renderLTSVer lts = fpFromText $ concat
129 ]
130 ]
130
131
131completeBuild :: BuildType -> IO ()
132completeBuild :: BuildType -> IO ()
132−completeBuild buildType = withManager defaultManagerSettings $ \man -> do
133+completeBuild buildType = withManager tlsManagerSettings $ \man -> do
133 hSetBuffering stdout LineBuffering
134 hSetBuffering stdout LineBuffering
134
135
135 putStrLn $ "Loading settings for: " ++ tshow buildType
136 putStrLn $ "Loading settings for: " ++ tshow buildType
stackage.cabal+2−1
@@ -1,5 +1,5 @@
1name: stackage
1name: stackage
2−version: 0.2.0.0
2+version: 0.2.1.0
3synopsis: "Stable Hackage," tools for creating a vetted set of packages from Hackage.
3synopsis: "Stable Hackage," tools for creating a vetted set of packages from Hackage.
4description: Please see <http://www.stackage.org/package/stackage> for a description and documentation.
4description: Please see <http://www.stackage.org/package/stackage> for a description and documentation.
5homepage: https://github.com/fpco/stackage
5homepage: https://github.com/fpco/stackage
@@ -53,6 +53,7 @@ library
53 , yaml
53 , yaml
54 , unix-compat
54 , unix-compat
55 , http-client
55 , http-client
56+ , http-client-tls
56 , temporary
57 , temporary
57 , data-default-class
58 , data-default-class
58 , stm
59 , stm