blob: 6ba4ca58d035a01de9c03cdfd6da92ff2909fb3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
module Plugin.Base
( PluginAction
, Plugin(..)
) where
import Database.SQLite.Simple
import Message
type PluginAction = Message -> IO (Either String String)
data Plugin = Plugin
{ matchRegex :: String
, perform :: PluginAction
}
instance Show Plugin where
show (Plugin r p) = "matchRegex = " ++ r
|