weekdaze-0.0.0.3: A school-timetable problem-solver.

Safe HaskellNone
LanguageHaskell2010

WeekDaze.Temporal.Day

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Defines the days of the week.
  • This is required to define the day of a booking in the timetable.
  • Day/Time modules may already exist in the Haskell-platform's standard library, but since no account of; time-zones, locales, or leap-years, is required, they're undoubtedly over-engineered for the requirement.
Synopsis

Types

Type-synonyms

type Weekend = Set Day Source #

Contains all days generally considered to be work-days rather than weekend.

Data-types

data Day Source #

Defines the days of the working-week.

Instances
Bounded Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Methods

minBound :: Day #

maxBound :: Day #

Enum Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Methods

succ :: Day -> Day #

pred :: Day -> Day #

toEnum :: Int -> Day #

fromEnum :: Day -> Int #

enumFrom :: Day -> [Day] #

enumFromThen :: Day -> Day -> [Day] #

enumFromTo :: Day -> Day -> [Day] #

enumFromThenTo :: Day -> Day -> Day -> [Day] #

Eq Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Methods

(==) :: Day -> Day -> Bool #

(/=) :: Day -> Day -> Bool #

Ord Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Methods

compare :: Day -> Day -> Ordering #

(<) :: Day -> Day -> Bool #

(<=) :: Day -> Day -> Bool #

(>) :: Day -> Day -> Bool #

(>=) :: Day -> Day -> Bool #

max :: Day -> Day -> Day #

min :: Day -> Day -> Day #

Read Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Show Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Methods

showsPrec :: Int -> Day -> ShowS #

show :: Day -> String #

showList :: [Day] -> ShowS #

Ix Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Methods

range :: (Day, Day) -> [Day] #

index :: (Day, Day) -> Day -> Int #

unsafeIndex :: (Day, Day) -> Day -> Int

inRange :: (Day, Day) -> Day -> Bool #

rangeSize :: (Day, Day) -> Int #

unsafeRangeSize :: (Day, Day) -> Int

NFData Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Methods

rnf :: Day -> () #

XmlPickler Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Methods

xpickle :: PU Day #

HTML Day Source # 
Instance details

Defined in WeekDaze.Temporal.Day

Methods

toHtml :: Day -> Html #

toHtmlFromList :: [Day] -> Html #

Constants

tag :: String Source #

Used to qualify SQL & XML.

nDaysPerWeek :: NDays Source #

The constant number of days in a week.

range :: [Day] Source #

The constant complete range of values.

Functions

getYesterday :: Day -> Day Source #

Like pred, but treats the enumerable type as a circular list.

getTomorrow :: Day -> Day Source #

Like succ, but treats the enumerable type as a circular list.

getAdjacentDays :: Day -> (Day, Day) Source #

Returns yesterday & tomorrow.