Files
freeCodeCamp/guide/russian/haskell/hello-world/index.md

26 lines
445 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Hello World Program
localeTitle: Привет, Всемирная программа
---
## "Hello World" на Haskell
```haskell
main :: IO ()
main = do
putStrLn "Hello World"
```
## "Hello World" с использованием композиции функций
```haskell
hello :: String
hello = "Hello World"
printer :: String -> IO ()
printer = putStrLn . show
main :: IO ()
main = printer hello
```