packages feed

currency-convert 0.1.0.0 → 0.1.1.0

raw patch · 2 files changed

+12/−5 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Data.Currency.Convert: instance GHC.TypeLits.KnownSymbol s => GHC.Show.Show (Data.Currency.Convert.Currency s)
+ Data.Currency.Convert: instance GHC.Read.Read (Data.Currency.Convert.Currency s)
+ Data.Currency.Convert: instance GHC.Show.Show (Data.Currency.Convert.Currency s)

Files

Data/Currency/Convert.hs view
@@ -126,10 +126,17 @@     To extract the value from a @'Currency'@ value, use @toRational@ from @Real@. -} data Currency (s :: Symbol) = Currency Double-    deriving (Eq, Ord)+    deriving (Eq, Ord, Show, Read) -instance KnownSymbol s => Show (Currency s) where-    show (Currency v) = show v ++ " " ++ symbolVal (SProxy :: SProxy s)++{-|+    @'pprint'@ renders the value the provided currency and its three letter code to a string.++    >>> pprint (usd 10)+    10 usd+-}+pprint :: forall s. KnownSymbol s => Currency s -> String+pprint (Currency v) = show v ++ " " ++ symbolVal (SProxy :: SProxy s)  instance Num (Currency a) where     Currency a + Currency b = Currency $ a + b
currency-convert.cabal view
@@ -10,7 +10,7 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             0.1.0.0+version:             0.1.1.0  -- A short (one-line) description of the package. synopsis:            Typesafe currency conversion@@ -19,7 +19,7 @@ description:         A typesafe currency conversion system with a various exchange rate sources for over 30 currencies.  -- URL for the project homepage or repository.-homepage:            pigworts2.github.io/currency-convert+homepage:            http://tuomas56.github.io/currency-convert  -- The license under which the package is released. license:             BSD3