CS536: Supplementary Notes on Haskell

Software (choose either)

Resources


Built-in functions that you may find helpful

Haskell FunctionScheme Analog
==eq?
<, >, <=, >=<, >, <=, >=
modmodulo
divquotient
notnot
!!list-ref
filterfilter
allandmap
anyormap
take(returns a prefix of a list)
takeWhile(returns the prefix of a list satisfying a predicate)

Any function whose name begins with a symbolic character is an infix operator. Other binary functions can be used as infix operators by enclosing in backquotes (e.g., x `mod` y). Also, infix operators can be used as ordinary functions by enclosing in parentheses (e.g., (!!) [1, 2, 3] 2).


Where the GHCI output differs from the Haskell tutorial in the text


Miscellaneous Helpful Hints


CS4536 home page