mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-18 15:11:56 +01:00
parent
5d5b9448ec
commit
dd375bbbc1
@ -65,16 +65,10 @@ download :: HttpM env m
|
|||||||
-> m ()
|
-> m ()
|
||||||
download ltsVer dest = do
|
download ltsVer dest = do
|
||||||
req <- parseUrl $ unpack $ concat
|
req <- parseUrl $ unpack $ concat
|
||||||
{-
|
|
||||||
[ "https://raw.githubusercontent.com/fpco/lts-haskell/master/lts-"
|
[ "https://raw.githubusercontent.com/fpco/lts-haskell/master/lts-"
|
||||||
, ltsVer
|
, ltsVer
|
||||||
, ".yaml"
|
, ".yaml"
|
||||||
]
|
]
|
||||||
-}
|
|
||||||
[ "https://cdn.rawgit.com/fpco/lts-haskell/master/lts-"
|
|
||||||
, ltsVer
|
|
||||||
, "1.14.yaml"
|
|
||||||
]
|
|
||||||
withResponse req $ \res -> liftIO $ F.withFile dest F.WriteMode $ \h ->
|
withResponse req $ \res -> liftIO $ F.withFile dest F.WriteMode $ \h ->
|
||||||
responseBody res $$ sinkHandle h
|
responseBody res $$ sinkHandle h
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user