lambdabot-core 5.0.1 → 5.0.3
raw patch · 3 files changed
+8/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Lambdabot.Plugin: lbVersion :: Config Version
+ Lambdabot.Plugin.Core: lbVersion :: Config Version
Files
- lambdabot-core.cabal +1/−1
- src/Lambdabot/Config/Core.hs +5/−1
- src/Lambdabot/Plugin/Core/Version.hs +2/−2
lambdabot-core.cabal view
@@ -1,5 +1,5 @@ name: lambdabot-core-version: 5.0.1+version: 5.0.3 license: GPL license-file: LICENSE
src/Lambdabot/Config/Core.hs view
@@ -10,6 +10,7 @@ , onStartupCmds , outputDir , dataDir+ , lbVersion , uncaughtExceptionHandler , replaceRootLogger@@ -24,6 +25,7 @@ import Control.Exception import System.IO+import Data.Version ------------------------------------- -- Core configuration variables@@ -34,8 +36,10 @@ config "enableInsults" [t| Bool |] [| True |] configWithMerge [| (++) |] "onStartupCmds" [t| [String] |] [| ["offline"] |] config "outputDir" [t| FilePath |] [| "State/" |]--- The dataDir variable will be filled by lambdabot's executable+-- the dataDir variable will be filled by lambdabot's executable config "dataDir" [t| FilePath |] [| "." |]+-- ditto for lbVersion+config "lbVersion" [t| Version |] [| Version [] [] |] -- basic logging. for more complex setups, configure directly using System.Log.Logger config "replaceRootLogger" [t| Bool |] [| True |]
src/Lambdabot/Plugin/Core/Version.hs view
@@ -5,7 +5,6 @@ module Lambdabot.Plugin.Core.Version (versionPlugin) where import Lambdabot.Plugin-import Paths_lambdabot_core (version) import Data.Version (showVersion) versionPlugin :: Module ()@@ -16,7 +15,8 @@ "version/source. Report the version " ++ "and git repo of this bot" , process = const $ do- say $ "lambdabot " ++ showVersion version+ ver <- getConfig lbVersion+ say $ "lambdabot " ++ showVersion ver say "git clone https://github.com/lambdabot/lambdabot" } ]