HackMail-0.0: A Procmail Replacement as Haskell EDSLSource codeContentsIndex
HackMail.Data.MainTypes
Synopsis
module HackMail.Data.Path
module HackMail.Data.Email
data Options = Opt {
daemonMode :: Bool
incomingMailLoc :: Maybe FilePath
altFMainLoc :: Maybe FilePath
}
getOpts :: [String] -> Options
data Config = Conf {
inboxLoc :: Path
filterMainLoc :: FilePath
filterMain :: Filter ()
}
newtype Filter a = Filter (ReaderT (Config, Email) IO a)
runFilter :: Filter a -> (Config, Email) -> IO a
Documentation
module HackMail.Data.Path
module HackMail.Data.Email
data Options Source
Constructors
Opt
daemonMode :: Bool
incomingMailLoc :: Maybe FilePath
altFMainLoc :: Maybe FilePath
show/hide Instances
getOpts :: [String] -> OptionsSource
data Config Source
A type mostly used in Hackmain.hs, stores some information about paths. Only here to avoid nasty mutually recursive modules. (TODO: Move this and associated functions another module?)
Constructors
Conf
inboxLoc :: Path
filterMainLoc :: FilePath
filterMain :: Filter ()
show/hide Instances
newtype Filter a Source
A simple type to contain the email context. May become bigger, to store configuration details, etc.
Constructors
Filter (ReaderT (Config, Email) IO a)
show/hide Instances
runFilter :: Filter a -> (Config, Email) -> IO aSource
Produced by Haddock version 2.6.1