aboutsummaryrefslogtreecommitdiffstats
path: root/src/Plugin/Base.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugin/Base.hs')
-rw-r--r--src/Plugin/Base.hs17
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