Why is such simple code not working?
import Network.HTTP.Conduit
import qualified Data.ByteString.Lazy as L
main :: IO ()
main = simpleHttp "http://www.dir.bg/" >>= L.putStr
It results in the following error:
TestConduit.exe: InternalIOException getAddrInfo: does not exist (error 10093)
withSocketsDo
, if on Windows or not. Then you'll never have this problem. :-) – Jeneejenei