Skip to content
Snippets Groups Projects
Commit 8a304f7e authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Support https urls as targets in cabal install invocations

e.g. cabal install https://example.com/foo-1.0.tar.gz
parent 36e9e622
No related branches found
No related tags found
No related merge requests found
......@@ -265,7 +265,7 @@ readUserTarget targetstr =
uriScheme = scheme,
uriAuthority = Just URIAuth { uriRegName = host }
}
| scheme /= "http:" ->
| scheme /= "http:" && scheme /= "https:" ->
Just (Left (UserTargetUnexpectedUriScheme targetstr))
| null host ->
......@@ -332,7 +332,7 @@ reportUserTargetProblems problems = do
$ unlines
[ "URL target not supported '" ++ name ++ "'."
| name <- target ]
++ "Only 'http://' URLs are supported."
++ "Only 'http://' and 'https://' URLs are supported."
case [ target | UserTargetUnrecognisedUri target <- problems ] of
[] -> return ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment