Resolving Network.HTTP 'user error (https not supported)'
问题 When running this Haskell program using runghc : import Network.HTTP main = simpleHTTP (getRequest "https://stackoverflow.com") >>= getResponseBody >>= putStrLn I get the error message printso.hs: user error (https not supported) I don't want to switch to unencrypted HTTP -- how can I use Network.HTTP with SSL/TLS? 回答1: You can't do that directly, see for example this post. However you could use Network.HTTP.Conduit from the http-conduit library instead. First install it using cabal install