-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | RSS-to-maildir tool -- -- RSS-to-maildir tool @package imm @version 0.2.0.0 module Imm.Types data ImmError OtherError :: String -> ImmError ParseUriError :: String -> ImmError ParseTimeError :: String -> ImmError ParseItemDateError :: Item -> ImmError ParseFeedError :: String -> ImmError CE :: ConnError -> ImmError data CliOptions CliOptions :: Maybe String -> Maybe String -> CliOptions mParameter :: CliOptions -> Maybe String mMasterBinary :: CliOptions -> Maybe String data Settings Settings :: PortableFilePath -> Maybe String -> Settings mStateDirectory :: Settings -> PortableFilePath mError :: Settings -> Maybe String type FeedGroup = (FeedSettings, [String]) data FeedSettings FeedSettings :: PortableFilePath -> FeedSettings mMailDirectory :: FeedSettings -> PortableFilePath type ImmFeed = (URI, Feed) data Mail Mail :: String -> Maybe ZonedTime -> String -> Text -> String -> String -> String -> Text -> Mail mReturnPath :: Mail -> String mDate :: Mail -> Maybe ZonedTime mFrom :: Mail -> String mSubject :: Mail -> Text mMIME :: Mail -> String mCharset :: Mail -> String mContentDisposition :: Mail -> String mContent :: Mail -> Text -- | Set of reference directories, typically used to build FilePath-s data RefDirs -- | Data directory RefDirs :: FilePath -> FilePath -> FilePath -> FilePath -> RefDirs -- | Home directory mHome :: RefDirs -> FilePath -- | Temporary files directory mTemporary :: RefDirs -> FilePath -- | Configuration directory mConfiguration :: RefDirs -> FilePath mData :: RefDirs -> FilePath type PortableFilePath = RefDirs -> FilePath instance Typeable CliOptions instance Data CliOptions instance Show CliOptions instance Eq CliOptions instance Show ImmError module Imm.Config -- | Default configuration. defaultSettings :: Settings module Imm.Util io :: MonadIO m => IO a -> m a logNormal, logVerbose :: String -> IO () resolve :: (RefDirs -> a) -> IO a escapeFileName :: Char -> String parseDate :: String -> Maybe UTCTime decodeIfNeeded :: String -> String module Imm.Feed getLastCheck :: Settings -> ImmFeed -> IO UTCTime storeLastCheck :: Settings -> ImmFeed -> UTCTime -> EitherT ImmError IO () module Imm.Mail defaultMail :: Mail toText :: Mail -> Text itemToMail :: TimeZone -> Item -> Mail buildMailBody :: Item -> Text getItemLinkNM :: Item -> String (><) :: a -> (a -> b) -> b paragraphy :: String -> String getItemContent :: Item -> Text extractHtml :: EntryContent -> String module Imm.Maildir init :: PortableFilePath -> EitherT String IO () add :: PortableFilePath -> Mail -> Script () getUniqueName :: IO String module Imm.Core realMain :: [FeedGroup] -> (Settings, CliOptions) -> IO () processFeedGroup :: Settings -> FeedGroup -> EitherT ImmError IO () processFeed :: Settings -> FeedSettings -> ImmFeed -> EitherT ImmError IO () processItem :: Settings -> FeedSettings -> Item -> Script () downloadRaw :: URI -> EitherT ConnError IO Text downloadFeed :: URI -> EitherT ImmError IO ImmFeed module Imm.Boot -- | Available commandline options cliOptions :: CliOptions getOptions :: IO CliOptions printDyrePaths :: IO () dyreParameters :: [FeedGroup] -> Params (Settings, CliOptions) showError :: (Settings, a) -> String -> (Settings, a) imm :: [FeedGroup] -> Settings -> IO ()