Safe Haskell | None |
---|---|

Language | Haskell2010 |

`AUTHOR`

- Dr. Alistair Ward
`DESCRIPTION`

- Defines the data required to define a
*time-slot*, in the*timetable*viewed from the perspective of a*location*.

## Synopsis

- type Lesson teacherId level = Lesson (LessonResourceIds teacherId) level
- fromStudentView :: Show teacherId => StudentClass -> Lesson locationId teacherId level -> Lesson teacherId level
- toStudentView :: locationId -> Lesson teacherId level -> Lesson locationId teacherId level

# Types

## Type-synonyms

type Lesson teacherId level = Lesson (LessonResourceIds teacherId) level Source #

Specialise for the case in which a *lesson* is viewed from the perspective of the *location*.

## Translation

fromStudentView :: Show teacherId => StudentClass -> Lesson locationId teacherId level -> Lesson teacherId level Source #

Convert from the *student*-view to a *location*-view.

toStudentView :: locationId -> Lesson teacherId level -> Lesson locationId teacherId level Source #

Convert from the *location*-view to a *student*-view.