Literate Haskell

1 program Added 2026-02-28T10:15:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Literate Haskell programming, lhs
Provenance: commit 9c5caeb418 · authored 2026-02-28T20:16:43+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

5 sources · pl_id: pl/literate-haskell
LLM (this repo) · 1PldbLinguistPygmentsHyperpolyglot

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.lhslinguistprimary233.8K files
.lhspygmentsprimary233.8K files

Related languages

Ferite (0.27)Prolog (0.26)Eiffel (0.25)J (0.25)S (0.25)

LLM-contributed programs

Fibonacci sequence

Provenance: commit 9c5caeb418 · authored 2026-02-28T20:16:43+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.lhs · license: CC BY-SA · added: 2026-02-28T10:15:00Z
This module demonstrates Literate Haskell using the bird-track convention.
Lines beginning with '>' are executable Haskell; all other lines are prose.

> module Main where
>
> -- | Compute the nth Fibonacci number.
> fib :: Int -> Int
> fib 0 = 0
> fib 1 = 1
> fib n = fib (n - 1) + fib (n - 2)
>
> main :: IO ()
> main = mapM_ print [ fib n | n <- [0..9] ]

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 Literate Haskell (mapped to pl/literate-haskell). 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/Literate Haskell/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Literally every golflang ever/Esopage literate-agda →