Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getDatesOfPrevWeek :: IO [Day]
- getDatesOfThisWeek :: IO [Day]
- getStartOfWeek :: IO Day
- fromZonedTimeToDay :: String -> Day
- getDatesOfWeek :: IO [Day]
- weeklyStats :: (MonadReader VConfig m, MonadIO m) => m String
- getSummaryDay :: (MonadReader VConfig m, MonadIO m) => Day -> m String
- getPrevWeek :: (MonadReader VConfig m, MonadIO m) => m [[String]]
- getThisWeek :: (MonadReader VConfig m, MonadIO m) => m [[String]]
- genTabs :: (MonadReader VConfig m, MonadIO m) => m String
- getDoneDay :: (MonadReader VConfig m, MonadIO m) => String -> m [[String]]
- spec1 :: [[String]] -> [[String]] -> [[String]]
- selectNum :: Bool -> (String, [String]) -> [String]
- zipWithPadding :: a -> b -> [a] -> [b] -> [(a, b)]
- merge1 :: [a] -> [a] -> [a]
- firstSecond :: [[String]] -> [[String]]
- getSubWeek :: (MonadReader VConfig m, MonadIO m) => String -> String -> m [[String]]
Documentation
getDatesOfPrevWeek :: IO [Day] Source #
Return the list of days in the previous week
getDatesOfThisWeek :: IO [Day] Source #
Return the list of days that have happened this week
getStartOfWeek :: IO Day Source #
returns the start of the date
fromZonedTimeToDay :: String -> Day Source #
Convert from string to Day datatype
getDatesOfWeek :: IO [Day] Source #
returns the days that have happened this week
weeklyStats :: (MonadReader VConfig m, MonadIO m) => m String Source #
generates weekly page
getSummaryDay :: (MonadReader VConfig m, MonadIO m) => Day -> m String Source #
returns a summary table for each day
getPrevWeek :: (MonadReader VConfig m, MonadIO m) => m [[String]] Source #
returns the subject and total times completed last week
getThisWeek :: (MonadReader VConfig m, MonadIO m) => m [[String]] Source #
returns the subject and total times completed this week
genTabs :: (MonadReader VConfig m, MonadIO m) => m String Source #
creates the difference table for last week and this week
getDoneDay :: (MonadReader VConfig m, MonadIO m) => String -> m [[String]] Source #
ges the todos finished today
spec1 :: [[String]] -> [[String]] -> [[String]] Source #
algorithm to sort different weeks subject and days nicely so that it displays well
selectNum :: Bool -> (String, [String]) -> [String] Source #
looks up number in table if it's not avaible default to zero
zipWithPadding :: a -> b -> [a] -> [b] -> [(a, b)] Source #
zips with padding when one list runs out it fills in a default value
firstSecond :: [[String]] -> [[String]] Source #
extracts the right table data for diff table s
getSubWeek :: (MonadReader VConfig m, MonadIO m) => String -> String -> m [[String]] Source #
returns subject and times between start and end days