orgstat-0.0.4: Statistics visualizer for org-mode

Safe HaskellNone
LanguageHaskell2010

OrgStat.IO

Description

Operations with files mostly.

Synopsis

Documentation

readOrgFile :: (MonadIO m, MonadCatch m, WithLogger 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, WithLogger m) => FilePath -> m OrgStatConfig Source #

Reads yaml config