Language.Haskell.HGrep.Prelude

Primitive types

Bool

data Bool

bool

(&&)

(||)

not

otherwise

Char

data Char

Int

data Integer

data Int

data Int8

data Int16

data Int32

data Int64

Word

data Word64

Real

fromIntegral

fromRational

Algebraic structures

Monoid

class Monoid a

(<>)

Functor

class Functor f

(<$>)

($>)

void

with

Bifunctor

class Bifunctor p

Applicative

class Applicative f

(<**>)

Alternative

class Alternative f

asum

Monad

class Monad m

join

MonadPlus

class MonadPlus m

guard

msum

MonadTrans

class MonadTrans t

BifunctorTrans

class BifunctorTrans t

MonadIO

class MonadIO m

Data structures

Either

data Either a b

either

note

EitherT

type EitherT

runEitherT

left

right

Maybe

data Maybe a

fromMaybe

maybe

hush

MaybeT

data MaybeT m a

nothing

Tuple

fst

snd

curry

uncurry

Typeclasses

Enum

class Enum a

Eq

class Eq a

Read

class Read a

readEither

readMaybe

Show

class Show a

ShowS

type ShowS

showString

Foldable

class Foldable t

for_

Ord

class Ord a

data Ordering

comparing

Traversable

class Traversable t

for

traverse_

Combinators

id

(.)

($)

($!)

(&)

const

flip

fix

on

seq

System

IO

data IO a

type FilePath

Partial functions

undefined

error

Debugging facilities

trace

traceM

traceIO