demobot/src/Bot/DSL/State.hs

6 lines
151 B
Haskell

module Bot.DSL.State where
class Monad m => MonadData m where
getData :: Read a => String -> m (Maybe a)
putData :: Show a => String -> a -> m ()