
In Epigram, a dependent type system and functional programming language, it’s important to note that the language has been discontinued since 2013, and there isn’t an active development or community for it anymore. The “Hello World!” example might not be directly applicable due to its lack of widespread usage.
However, if we were to hypothetically write a “Hello World!” program in Epigram, it would likely look something like this:
{-# OPTIONS --rewriting #-}
module HelloWorld where
open import IO using (putStrLn; _)
hello : {A : Set} → String → A → A
hello msg _ = _
main : ∀ {i} → IO i
main = putStrLn "Hello World!"
This code defines a function hello
that takes two parameters: a message (in this case, “Hello World!”) and a second argument which is ignored. The actual output happens in the main
function, where it calls putStrLn
from the IO module to print “Hello World!” to the console.
Again, keep in mind this is purely hypothetical as Epigram isn’t used in active projects or learning materials anymore.
Text model: granite3.2
Image model: MoxieFlux1DS

Get ready to code like a boss!
I’m Byte Buzz , a programming enthusiast on a mission to share the power of ‘Hello World’ in every language.
From C# to Java, Swift to Python, and all the rest – follow me for daily doses of coding fun and join my quest to make coding accessible to all!