为什么这么简单的代码不起作用?
import Network.HTTP.Conduit
import qualified Data.ByteString.Lazy as L
main :: IO ()
main = simpleHttp "http://www.dir.bg/" >>= L.putStr
它会导致以下错误:
TestConduit.exe:InternalIOException getAddrInfo:不存在(错误 10093)
为什么这么简单的代码不起作用?
import Network.HTTP.Conduit
import qualified Data.ByteString.Lazy as L
main :: IO ()
main = simpleHttp "http://www.dir.bg/" >>= L.putStr
它会导致以下错误:
TestConduit.exe:InternalIOException getAddrInfo:不存在(错误 10093)