packages feed

eurofxref 0.1.1 → 0.1.2

raw patch · 2 files changed

+6/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Financial/EuroFXRef.hs view
@@ -77,7 +77,9 @@         case getAttribute e "time" of             Just tstr -> case words (map (\x -> if x == '-' then ' ' else x) tstr) of                 [ys, ms, ds] -> case (maybeRead ys, maybeRead ms, maybeRead ds) of-                    (Just y, Just m, Just d) -> modify $ first $ const $ Just $ cal2utc (y, m, d, 0, 0, 0)+                    (Just y, Just m, Just d) -> modify $ first $ const $ Just $+                        cal2utc (y, m, d, 13, 0, 0)  -- Updated at "3PM CET" which corresponds to+                                                     -- 13:00 UTC. Not sure about daylight savings!                     _ -> lift $ fail $ "bad time: " ++ tstr                 _ -> lift $ fail $ "bad time: " ++ tstr             Nothing -> lift $ fail "missing time"
eurofxref.cabal view
@@ -1,5 +1,5 @@ name: eurofxref-version: 0.1.1+version: 0.1.2 cabal-version: >=1.6 build-type: Simple license: BSD3@@ -13,6 +13,8 @@ synopsis: Free foreign exchange/currency feed from the European Central Bank description:     A Haskell API for the the European Central Bank's free daily currency reference rates.+    .+    ChangeLog: 0.1.2: Timestamp now has correct hour. category: Finance author: Stephen Blackheath data-files: example.hs