Villefort-0.1.2.13: Villefort is a task manager and time tracker

Safe HaskellNone
LanguageHaskell2010

Villefort.Todo

Synopsis

Documentation

daysUntil :: [Char] -> IO Integer Source #

difference betweeen the current day and the supplied day

data Row Source #

Constructors

Row 

Fields

Instances
Eq Row Source # 
Instance details

Defined in Villefort.Todo

Methods

(==) :: Row -> Row -> Bool #

(/=) :: Row -> Row -> Bool #

Show Row Source # 
Instance details

Defined in Villefort.Todo

Methods

showsPrec :: Int -> Row -> ShowS #

show :: Row -> String #

showList :: [Row] -> ShowS #

toRow :: [String] -> Int -> Row Source #

Used to create row takes time spent as an integer

updateTodos :: (MonadReader VConfig m, MonadIO m) => Int -> Int -> m () Source #

update the time taken on a certain project

delTask :: (MonadReader VConfig m, MonadIO m) => Int -> m () Source #

removes task from database

getTime :: (MonadReader VConfig m, MonadIO m) => String -> m Int Source #

returns time spent on task based off of Task id

qetTasks' :: (MonadReader VConfig m, MonadIO m) => m [Row] Source #

returns Row data structures for each open task

apply :: [t -> a] -> [t] -> [a] Source #

applies a list of functions to a list of values

conv' :: SqlValue -> String Source #

Converts from SqlVal to String

makeQuery' :: (MonadReader VConfig m, MonadIO m) => String -> m [[String]] Source #

makes Query that returns string

merge :: [a] -> [a] -> [a] Source #

merges two lists

genModal' :: Row -> IO String Source #

generates modal for task based of Row data Structure

daysToColor' :: (Num a, Ord a) => a -> String Source #

Generates bootstrap color from days until due

convTitle :: String -> String Source #

reduce size of title to fit in bootstrap modal preview

getModal :: IO [String] Source #

returns the modal template for bootstrap

getTodos :: (MonadReader VConfig m, MonadIO m) => m String Source #

Returns html from todos

getTheme :: (MonadReader VConfig m, MonadIO m) => m String Source #

support for user defined themes in villefort config

deleteTodo :: (MonadReader VConfig m, MonadIO m) => ByteString -> m () Source #

Delete a done task from database sets state = 0 but it's record is still maintained in the database for the stats page.