Prelude

Standard types, classes and related functions

Basic data types

data Maybe a
data Either a b
type String

Tuples

Basic type classes

class Eq a
class Ord a
class Enum a
class Bounded a

Numbers

Numeric types

type Rational

Numeric type classes

class Num a
class Real a
class Integral a
class Fractional a
class Floating a
class RealFrac a
class RealFloat a

Numeric functions

Monads and functors

class Monad m
class Functor f

Miscellaneous functions

List operations

Reducing lists (folds)

Special folds

Building lists

Scans

Infinite lists

Sublists

Searching lists

Zipping and unzipping lists

Functions on strings

Converting to and from String

Converting to String

type ShowS
class Show a

Converting from String

type ReadS a
class Read a

Basic Input and output

data IO a

Simple I/O operations

Output functions

Input functions

Files

type FilePath

Exception handling in the I/O monad

type IOError