diff options
Diffstat (limited to 'src/Bot.hs')
-rw-r--r-- | src/Bot.hs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,15 +1,19 @@ --- {-# LANGUAGE ConstraintKinds #-} +{-# LANGUAGE ConstraintKinds #-} -- {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} module Bot ( Bot(..) + , BotConfig ) where import Control.Monad.Reader import CliOptions (Options) +type BotConfig = MonadReader Options + newtype Bot a = Bot { runBot :: ReaderT Options IO a - } deriving (Monad, Functor, Applicative, MonadIO) + -- } deriving (Monad, Functor, Applicative, BotConfig, MonadIO) + } deriving (Monad, Functor, Applicative, MonadReader Options, MonadIO) |