Intro

Basic functions

const

flip

($)

($!)

(&)

fix

on

(.:)

until

asTypeOf

seq

Basic algebraic types

Void

data Void

Bool

data Bool

(&&)

(||)

bool

not

otherwise

Maybe

data Maybe a

catMaybes

fromMaybe

(?:)

isJust

isNothing

mapMaybe

maybe

List

class IsList l

convertList

fromFoldable

break

breakOn

breakOnEnd

drop

dropEnd

dropWhile

dropWhileEnd

filter

group

groupBy

groupOn

groupSort

groupSortBy

groupSortOn

inits

intercalate

intersperse

isPrefixOf

isSuffixOf

iterate

lookup

nubOrd

nubOrdBy

nubOrdOn

permutations

repeat

replicate

reverse

scanl

scanr

sort

sortBy

sortOn

span

spanEnd

splitAt

split

splitOn

subsequences

tails

take

takeEnd

takeWhile

transpose

unfoldr

unzip

unzip3

zip

zip3

zipWith

zipWith3

headDef

headMay

initDef

initMay

lastDef

lastMay

tailDef

tailMay

cycleMay

cycleDef

NonEmpty

data NonEmpty a

scanl1

scanr1

Tuple

fst

snd

curry

uncurry

swap

Either

data Either a b

either

fromLeft

fromRight

isLeft

isRight

lefts

rights

partitionEithers

eitherToMaybe

maybeToEither

Text types

Char and String

data Char

type String

Text

data Text

type LText

ByteString

data ByteString

type LByteString

data ShortByteString

String conversion

class IsString a

class ConvertString a b

class EncodeString a b

data Lenient a

Container types

Map and Set (Ordered)

data Map k a

data Set a

data IntMap a

data IntSet

HashedMap and HashSet

data HashMap k v

data HashSet a

class Hashable a

class Hashable1 t

class Hashable2 t

DList and Seq

data DList a

data Seq a

Numeric types

Big integers

data Integer

data Natural

Small integers

data Int

data Int8

data Int16

data Int32

data Int64

data Word

data Word8

data Word16

data Word32

data Word64

Floating point

data Float

data Double

Rational

data Ratio a

type Rational

(%)

numerator

denominator

approxRational

Numeric type classes

Num

class Num a

subtract

(^)

Real

class Real a

realToFrac

Integral

class Integral a

fromIntegral

even

odd

Fractional

class Fractional a

(^^)

Floating

class Floating a

RealFrac

class RealFrac a

RealFloat

class RealFloat a

Bits

class Bits a

class FiniteBits b

Read and Show

Show

class Show a

class Show1 f

class Show2 f

show

showT

showS

Read

class Read a

class Read1 f

class Read2 f

readMaybe

Equality and ordering

Eq

class Eq a

class Eq1 f

class Eq2 f

Ord

class Ord a

class Ord1 f

class Ord2 f

data Ordering

data Down a

comparing

Enum

class Enum a

toEnumMay

toEnumDef

predMay

predDef

succMay

succDef

Bounded

class Bounded a

Algebraic type classes

Category

class Category k cat

(<<<)

(>>>)

Semigroup

class Semigroup a

data First a

data Last a

data Min a

data Max a

data Option a

Monoid

class Monoid a

data Dual a

data Endo a

data All

data Any

data Alt k f a

Functor

class Functor f

($>)

(<$>)

map

void

data Const k a b

data Identity a

Foldable

class Foldable t

null

length

foldrM

foldlM

traverse_

for_

asum

concatMap

all

any

or

and

find

notElem

sequenceA_

foldl1May

foldl1Def

foldr1May

foldr1Def

maximumByMay

maximumByDef

minimumByMay

minimumByDef

maximumMay

maximumDef

minimumMay

minimumDef

Traversable

class Traversable t

for

mapAccumL

mapAccumR

Applicative

class Applicative f

data ZipList a

(<**>)

liftA2

liftA3

skip

(<>^)

Alternative

class Alternative f

optional

some1

Monad

class Monad m

class MonadFix m

(=<<)

(<=<)

(>=>)

join

guard

when

unless

replicateM

replicateM_

(<$!>)

whenM

unlessM

ifM

allM

anyM

andM

orM

concatMapM

(&&^)

(||^)

Bifunctor

class Bifunctor p

Bifoldable

class Bifoldable p

bifoldl'

bifoldr'

bitraverse_

bisequenceA_

bifor_

Bitraversable

class Bitraversable t

bifor

bisequenceA

Effects and monad transformers

class MonadTrans t

MonadPlus and MaybeT

class MonadPlus m

data MaybeT m a

mapMaybeT

MonadError and ExceptT

class MonadError e m

type Except e

runExcept

mapExcept

withExcept

data ExceptT e m a

runExceptT

mapExceptT

withExceptT

MonadReader and ReaderT

class MonadReader r m

asks

type Reader r

runReader

mapReader

withReader

data ReaderT k r m a

mapReaderT

withReaderT

MonadWriter and WriterT

class MonadWriter w m

type Writer w

runWriter

execWriter

mapWriter

data WriterT w m a

writerT

runWriterT

execWriterT

mapWriterT

MonadState and StateT

class MonadState s m

type State s

gets

modify

modify'

runState

evalState

execState

mapState

withState

data StateT s m a

evalStateT

execStateT

mapStateT

withStateT

MonadRWS and RWST

class MonadRWS r w s m

type RWS r w s

rws

runRWS

evalRWS

execRWS

mapRWS

data RWST r w s m a

rwsT

runRWST

evalRWST

execRWST

mapRWST

Generic type classes

class Generic a

class Generic1 f

class Typeable k a

class NFData a

class Binary t

Type level

type Type

data Constraint

data Proxy k t

IO

data IO a

class MonadIO m

Console

getChar

getContents

getLine

print

putChar

putStr

putStrLn

File

type FilePath

readFile

writeFile

appendFile

readFileUtf8

writeFileUtf8

appendFileUtf8

Error handling and debugging

class MonadFail m

fail

panic

undefined

trace

traceIO

traceId

traceM

traceShow

traceShowId

traceShowM