todos-0.5.2: Easy-to-use TODOs manager.

Todos.Types

Synopsis

Documentation

data DateType Source

Kind of date

Constructors

StartDate 
EndDate 
Deadline 

Instances

data DateTime Source

Constructors

DateTime 

Fields

year :: Int
 
month :: Int
 
day :: Int
 
hour :: Int
 
minute :: Int
 
second :: Int
 

months :: [String]Source

12 months names.

capitalize :: String -> StringSource

capitalize first letter of the string

showMonth :: Int -> StringSource

Show name of given month

data Time Source

Only time, without date

Constructors

Time 

Fields

tHour :: Int
 
tMinute :: Int
 
tSecond :: Int
 

data TodoItem Source

TODO item itself.

Constructors

Item 

Fields

itemLevel ::

Indentation level (from source file)

itemPrefix :: String

A prefix before item in source file (or empty string)

itemName :: String

Name (title) of the item

itemTags :: [String]

Tags of the item

depends :: [String]

Names (titles) of item's depends

itemStatus :: String

Status of the item

itemDescr :: String

Description of the item

startDate :: Maybe DateTime

Date when TODO is planned to start

endDate :: Maybe DateTime

Date when TODO is planned to end

deadline :: Maybe DateTime

Deadline for this TODO

fileName :: FilePath

Path to the source file

lineNr :: Line

Line in the source file, where this item was defined

itemNumber ::

Raw number of item

makeId :: Hashable a => a -> StringSource

Make an ID for any hashable item. 16 hexadecimal digits.

type Todo = Tree TodoItemSource

Tree of TODO items.

data Limit Source

Constructors

Unlimited 
Limit 

Fields

unLimit ::
 

Instances

data CmdLineFlag Source

Command line flag

Constructors

QF 

Fields

queryFlag :: QueryFlag
 
MF 

Fields

modeFlag :: ModeFlag
 
OF 

Fields

outFlag :: OutFlag
 
LF 

Fields

limFlag :: LimitFlag
 
HelpF 

data LimitFlag Source

Constructors

Prune 

Fields

unPrune ::
 
Start 

Fields

unMin ::
 

data ModeFlag Source

Flags to specify parsing mode

data OutFlag Source

Flags to control output

data Options Source

Result of parsing command line

Constructors

O [QueryFlag] [ModeFlag] [OutFlag] [LimitFlag] 
Help 

data TodoCommand Source

What to do with selected items

Constructors

JustShow

Just output items to console

ShowAsDot

Output graph in DOT format

SystemCommand String

Execute this system command for each item

data Composed Source

Data type to store complex queries

Constructors

Pred QueryFlag

Simple query

And Composed Composed

Logical AND

Or Composed Composed

Logical OR

Not Composed

Logical NOT

Empty

Empty query

HelpC

User requests help

Instances

is :: Functor f => t -> f a -> f (t, a)Source