aboutsummaryrefslogtreecommitdiffstats
path: root/src/Plugin/Base.hs
blob: 329c21ae2a4df554112fc405458ac3ec55bdaf0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Plugin.Base
    ( PluginAction

    , Plugin(..)
    ) where

type PluginAction = String -> String

data Plugin = Plugin
    { matchRegex :: String
    , perform    :: PluginAction
    }

instance Show Plugin where
    show (Plugin r p) = "matchRegex = " ++ r