On 6 May 2015 at 00:26, Gershom B <gersh...@gmail.com> wrote:
> Ok, on my "https" branch here: https://github.com/gbaz/Cabal/tree/https

Looks like a good first step. Consider using machinery in
Distribution.Simple.Program.Db for searching for curl/wget in path or
in user-provided location.

I'd also use something like

data Transport = { getHttp :: URI -> FilePath -> IO (Int, String),
putHttp :: URI -> FilePath -> ...}

configureTransport :: ProgramDB -> IO Transport

instead of switching on TransportType in getHttp/uploadToUri.
_______________________________________________
cabal-devel mailing list
cabal-devel@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel

Reply via email to