diff options
author | Teddy Wing | 2017-07-30 19:02:21 +0200 |
---|---|---|
committer | Teddy Wing | 2017-07-30 19:02:21 +0200 |
commit | b4802d1f1fa4f97ff5613c79398c204ebdfcbd75 (patch) | |
tree | b8a07efe6ececf1c552a44325277ef37fc4d594b /src/Lib.hs | |
parent | bee8faa9804d37e3912e3704dbf03fc1c02eeb84 (diff) | |
download | sorbot-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.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |