Villefort 0.1.2.8 → 0.1.2.9
raw patch · 4 files changed
+6/−8 lines, 4 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Villefort.Weekly: firstSecond :: [[String]] -> [[String]]
+ Villefort.Weekly: fromZonedTimeToDay :: String -> Day
+ Villefort.Weekly: genTabs :: (MonadReader VConfig m, MonadIO m) => m String
+ Villefort.Weekly: getDate :: IO Day
+ Villefort.Weekly: getDatesOfPrevWeek :: IO [Day]
+ Villefort.Weekly: getDatesOfThisWeek :: IO [Day]
+ Villefort.Weekly: getDatesOfWeek :: IO [Day]
+ Villefort.Weekly: getDay :: IO Int
+ Villefort.Weekly: getDoneDay :: (MonadReader VConfig m, MonadIO m) => String -> m [[String]]
+ Villefort.Weekly: getPrevWeek :: (MonadReader VConfig m, MonadIO m) => m [[String]]
+ Villefort.Weekly: getStartOfWeek :: IO Day
+ Villefort.Weekly: getSubWeek :: (MonadReader VConfig m, MonadIO m) => String -> String -> m [[String]]
+ Villefort.Weekly: getSummaryDay :: (MonadReader VConfig m, MonadIO m) => Day -> m String
+ Villefort.Weekly: getThisWeek :: (MonadReader VConfig m, MonadIO m) => m [[String]]
+ Villefort.Weekly: merge1 :: [a] -> [a] -> [a]
+ Villefort.Weekly: selectNum :: Bool -> (String, [String]) -> [String]
+ Villefort.Weekly: spec1 :: [[String]] -> [[String]] -> [[String]]
+ Villefort.Weekly: zipWithPadding :: a -> b -> [a] -> [b] -> [(a, b)]
Files
- README.md +3/−5
- Villefort.cabal +1/−1
- data/todo.db binary
- src/Villefort/Weekly.hs +2/−2
README.md view
@@ -1,11 +1,9 @@ # Villefort Villefort is a time managment system written in Haskell. -## Version 1.2.7 -- Fixed errors with Versions 1.2.6's core api. -- Made log github graph reflect actual time on task. -- removed predicted time field on main page. -- Started writing tests. +## Version 1.2.9 +- Fixed corrupted database which will make 1.2.8, 1.2.7 and 1.2.6 not work. +- Fixed bug in Weekly page date handling. [default config](https://github.com/Chrisr850/Villefort/blob/master/src/Villefort/Config.hs)
Villefort.cabal view
@@ -1,5 +1,5 @@ name: Villefort-version: 0.1.2.8+version: 0.1.2.9 synopsis: Villefort is a task manager and time tracker written in haskell. description: Villefort is a browser based time tracker. homepage: https://github.com/Chrisr850/Villefort#readme
data/todo.db view
binary file changed (122880 → 122880 bytes)
src/Villefort/Weekly.hs view
@@ -1,5 +1,5 @@ {-# LANGUAGE FlexibleContexts #-}-module Villefort.Weekly (weeklyStats) where+module Villefort.Weekly where import Control.Monad.Reader import Villefort.Definitions@@ -40,7 +40,7 @@ fromZonedTimeToDay :: String -> Day fromZonedTimeToDay x = fromGregorian ( y split 0) (md split 1) (md split 2) where split = S.splitOn "-" x- md splits x = read ( splits !! x) :: Int+ md splits x = read (take 2 $ splits !! x) :: Int y splits x = read ( splits !! x ) :: Integer getDate :: IO Day