diff options
Diffstat (limited to 'src/Plugin')
| -rw-r--r-- | src/Plugin/Base.hs | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/src/Plugin/Base.hs b/src/Plugin/Base.hs new file mode 100644 index 0000000..c73ef6a --- /dev/null +++ b/src/Plugin/Base.hs @@ -0,0 +1,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 | 
