Show Menu
Cheatography

general haskell stuff

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Functions

mul :: (Num a) => a -> a -> a
mul a b = a * b

Flow Control

if
if cond then expr else expr
case
case expr of

Typecl­asses

Eq
==, /=
Ord
==, <=, >=, <, >
Show
show 50.2 -> "­50.2­"
Read
read "­50" :: Int -> 50
Enum
pred, succ
Num
alle numeri­schen Werte
Integrals
alle Int und Integers Werte
Floating
alle Float und Double Werte
function (Typeclass a) => a -> ...