HackMail-0.0.1: A Procmail Replacement as Haskell EDSL

HackMail.Control.Misc

pairToList :: ([a], [a]) -> [a]Source

both :: Arrow a => a b c -> a (b, b) (c, c)Source

double :: Arrow a => a b c -> a b (c, c)Source

appBoth :: (a -> b, c -> d) -> a -> c -> (b, d)Source

appDouble :: (a -> b, a -> b) -> a -> (b, b)Source

maybeToBool :: Maybe a -> BoolSource

maybeOr :: Maybe a -> Maybe a -> Maybe (a, a)Source

maybeAnd :: Maybe a -> Maybe a -> Maybe (a, a)Source

maybeIf :: Maybe a -> Maybe a -> Maybe a -> Maybe aSource