<commit_before>---
title: Hello World Program
---

## The simplest Hello World Program in Haskell
```haskell
main :: IO ()
main = do
    putStrLn "Hello World"
```

## Hello World using function composition

```haskell
hello :: String
hello = "<NAME>"

printer :: String -> IO ()
printer = putStrLn . show 

main :: IO ()
main = printer hello

```<commit_msg>changed "the simplest" to "a simple" (#32506)<commit_after>---
title: Hello World Program
---

## A Simple Hello World Program in Haskell
```haskell
main :: IO ()
main = do
    putStrLn "Hello World"
```

## Hello World using function composition

```haskell
hello :: String
hello = "Hello World"

printer :: String -> IO ()
printer = putStrLn . show 

main :: IO ()
main = printer hello

```
{'fraction_non_alphanumeric': 0.1478029294274301, 'fraction_numerical': 0.006657789613848202, 'mean_word_length': 3.6419753086419755, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5552147', 'n_tokens_mistral': 257, 'n_tokens_neox': 229, 'n_words': 89}