aboutsummaryrefslogtreecommitdiffstats
path: root/src/Plugin.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugin.hs')
-rw-r--r--src/Plugin.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Plugin.hs b/src/Plugin.hs
index 95f2461..e25a1dc 100644
--- a/src/Plugin.hs
+++ b/src/Plugin.hs
@@ -29,8 +29,8 @@ firstPlugin [] = Nothing
firstPlugin (p:ps) = Just p
-- TODO: Make a type for the `perform` function
-performPlugin :: Plugin -> String
-performPlugin p = perform p $ matchRegex p
+performPlugin :: Plugin -> String -> String
+performPlugin p message = perform p $ message =~ matchRegex p
gitHubCommit = Plugin
{ matchRegex = "^[0-9a-f]{40}$"