Haskell

1 program Added 2025-10-22T08:55:51Z Model: meta-llama/llama-3.1-70b-instructTemp: 0.4 Evidence Report issue View issues
Aliases: Haskell 98, Haskell 2010
Provenance: commit dd5da1d093 · authored 2025-10-22T10:55:51+02:00 · model meta-llama/llama-3.1-70b-instruct

Sources mentioning this language

9 sources · pl_id: pl/haskell
LLM (this repo) · 1PldbLinguistPygmentsWikipediaEsolangHyperpolyglotRosettacodeWikidata · Q34010

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.

Paradigmspurely functional
Typinginferred, static, strong
Designed byLennart Augustsson · Dave Barton · Brian Boutel · Warren Burton · Joseph Fasel · Kevin Hammond · Ralf Hinze · Paul Hudak · John Hughes · Thomas Johnsson · Mark Jones · Simon Peyton Jones · John Launchbury · Erik Meijer · John Peterson · Alastair Reid · Colin Runciman · Philip Wadler
First appeared1990
Influenced byClean · FP · Gofer · Hope · Hope + · Id · ISWIM · KRC · Lisp · Miranda · ML · Standard ML · Orwell · SASL · Scheme · SISAL
Homepagehttp://haskell.org

Extensions claimed by this language

6 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.hslinguistprimary12.6M files
.hspygmentsprimary12.6M files
.hswikidataprimary12.6M files
.lhswikidataprimary233.8K files
.hs-bootlinguistsecondary
.hsclinguistsecondary52.4K files

Related languages

Liskell (0.30)pH (0.25)Liquid Haskell (0.23)Concurrent Haskell (0.22)LiquidHaskell (0.21)

LLM-contributed programs

99 Haskell Problems

Provenance: commit dd5da1d093 · authored 2025-10-22T10:55:51+02:00 · model meta-llama/llama-3.1-70b-instruct · Temp 0.4
code.hs · license: GPL · added: 2025-10-22T08:55:51Z
module Problems where

-- Problem 1
myLast :: [a] -> a
myLast [x] = x
myLast (_:xs) = myLast xs

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
MultiVelocity.hs · 564 B · ext .hs · seen 60× in SWH
via fallback
swh:1:cnt:4b0617101f8cb3b1a30d8b37b780286b7ef38308;origin=https://github.com/oswald2/DGPatchMaker;anchor=swh:1:rev:d3de65d0031d01766adcce2d107ddea296b2f861;path=/src/Data/MultiVelocity.hs
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
{-# LANGUAGE OverloadedStrings, BangPatterns #-}
module Data.MultiVelocity
where



import System.FilePath


import Data.Text as T



getFiles :: FilePath -> IO (Either Text [FilePath])
getFiles path =
    if doesDirectoryExist path
        then do
            cont' <- getDirectoryContents
            let cont = filter (not elem [".", ".."]) cont'
            return (Right cont)
        else do
            return (Left (pack path T.++ " is not a directory"))


getVelocity :: FilePath -> Int
getVelocity file = 0
    where
        filename = takeFileName file

Contribute — propose a file extension

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