Keelung

1 program Added 2026-03-05T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit 7ec9c4d6fa · authored 2026-03-05T11:10:46+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Klong (0.23)Keli (0.22)Treelang (0.19)Koka (0.16)Koord (0.16)

LLM-contributed programs

Adder and Multiplier ZK Circuits

Provenance: commit 7ec9c4d6fa · authored 2026-03-05T11:10:46+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.hs · license: MIT · added: 2026-03-05T10:00:00Z
import Keelung

-- | A simple adder circuit: asserts that a + b = c
adderCircuit :: Comp ()
adderCircuit = do
  a <- input Public :: Comp Field
  b <- input Public :: Comp Field
  c <- input Public :: Comp Field
  assert (a + b `eq` c)

-- | A multiplier circuit: asserts that a * b = c
multiplierCircuit :: Comp ()
multiplierCircuit = do
  a <- input Public :: Comp Field
  b <- input Public :: Comp Field
  c <- input Public :: Comp Field
  assert (a * b `eq` c)

main :: IO ()
main = do
  putStrLn "Compiling adder circuit..."
  result <- compile GF181 adderCircuit
  case result of
    Left err -> print err
    Right r  -> print r

Contribute — propose a file extension

Tell us where to find evidence about Keelung (mapped to pl/keelung). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Keelung/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← kee Keep-It-Simple-Syntax →