orgstat-0.1.5: Statistics visualizer for org-mode

Safe HaskellNone
LanguageHaskell2010

OrgStat.Helpers

Description

Different logic-related components.

Synopsis

Documentation

convertRange :: MonadIO m => ConfRange -> m (LocalTime, LocalTime) Source #

Converts config range to a pair of UTCTime, right bound not inclusive.

resolveInputOrg :: FilePath -> WorkM (Text, Org) Source #

Resolves org file: reads from path and puts into state or just gets out of state if was read before.

resolveScope :: Text -> WorkM Org Source #

Return scope with requested name or fail. It will be either constructed on the spot or taken from the state if it had been created previously.

resolveReport :: Text -> WorkM Org Source #

Same as resolveScope but related to reports.