postie-0.2.0.0

Safe HaskellNone

Web.Postie

Contents

Synopsis

Documentation

Runs server with a given application on a specified port

Runs server with a given application and settings

Application

Settings

Address

data Address Source

Represents email address as local and domain parts

addressLocalPart :: Address -> ByteStringSource

local part of email address

addressDomain :: Address -> ByteStringSource

domain part of email address

toByteString :: Address -> ByteStringSource

Formats Address to canonical string.

addrSpec :: Parser AddressSource

Borrowed form email-validate-2.0.1. Parser for email 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

(>->)

Arguments

:: Monad 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

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