Roc
1 program
Added 2025-10-22T15:32:43Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 1c5c233ffe · authored 2025-10-22T17:32:43+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
4 sources · pl_id:
pl/rocExtensions claimed by this language
1 claim. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.roc | linguist | primary | 9.4K files |
Related languages
LLM-contributed programs
HTTP Request Example
Provenance: commit 1c5c233ffe · authored 2025-10-22T17:32:43+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
app "http-requests"
packages { pf: "platform/main.roc" }
imports [pf.Http, pf.Task.{ Task }]
provides [main] to pf
main : Task {} *
main =
request = Http.request {
method: Get,
host: "api.github.com",
path: "/repos/roc-lang/roc/commits",
headers: [("Accept", "application/vnd.github.v3+json")],
body: Http.emptyBody,
}
request
|> Http.send
|> Task.onErr handleError
|> Task.map handleResponse
handleError : Http.HttpError -> Task {} *
handleError = \err ->
dbg err
Task.ok {}
handleResponse : Http.Response -> {}
handleResponse = \response ->
dbg response
{}
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)