Hey there, big fan of Stack and trying to learn Haskell. I tried to start a new project but I’m getting an error when trying to stack new
the project and then stack init
the partially created project.
chapman@chapman-Alienware-Aurora-Ryzen-Edition:~/code/haskellz$ stack new update-linux-torrents
Downloading template new-template to create project update-linux-torrents in directory update-linux-torrents/...
Downloaded /home/chapman/.stack/templates/new-template.hsfiles.
Note: The following parameters were needed by the template but not provided: author-email, author-name, category, copyright and github-username.
You can provide them in Stack's global YAML configuration file (/home/chapman/.stack/config.yaml) like this:
templates:
params:
author-email: value
author-name: value
category: value
copyright: value
github-username: value
Or you can pass each one on the command line as parameters like this:
stack new update-linux-torrents new-template -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value"
Looking for Cabal or package.yaml files to use to initialise Stack's project-level YAML configuration file.
Using the Cabal packages:
* update-linux-torrents/
Error: [S-8332]
Stack failed to create project-level YAML configuration, as it was unable to download the index of available snapshots.
This sometimes happens because Certificate Authorities are missing on your system. You can try the Stack command again or manually create the configuration file.
For help about the content of Stack's YAML configuration files, see (for the most recent release of Stack)
http://docs.haskellstack.org/en/stable/yaml_configuration/.
While downloading the snapshot index, Stack encountered the following error:
HttpExceptionRequest Request {
host = "s3.amazonaws.com"
port = 443
secure = True
requestHeaders = [("Accept","application/json"),("User-Agent","The Haskell Stack")]
path = "/haddock.stackage.org/snapshots.json"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
proxySecureMode = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","PD74BNR81XHKWAPT"),("x-amz-id-2","MeoI9F/EtS8sk8UJSkTqZFWjo2k/ul0hChSdze7rHmadSYwwNTE1Trya5d7K5HPC6YinO7IzjBQ="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Fri, 05 Jul 2024 19:54:36 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host = "s3.amazonaws.com"
port = 443
secure = True
requestHeaders = [("Accept","application/json"),("User-Agent","The Haskell Stack")]
path = "/haddock.stackage.org/snapshots.json"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
proxySecureMode = ProxySecureWithConnect
}
}) "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist</Message><BucketName>haddock.stackage.org</BucketName><RequestId>PD74BNR81XHKWAPT</RequestId><HostId>MeoI9F/EtS8sk8UJSkTqZFWjo2k/ul0hChSdze7rHmadSYwwNTE1Trya5d7K5HPC6YinO7IzjBQ=</HostId></Error>")