Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Individual students can be grouped into a body composed from those with identical profiles.
- This reduces the number of personal timetables that must ultimately be constructed.
- This is a relationship persists for the duration of a configuration-file, & in this respect differs from a class of students, which is a transient relationship formed for the duration of a single booking in the timetable, or perhaps for the bookings in a single course.
TODO
- The requirement to specify all the student-Ids, could be replaced with merely an anonymous head-count, since the application make very little use of this data.
Synopsis
- type Mnemonic = String
- data StudentBody
- mnemonicTag :: String
- studentIdTag :: String
- getSize :: StudentBody -> NStudents
- toPair :: StudentBody -> (Mnemonic, Members)
- mkStudentBody :: Mnemonic -> Members -> StudentBody
Types
Type-synonyms
data StudentBody Source #
- A group of students with identical profiles; i.e. with identical requirements.
- Because this data-type forms part of the results for the application, & can become excessively verbose, a concise mnemonic is provided.
Instances
Constants
mnemonicTag :: String Source #
Used to qualify SQL & XML.
studentIdTag :: String Source #
Used to qualify SQL & XML.
Functions
getSize :: StudentBody -> NStudents Source #
The number of students in the body.
toPair :: StudentBody -> (Mnemonic, Members) Source #
Deconstruct.
Constructor
mkStudentBody :: Mnemonic -> Members -> StudentBody Source #
Smart constructor.