Villefort-0.1.2.13: 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

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

toatals minutes on row

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 #

fromZonedTimeToDay :: String -> Day Source #

Convert from string to Day datatype

getDate :: IO Day Source #

get Current local time

getDateD :: IO D Source #

get Local Date

unpackStringToDate :: [Char] -> D Source #

convert from String to internal Day representation

getDay :: IO Int Source #

Get local day of week as number