aboutsummaryrefslogtreecommitdiffstats
path: root/src/Lib.hs
diff options
context:
space:
mode:
authorTeddy Wing2017-07-30 19:02:21 +0200
committerTeddy Wing2017-07-30 19:02:21 +0200
commitb4802d1f1fa4f97ff5613c79398c204ebdfcbd75 (patch)
treeb8a07efe6ececf1c552a44325277ef37fc4d594b /src/Lib.hs
parentbee8faa9804d37e3912e3704dbf03fc1c02eeb84 (diff)
downloadsorbot-b4802d1f1fa4f97ff5613c79398c204ebdfcbd75.tar.bz2
Get rid of `realMatchPlugin`
I didn't even need the `matchPlugin` that took `plugins` as an argument, I can just use the `plugins` function directly in `matchPlugin`. Get rid of `realMatchPlugin` because that was just a temporary name until I got things working. Move `firstPlugin` into the definition of `matchPlugin` because it's not needed anywhere else and is just used to pattern match for the first matched plugin in the list.
Diffstat (limited to 'src/Lib.hs')
-rw-r--r--src/Lib.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Lib.hs b/src/Lib.hs
index abb8fe7..0142dfb 100644
--- a/src/Lib.hs
+++ b/src/Lib.hs
@@ -9,5 +9,5 @@ import Plugin
someFunc :: IO ()
someFunc = do
let message = "75ac7b18a009ffe7a77a17a61d95c01395f36b44"
- Just plugin = realMatchPlugin message
+ Just plugin = matchPlugin message
putStrLn $ performPlugin plugin message