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

Safe HaskellSafe
LanguageHaskell2010

Villefort.Util

Synopsis

Documentation

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

Returns header of Villefortx

makeRow :: [String] -> String Source #

Helper function to generate row of table

makeTable :: [String] -> [[String]] -> String Source #

Generate Table

data D Source #

Date representation

Constructors

D 

Fields

Instances
Show D Source # 
Instance details

Defined in Villefort.Util

Methods

showsPrec :: Int -> D -> ShowS #

show :: D -> String #

showList :: [D] -> ShowS #

unpackStringToDate :: [Char] -> D Source #

convert from String to internal Day representation

getDay :: IO Int Source #

Get local day of week as number

getDateD :: IO D Source #

get Local Date

getDate :: IO Day Source #

get Current local time

total :: [[String]] -> Int Source #

toatals minutes on row