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

Safe HaskellNone
LanguageHaskell2010

WeekDaze.LinearModel.Timetable

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
A flattened timetable, with undefined time-slots removed.
Synopsis

Types

Type-synonyms

type Timetable observerId timeslotId resourceIds level = [Booking observerId timeslotId resourceIds level] Source #

A flattened timetable, compressed by removing all undefined time-slots.

Functions

unbookWhere Source #

Arguments

:: (Ix timeslotId, Ord observerId) 
=> (Booking observerId timeslotId resourceIds level -> Bool)

Predicate used to select bookings.

-> Timetable observerId timeslotId resourceIds level 
-> Timetable observerId timeslotId resourceIds level 

Unbook anything matching the specified predicate.

Translation

fromTimetable :: Ix timeslotId => Timetable observerId timeslotId resourceIds level -> Timetable observerId timeslotId resourceIds level Source #

Serialises the lesson-definitions in the specified timetable.