Set up basic structure
This commit is contained in:
commit
28a46b4a86
2 changed files with 112 additions and 0 deletions
20
Task.hs
Normal file
20
Task.hs
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue