global-config 0.2.0 → 0.2.1
raw patch · 2 files changed
+2/−1 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Global.Config: class (Default a, Typeable a) => GlobalConfig a where setConfig e = do { stubConfig `writeIORef` e; onSetConfig e } getConfig = readIORef stubConfig stubConfig = declareIORef "" def
+ Data.Global.Config: class (Default a, Typeable a) => GlobalConfig a where setConfig e = do { stubConfig `writeIORef` e; onSetConfig e } onSetConfig _ = return () getConfig = readIORef stubConfig stubConfig = declareIORef "" def
Files
- global-config.cabal +1/−1
- src/Data/Global/Config.hs +1/−0
global-config.cabal view
@@ -1,5 +1,5 @@ name: global-config -version: 0.2.0 +version: 0.2.1 cabal-version: >= 1.8 build-type: Simple author: Alexander Dorofeev <aka.spin@gmail.com>spin
src/Data/Global/Config.hs view
@@ -55,6 +55,7 @@ -- | Set config handler onSetConfig :: a -> IO () + onSetConfig _ = return () -- | Get global config getConfig :: IO a