01 Haskell Language Basics

Michael Saelee

Jan 23, 2019

Bindings and Purity


x = error "Die!"
y = undefined -- similar as above
z = z + 1

Simple Types and Operations

a = 10
b = 2^1000 -- Integer type has unlimited precision
c = (True || False) && True
d = 1000 == 1001
e = 1000 /= 1001 -- note: weird not-equal-to
a = 

foo
bar

Defining Functions