Files
freeCodeCamp/guide/russian/haskell/hello-world/index.md
2018-10-16 21:32:40 +05:30

25 lines
493 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
```