Haskell Operators and other Lexical Notation Flashcards
1
Q
::
A
Type specification operator, “has type”
2
Q
|
A
“such that”
3
Q
->
A
Function type-mapping operator. “takes”
4
Q
=>
A
Context inheritance from class
5
Q
.
A
Function composition operator or name operator
6
Q
=
A
Type- or value-naming operator
7
Q
> >
A
Monad sequencing operator
8
Q
> > =
A
Monad sequencing operator with value passing function is pronounced as bind.
9
Q
> @>
A
Object composition operator (monads)
10
Q
@
A
“Read As” in pattern matching
11
Q
\
A
List-difference operator
12
Q
A
List comprehension generator.
Single assignment operator in do-constr
13
Q
/=
A
Not-equal operator
14
Q
\
A
Lambda operator
15
Q
What does the symbol mean?
A
infix for fmap