wdb: In Haskell it is not possible to assign a value to a variable. Therefore a program runs completely side-effect free.
PYK 2017-08-05: While the term "assignment" may not make sense in the world of Haskell, variables in Haskell programs do represent values in the program. The <- operator is part of an interface between the outside world and the pure world of the Haskell program. This interface is called "Monad" and its DSL, which includes operators such as >>= blends into Haskell so that one has to squint at it right to distinguish between the "pure" program and the "operational" (monadic) program, but the side effects are there.
Notation
'
surrounds a character
"
surrounds a sequence of characters, indicating a list composed of those characters in that sequence
(thing1,thing2)
"pair of things, each having its own type"
(type1,type2)
"pair of types"
(Tree a)
"a, which is of type Tree"
+
polymorphic infix operator for addition
++
polymorphic infix operator for concatenation
-
polymorphic infix operator for subtraction
->
(left) "maps to" (right)
.
infix operator for function composition
..
arithmetic sequence indicator
:
"is prepended to"
::
"has type"
<-
(left) "maps from" (right)
=>
"evaluates to", "reduces to"
=
"is defined as"
[]
"empty list"
[(a,b)]
"list where each thing is a pair of a thing having type a and a thing having type b"
[a]
"list of things which are of type a"
`
surrounds a function to indicate that it is being used as an infix operator
\
lambda function.
_|_
abstract notation for a non-terminating expression. Also known as "bottonm"
| (in a type declaration)
"or"
| (in a list comprehension)
"where"
Terminology
PYK 2017-08-05: Some changes to make the terminology more practical and descriptive would make Haskell easier to think about. For example, "class" and "instance" could be replaced by a single term, "interface". Instead of
class Something a where ...
instance Something Bool where ...
it could be
interface Something a where ...
interface Something for Bool where ...