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

    , Plugin(..)
    , matchRegex
    , perform
    ) where

type PluginAction = String -> String

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

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