Derw
1 program
Added 2026-02-27T11:02:19Z
Agent: claude-codeModel: claude-opus-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 76beb1997b · authored 2026-02-27T12:02:45+01:00 · agent claude-code · model claude-opus-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Animal Union Type with Pattern Matching
Provenance: commit 76beb1997b · authored 2026-02-27T12:02:45+01:00 · agent claude-code · model claude-opus-4-6 · WebSearch enabled
type Animal =
Dog { name: string }
| Cat { lives: number }
sayHiToPet: Animal -> string
sayHiToPet pet =
case pet of
Dog { name } ->
`Good boy ${name}!`
Cat { lives } ->
"You have " + lives + " lives remaining."
main: void
main =
Dog { name: "roof" }
|> sayHiToPet
|> console.log