Elm

1 program Added 2025-10-22T09:33:00Z Model: anthropic/claude-3.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: elm-lang
Provenance: commit bdcc4ec26a · authored 2025-10-22T11:33:00+02:00 · model anthropic/claude-3.5-sonnet

Sources mentioning this language

7 sources · pl_id: pl/elm
LLM (this repo) · 1LinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q5366250

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsfunctional
Typingstatic, strong, inferred
Designed byEvan Czaplicki
First appeared2012
Influenced byHaskell · Standard ML · OCaml · F#
LicensePermissive (Revised BSD)
Homepagehttps://elm-lang.org/

Extensions claimed by this language

3 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.elmlinguistprimary1.8M files
.elmpygmentsprimary1.8M files
.elmwikidataprimary1.8M files

Related languages

ERDE (0.32)EasyLang (0.29)Bend (0.29)rk (0.28)S-lang (0.28)

LLM-contributed programs

Simple Counter in Elm

Provenance: commit bdcc4ec26a · authored 2025-10-22T11:33:00+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.elm · license: BSD-3-Clause · added: 2025-10-22T09:33:00Z
import Browser
import Html exposing (Html, button, div, text)
import Html.Events exposing (onClick)

main =
  Browser.sandbox { init = init, update = update, view = view }

type alias Model = Int

init : Model
init =
  0

type Msg
  = Increment
  | Decrement

update : Msg -> Model -> Model
update msg model =
  case msg of
    Increment ->
      model + 1
    Decrement ->
      model - 1

view : Model -> Html Msg
view model =
  div []
    [ button [ onClick Decrement ] [ text "-" ]
    , div [] [ text (String.fromInt model) ]
    , button [ onClick Increment ] [ text "+" ]
    ]

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.)

Contribute — propose a file extension

Tell us where to find evidence about Elm (mapped to pl/elm). 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/Elm/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ellpack elm-packages-pm →