Update examples

This commit is contained in:
Don Stewart
2005-09-03 04:45:14 +00:00
parent 5321754614
commit dff0363224
421 changed files with 19 additions and 9 deletions

View File

@ -0,0 +1,27 @@
--
-- the configuration file interface.
--
module API where
data Color = Black | Grey | Green | Cyan | Yellow | Magenta | Red
data Interface = Interface {
editor :: IO String,
attribution :: String -> String,
header_color :: Color,
colorize :: [String],
include :: Bool
}
-- Default settings
mail :: Interface
mail = Interface {
editor = return "vi",
attribution = (\user -> user ++ " wrote:"),
header_color = Grey,
colorize = [],
include = True
}