Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- makeQuery :: (MonadReader VConfig m, MonadIO m) => String -> m [[String]]
- getSubjects :: (MonadReader VConfig m, MonadIO m) => m [String]
- execQuery :: (Convertible a SqlValue, MonadIO m, MonadReader VConfig m) => String -> [a] -> m ()
- addDaily :: (MonadReader VConfig m, MonadIO m) => [String] -> m ()
- clean :: String -> String
- getDone :: (MonadReader VConfig m, MonadIO m) => m [[String]]
- getDb :: (MonadReader VConfig m, MonadIO m) => m Connection
- addTask :: (MonadReader VConfig m, MonadIO m) => String -> String -> String -> String -> m ()
Documentation
makeQuery :: (MonadReader VConfig m, MonadIO m) => String -> m [[String]] Source #
takes sqlQuery and returns results as a string
getSubjects :: (MonadReader VConfig m, MonadIO m) => m [String] Source #
gets list of subjects from local database
execQuery :: (Convertible a SqlValue, MonadIO m, MonadReader VConfig m) => String -> [a] -> m () Source #
executes a query that changes values in database
addDaily :: (MonadReader VConfig m, MonadIO m) => [String] -> m () Source #
logs new daily entry due on same day
getDone :: (MonadReader VConfig m, MonadIO m) => m [[String]] Source #
lists the todo items finished today
getDb :: (MonadReader VConfig m, MonadIO m) => m Connection Source #
connects to database checks if custom database path is set