Safe Haskell | None |
---|
- run :: Int -> Application -> IO ()
- runSettings :: Settings -> Application -> IO ()
- runSettingsSocket :: Settings -> Socket -> Application -> IO ()
- module Web.Postie.Types
- module Web.Postie.Settings
- data Address
- addressLocalPart :: Address -> ByteString
- addressDomain :: Address -> ByteString
- toByteString :: Address -> ByteString
- addrSpec :: Parser Address
- data UnexpectedEndOfInputException
- data TooMuchDataException
- type Producer b = Proxy X () () b
- type Consumer a = Proxy () a () X
- runEffect :: Monad m => Effect m r -> m r
- (>->) :: Monad m => Proxy a' a () b m r -> Proxy () b c' c m r -> Proxy a' a c' c m r
Documentation
run :: Int -> Application -> IO ()Source
Runs server with a given application on a specified port
runSettings :: Settings -> Application -> IO ()Source
Runs server with a given application and settings
runSettingsSocket :: Settings -> Socket -> Application -> IO ()Source
Application
module Web.Postie.Types
Settings
module Web.Postie.Settings
Address
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.
Exceptions
Re-exports
runEffect :: Monad m => Effect m r -> m r
Run a self-contained Effect
, converting it back to the base monad
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