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

Safe HaskellNone
LanguageHaskell2010

WeekDaze.TeacherView.TimetableForWeek

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines the type of a teacher's personal timetable for any week.
Synopsis

Types

Type-synonyms

type TimetableForWeek timeslotId locationId level = TimetableForWeek timeslotId (LessonResourceIds locationId) level Source #

A timetable for one teacher, for any week.

Functions

countLocationChanges :: (Ix timeslotId, Eq locationId) => TimetableForWeek timeslotId locationId level -> Int Source #

  • Counts the number of times a teacher has to relocate.
  • CAVEAT: an unallocated time-slot is considered to have an unspecified location, which matches that of any adjacent unallocated time-slots, but never that of an adjacent lesson.