HackMail-0.0.1: A Procmail Replacement as Haskell EDSL

HackMail.Data.Deliverable

Description

Author : Joe Fredette License : BSD3 Copyright : Joe Fredette

Maintainer : Joe Fredette jfredett.at.gmail.dot.com Stability : Unstable Portability : Portable

Synopsis

Documentation

class Typeable a => Deliverable a whereSource

The main class which abstracts over delivery of datatype to somewhere in the file system. It also abstracts over construction. Due to some weirdity w.r.t. Hint, this, and all instancing datatypes, must derive Typeable. A bit of boilerplate, but deriving generally handles it easily.

Methods

deliverIO :: a -> IO ()Source

construct :: Email -> Path -> aSource

data DEMail Source

Constructors

DE 

Fields

email :: Email
 
path :: Path
 

data ToDelivery whereSource

Constructors

Wrap :: Deliverable a => a -> ToDelivery 

Instances