ELM
Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.
Elm Preview.
At a glance
| Purpose | Elm source code: a module of the functional language for web front ends. |
| Extensions | .elm |
| Poka parser | poka-elm |
| Viewer | poka-metadata-card-viewer |
| Depth tier | Metadata card (see Depth tiers) |
| Breadth tier | B4 Summary (see Breadth tiers) |
How much Poka reads
B4 Summary. The container and metadata are read and summarised (counts, properties, structure), but the main content is not rendered.
Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-elm/src/main.rs (315 lines) and plugin.json in full. The crate has no unit tests and no tests/samples.rs, and the corpus has no .elm sample, so the tier rests on reading the code. Covers .elm. The output is a metadata card of counts found by matching text line by line: the module name, exposing (..) uses, imports, types and type aliases, ports, top-level signatures and definitions, distinct top-level names, main and line counts. Judgement: B4, because the structure is summarised but the source itself is never shown.
What Poka does not read
- The source text is not shown: the card carries only counts and a few sample names, with no code view or highlighting
- Constructs are found by matching text line by line, not by parsing, so multi-line declarations, nested or indented definitions and keywords inside strings or comments can be miscounted
- Counts of named items stop where their name list is capped (imports at 64, type aliases at 32, types at 32), so a larger file under-reports them
- Files over 32 MiB are cut to the first 32 MiB (the card says so)
- Text that is not UTF-8 is decoded with replacement characters; no other encoding is tried
Libraries
Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.
- tree-sitter-elm (candidate; MIT; C; https://github.com/elm-tooling/tree-sitter-elm) — Tree-sitter grammar (grammar.js plus C parser); repo contains Cargo.toml and bindings folder, so a Rust crate is likely but was not checked directly
- elm-syntax (candidate; MIT; Elm; https://github.com/stil4m/elm-syntax) — Parses and writes Elm source to an AST, written in Elm
- oak-elm (candidate; MPL-2.0; Rust; https://github.com/ygg-lang/oaks/tree/master/examples/oak-elm) — High-performance incremental Elm parser for the oak ecosystem with flexible configuration, emphasizing safety and reliability.; v0.0.11, updated 2026-03-30; matched on lib.rs, not tested
Sources
- parsers/poka-elm/src/main.rs
- parsers/poka-elm/plugin.json