Archived
1
0
Fork 0

Rationalized the way bot configs are handled.

This commit is contained in:
Julien Dessaux 2010-05-29 16:59:41 +02:00
parent daea135424
commit 57bec4921b
5 changed files with 24 additions and 31 deletions

View file

@ -1,18 +1,9 @@
module Hsbot.Config
( Config(..)
, defaultConfig
( BotConfig (..)
) where
import Hsbot.Irc.Config (IrcConfig)
import Hsbot.Irc.Config
-- | Configuration data type
data Config = Config
{ ircConfigs :: [IrcConfig]
}
-- | User configuration
defaultConfig :: Config
defaultConfig = Config
{ ircConfigs = []
}
data BotConfig = IrcBotConfig IrcConfig