Difference between revisions of "User:Lenny222/Haskell explained to the busy"

From HaskellWiki
Jump to navigation Jump to search
Line 11: Line 11:
 
|-
 
|-
 
|What is Haskell?
 
|What is Haskell?
| Haskell is a purely functional, lazy, statically typed programming language.
+
| Haskell is a purely functional, lazy, statically typed programming language
  +
|-
  +
|What is a purely functional programming language?
  +
| TODO
  +
|-
  +
|What is a lazy programming language?
  +
| TODO
  +
|-
  +
|What is a statically typed programming language?
  +
| TODO
 
|-
 
|-
 
|Why the '''name''' "Haskell"?
 
|Why the '''name''' "Haskell"?

Revision as of 14:49, 29 September 2009

You have heard about Haskell but don't have the time to find out what it is?

I hope this page is for you.

Introduction

Question Answer
What is Haskell? Haskell is a purely functional, lazy, statically typed programming language
What is a purely functional programming language? TODO
What is a lazy programming language? TODO
What is a statically typed programming language? TODO
Why the name "Haskell"? Haskell is named after the American mathematician Haskell Curry

Basics

Question Answer
What is the meaning of the dollar sign "$"? "$" is a way to avoid typing too many brackets.

For example:

foo x = h (g (f x))

is the same as

foo x = h $ g $ f x
What is point-free style? Point-free style is a way to define functions solely as a composition of other functions, leaving arguments in the definition out.

For example:

takeFive x = take 5 x

is the same as

takeFive = take 5

in point-free style.

What is the meaning of the dot "."? "." is used to compose functions in point-free style, similar to "$".

For example:

foo x = h $ g $ f x

is the same as

foo = h . g . f
What is the meaning of the "data"? TODO
What is the meaning of the "newtype"? TODO
What is the meaning of the "type"? TODO

Advanced

Question Answer
What is a Monad? TODO
What is the meaning of "forall"? TODO