Set up basic structure

This commit is contained in:
Joscha 2017-12-11 18:17:36 +00:00
commit 28a46b4a86
2 changed files with 112 additions and 0 deletions

20
Task.hs Normal file
View file

@ -0,0 +1,20 @@
module Task where
import Data.Time.Calendar
import DateExpressions
data Priority = Must
| Should
| Can
deriving (Eq, Ord, Enum, Show)
type Description = String
type Amount = Int
type Duration = Int
data When = Forever
| Until Day
| During Duration Day
| While Duration BoolExpr
data Task = Task Priority Description Amount When