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*teacher*.

## Synopsis

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

# Types

## Type-synonyms

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

Specialise for the case in which a `Lesson`

is viewed from the perspective of the *teacher*.

## Translation

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

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

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

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