Villefort 0.1.0.5 → 0.1.0.6
raw patch · 2 files changed
+2/−3 lines, 2 filesdep ~basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base
API changes (from Hackage documentation)
- Database: path' :: IO FilePath
Files
- Villefort.cabal +1/−1
- src/Database.hs +1/−2
Villefort.cabal view
@@ -1,5 +1,5 @@ name: Villefort-version: 0.1.0.5+version: 0.1.0.6 synopsis: Villefort is a task manager and time tracker written in haskell. description: Villefort is powered by a sqlite homepage: https://github.com/Chrisr850/Villefort#readme
src/Database.hs view
@@ -22,10 +22,9 @@ path =fmap (\x -> (x !! 0) ++ "Villefort/") $ (Data.List.Split.splitOn "Villefort/") <$> getProgPath --path = getDataDir -path' = getDataDir getDb :: IO Connection -getDb = (++ "data/todo.db") <$> path >>= \path -> putStrLn path >> connectSqlite3 path+getDb = getDataFileName "data/todo.db" >>= connectSqlite3 conv :: [[SqlValue]] -> [[String]] conv dat = Prelude.map (\x -> Prelude.map (\y -> fromSql y :: String) x) dat