packages feed

app-settings 0.2.0.7 → 0.2.0.8

raw patch · 1 files changed

+12/−12 lines, 1 filesdep ~HUnitPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: HUnit

API changes (from Hackage documentation)

- Data.AppSettings: ListSetting :: String -> [a] -> Setting [a]
- Data.AppSettings: Setting :: String -> a -> Setting a
+ Data.AppSettings: [ListSetting] :: (Read a, Show a) => String -> [a] -> Setting [a]
+ Data.AppSettings: [Setting] :: String -> a -> Setting a

Files

app-settings.cabal view
@@ -1,17 +1,17 @@--- Initial app-settings.cabal generated by cabal init.  For further +-- Initial app-settings.cabal generated by cabal init.  For further -- documentation, see http://haskell.org/cabal/users-guide/  name:                app-settings-version:             0.2.0.7+version:             0.2.0.8 synopsis:            A library to manage application settings (INI file-like)-description:         +description:   A library to deal with application settings.   .   This library deals with read-write application settings.   You will have to specify the settings that your application   uses, their name, types and default values.   .-  Setting types must implement the 'Read' and 'Show' typeclasses. +  Setting types must implement the 'Read' and 'Show' typeclasses.   .   The settings are saved in a file in an INI-like key-value format   (without sections).@@ -22,13 +22,13 @@   holding settings handling.   .   You can then declare settings:-  . +  .   > fontSize :: Setting Double   > fontSize = Setting "fontSize" 14-  > +  >   > dateFormat :: Setting String   > dateFormat = Setting "dateFormat" "%x"-  > +  >   > backgroundColor :: Setting (Int, Int, Int)   > backgroundColor = Setting "backcolor" (255, 0, 0)   .@@ -91,7 +91,7 @@   > 	Left (x :: SomeException) -> error "Error reading the config file!"   .   'AutoFromAppName' specifies where to save the configuration file.-  And we've already covered the getSetting in this snippet, see +  And we've already covered the getSetting in this snippet, see   the 'readSettings' documentation for further information.   .   You can also look at the tests of the library on the github project for sample use.@@ -101,7 +101,7 @@ license-file:        LICENSE author:              Emmanuel Touzery maintainer:          etouzery@gmail.com--- copyright:           +-- copyright: category:            Configuration build-type:          Simple extra-source-files:  tests/*.conf tests/*.config tests/*.txt@@ -111,14 +111,14 @@   exposed-modules:     Data.AppSettings   other-modules:       Data.Serialization,                        Data.AppSettingsInternal-  -- other-extensions:    +  -- other-extensions:   build-depends:       base >=4.6 && <5,                        mtl >= 2.1 && <2.3,                        containers == 0.5.*,                        directory == 1.2.*,                        text >= 0.10,                        parsec == 3.1.*-  -- hs-source-dirs:      +  -- hs-source-dirs:   default-language:    Haskell2010   Ghc-Options:         -Wall @@ -129,7 +129,7 @@   default-language:    Haskell2010   build-depends:       base,                        hspec,-                       HUnit >= 1.2 && <1.4,+                       HUnit >= 1.2 && <1.5,                        mtl >= 2.1 && <2.3,                        containers == 0.5.*,                        directory == 1.2.*,