diff options
author | Teddy Wing | 2017-08-11 00:04:05 +0200 |
---|---|---|
committer | Teddy Wing | 2017-08-11 00:04:05 +0200 |
commit | eca3a0e78e20258bd165053e7832a0490432c59a (patch) | |
tree | f96f84124defe46e2898278284ccf1cb171b2b7b /src | |
parent | ccf11b5467b2f41690390a20bc50a02c006be3f0 (diff) | |
download | sorbot-eca3a0e78e20258bd165053e7832a0490432c59a.tar.bz2 |
Lib.hs: Move `putStrLn` outside the `case` statement
It's duplicated so I figured I'd take it out.
Diffstat (limited to 'src')
-rw-r--r-- | src/Lib.hs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ someFunc = do Just plugin = matchPlugin message dbConn <- open "db/sorbot_development.sqlite3" response <- performPlugin plugin message dbConn - case response of - Left e -> putStrLn e - Right r -> putStrLn r + putStrLn $ case response of + Left e -> e + Right r -> r close dbConn |