Skip to content

Commit 1288712

Browse files
committed
working on Haskell part
1 parent 00cfbb9 commit 1288712

8 files changed

Lines changed: 121 additions & 0 deletions

File tree

book/SUMMARY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,20 @@
109109

110110
* [Conclusion](languages/golang/conclusion.md)
111111

112+
* [Haskell](languages/haskell/README.md)
113+
114+
* [Introduction](languages/haskell/intro.md)
115+
116+
* [History](languages/haskell/history.md)
117+
118+
* [Advantages](languages/haskell/advantages.md)
119+
120+
* [Disadvantages](languages/haskell/disadvantages.md)
121+
122+
* [Some interesting facts](languages/haskell/misc.md)
123+
124+
* [Conclusion](languages/haskell/conclusion.md)
125+
112126
## End
113127

114128
* [Credits](credits.md)

book/languages/haskell/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Hi there
2+
3+
> This chapter was made by Skayo.
4+
5+
Welcome to the Haskell part!
6+
I hope you'll enjoy this chapter.

book/languages/haskell/advantages.md

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Conclusion
2+
3+
It's really useful to know Haskell.
4+
That language seems really underrated by community of other languages.
5+
It's nice to know more languages and their features beacause no one knows when we'll need specified technology.
6+
7+
## Sources
8+
9+
* [**Wikipedia**](https://en.wikipedia.org/wiki/Haskell_(programming_language))
10+
11+
* [**Official Haskell Page**](https://www.haskell.org)
12+
13+
## Regarding authors
14+
15+
This chapter was made by [Skayo](https://github.com/Skayo).

book/languages/haskell/disadvantages.md

Whitespace-only changes.

book/languages/haskell/history.md

Whitespace-only changes.

book/languages/haskell/intro.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Introduction
2+
3+
## Inception
4+
5+
**Haskell** is **standarized, general-purpose compiled purely functional programming language**.
6+
Haskell is written in several languages,but **it's basically mixture of C and Assembly**.
7+
This language, was created, by whole team, that included:
8+
9+
* Lennart Augustsson
10+
* Dave Barton
11+
* Brian Boutel
12+
* Warren Burton
13+
* Joseph Fasel
14+
* Kevin Hammond
15+
* Ralf Hinze
16+
* Paul Hudak
17+
* John Hughes
18+
* Thomas Johnsson
19+
* Mark Jones
20+
* Simon Peyton Jones
21+
* John Launchbury
22+
* Erik Meijer
23+
* John Peterson
24+
* Alastair Reid
25+
* Colin Runciman
26+
* Philip Wadler
27+
28+
## Features, engineering stuff here
29+
30+
**Haskell** has a lot of features, the most known, are here:
31+
32+
* lazy evaluation
33+
34+
* monads
35+
36+
* type polymorphism
37+
38+
* type classes
39+
40+
* pattern matching
41+
42+
* lambda expressions
43+
44+
* cache in functions
45+
46+
**Haskell** specification is published and open for everyone. **Glasgow Haskell Compiler (GHC)** is it's main implementation, which is both, native-code compiler and interpreter, that runs on most of the platforms.
47+
48+
> File extensions for Haskell code are .hs and .lhs

book/languages/haskell/misc.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Interesting things about Haskell
2+
3+
## Haskell code compared to other languages
4+
5+
> Example of Hello World code in several languages.
6+
7+
### Haskell
8+
9+
```haskell
10+
module Main where
11+
12+
main :: IO ()
13+
main = putStrLn "Hello, World!"
14+
```
15+
16+
### Golang
17+
18+
```golang
19+
package main
20+
21+
import "fmt"
22+
23+
func main() {
24+
fmt.Println("Hello, World")
25+
}
26+
```
27+
28+
### Python
29+
30+
```Python
31+
print "Hello world!"
32+
```
33+
34+
### Ruby
35+
36+
```Ruby
37+
puts "Hello world!"
38+
```

0 commit comments

Comments
 (0)