From 57bec4921b02e745f412e954ea4a4ec6b3c31b3b Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 29 May 2010 16:59:41 +0200 Subject: Rationalized the way bot configs are handled. --- Hsbot/Config.hs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'Hsbot/Config.hs') diff --git a/Hsbot/Config.hs b/Hsbot/Config.hs index 9ce62c5..121cc98 100644 --- a/Hsbot/Config.hs +++ b/Hsbot/Config.hs @@ -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 -- cgit v1.2.3