Some haddock
This commit is contained in:
parent
dbb208112f
commit
06862cf8fd
@ -1,3 +1,9 @@
|
|||||||
|
{-|
|
||||||
|
Module: Model.Types.Common
|
||||||
|
Description: Common types used by most @Model.Types.*@-Modules
|
||||||
|
|
||||||
|
Types used by multiple other @Model.Types.*@-Modules
|
||||||
|
-}
|
||||||
module Model.Types.Common
|
module Model.Types.Common
|
||||||
( module Model.Types.Common
|
( module Model.Types.Common
|
||||||
) where
|
) where
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
{-|
|
||||||
|
Module: Model.Types.Course
|
||||||
|
Description: Types for modeling Courses
|
||||||
|
|
||||||
|
Also see `Model.Types.Sheet`
|
||||||
|
-}
|
||||||
module Model.Types.Course
|
module Model.Types.Course
|
||||||
( module Model.Types.Course
|
( module Model.Types.Course
|
||||||
) where
|
) where
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
{-|
|
||||||
|
Module: Model.Types.DateTime
|
||||||
|
Description: Time related types
|
||||||
|
|
||||||
|
Terms, Seasons, and Occurence schedules
|
||||||
|
-}
|
||||||
module Model.Types.DateTime
|
module Model.Types.DateTime
|
||||||
( module Model.Types.DateTime
|
( module Model.Types.DateTime
|
||||||
) where
|
) where
|
||||||
@ -58,6 +64,7 @@ instance Enum TermIdentifier where
|
|||||||
-- from_TermIdentifier_to_TermId = TermKey
|
-- from_TermIdentifier_to_TermId = TermKey
|
||||||
|
|
||||||
shortened :: Iso' Integer Integer
|
shortened :: Iso' Integer Integer
|
||||||
|
-- ^ Year numbers shortened to two digits
|
||||||
shortened = iso shorten expand
|
shortened = iso shorten expand
|
||||||
where
|
where
|
||||||
century = ($currentYear `div` 100) * 100
|
century = ($currentYear `div` 100) * 100
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
{-|
|
||||||
|
Module: Model.Types.Exam
|
||||||
|
Description: Types for modeling Exams
|
||||||
|
-}
|
||||||
module Model.Types.Exam
|
module Model.Types.Exam
|
||||||
( module Model.Types.Exam
|
( module Model.Types.Exam
|
||||||
) where
|
) where
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
{-|
|
||||||
|
Module: Model.Types.Health
|
||||||
|
Description: Types for running self-tests
|
||||||
|
-}
|
||||||
module Model.Types.Health
|
module Model.Types.Health
|
||||||
( module Model.Types.Health
|
( module Model.Types.Health
|
||||||
) where
|
) where
|
||||||
|
|||||||
@ -1,6 +1,11 @@
|
|||||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||||
{-# LANGUAGE UndecidableInstances #-}
|
{-# LANGUAGE UndecidableInstances #-}
|
||||||
|
|
||||||
|
{-|
|
||||||
|
Module: Model.Types.Mail
|
||||||
|
Description: Types related to Notifications
|
||||||
|
-}
|
||||||
|
|
||||||
module Model.Types.Mail
|
module Model.Types.Mail
|
||||||
( module Model.Types.Mail
|
( module Model.Types.Mail
|
||||||
) where
|
) where
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
{-|
|
||||||
|
Module: Model.Types.Misc
|
||||||
|
Description: Additional uncategorized types
|
||||||
|
-}
|
||||||
|
|
||||||
module Model.Types.Misc
|
module Model.Types.Misc
|
||||||
( module Model.Types.Misc
|
( module Model.Types.Misc
|
||||||
) where
|
) where
|
||||||
|
|||||||
@ -1,5 +1,10 @@
|
|||||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||||
|
|
||||||
|
{-|
|
||||||
|
Module: Model.Types.Security
|
||||||
|
Description: Types for authentication and authorisation
|
||||||
|
-}
|
||||||
|
|
||||||
module Model.Types.Security
|
module Model.Types.Security
|
||||||
( module Model.Types.Security
|
( module Model.Types.Security
|
||||||
) where
|
) where
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
{-|
|
||||||
|
Module: Model.Types.Sheet
|
||||||
|
Description: Types for modeling sheets
|
||||||
|
-}
|
||||||
|
|
||||||
module Model.Types.Sheet
|
module Model.Types.Sheet
|
||||||
( module Model.Types.Sheet
|
( module Model.Types.Sheet
|
||||||
) where
|
) where
|
||||||
|
|||||||
@ -1,5 +1,10 @@
|
|||||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||||
|
|
||||||
|
{-|
|
||||||
|
Module: Model.Types.Submission
|
||||||
|
Description: Types to support sheet submissions
|
||||||
|
-}
|
||||||
|
|
||||||
module Model.Types.Submission
|
module Model.Types.Submission
|
||||||
( module Model.Types.Submission
|
( module Model.Types.Submission
|
||||||
) where
|
) where
|
||||||
|
|||||||
Reference in New Issue
Block a user