Safe Haskell | None |
---|---|
Language | Haskell2010 |
Operations with files mostly.
Synopsis
- readOrgFile :: (MonadIO m, MonadCatch m) => [Text] -> FilePath -> m (Text, Org)
- readConfig :: (MonadIO m, MonadThrow m) => FilePath -> m OrgStatConfig
Documentation
readOrgFile :: (MonadIO m, MonadCatch m) => [Text] -> FilePath -> m (Text, Org) Source #
Attempts to read a file. If extension is ".gpg", asks a user to
decrypt it first. Returns a pair (filename, content)
. It also
takes a list of TODO-keywords to take header names correctly.
readConfig :: (MonadIO m, MonadThrow m) => FilePath -> m OrgStatConfig Source #
Reads yaml config