postie-0.6.0.2: SMTP server library to receive emails from within Haskell programs.
Safe HaskellNone
LanguageHaskell2010

Network.Mail.Postie

Synopsis

Documentation

Runs server with a given application on a specified port

Runs server with a given application and settings

Application

Settings

Address

Exceptions

Re-exports

type Producer b = Proxy X () () b #

Producers can only yield

type Consumer a = Proxy () a () X #

Consumers can only await

runEffect :: Monad m => Effect m r -> m r #

Run a self-contained Effect, converting it back to the base monad

(>->) infixl 7 #

Arguments

:: forall (m :: Type -> Type) a' a b r c' c. Functor m 
=> Proxy a' a () b m r 
-> Proxy () b c' c m r 
-> Proxy a' a c' c m r 

Pipe composition, analogous to the Unix pipe operator

(>->) :: Functor m => Producer b m r -> Consumer b   m r -> Effect       m r
(>->) :: Functor m => Producer b m r -> Pipe     b c m r -> Producer   c m r
(>->) :: Functor m => Pipe   a b m r -> Consumer b   m r -> Consumer a   m r
(>->) :: Functor m => Pipe   a b m r -> Pipe     b c m r -> Pipe     a c m r

The following diagrams show the flow of information:

   +-----------+     +-----------+                 +-------------+
   |           |     |           |                 |             |
   |           |     |           |                 |             |
a ==>    f    ==> b ==>    g    ==> c     =     a ==>  f >-> g  ==> c
   |           |     |           |                 |             |
   |     |     |     |     |     |                 |      |      |
   +-----|-----+     +-----|-----+                 +------|------+
         v                 v                              v
         r                 r                              r

For a more complete diagram including bidirectional flow, see "Pipes.Core#pull-diagram".