-
Notifications
You must be signed in to change notification settings - Fork 847
Closed
Description
The following file:
#!/usr/bin/env stack
{- stack --resolver global runghc
--package process
-}
{-# LANGUAGE OverloadedStrings #-}
main = do
putStrLn "hello"run command : stack xx.hs
Error reported in case of without network
HttpExceptionRequest Request {
host = "mirrors.tuna.tsinghua.edu.cn"
port = 80
secure = False
requestHeaders = [("Accept","application/json"),("User-Agent","The Haskell Stack")]
path = "/stackage/snapshots.json"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
(ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>}, host name: Just "mirrors.tuna.tsinghua.edu.cn", service name: Just "80"): does not exist (nodename nor servname provided, or not known))
expect: to work without network connection
Metadata
Metadata
Assignees
Labels
No labels