haskmon 0.1.1.0 → 0.2.0.0
raw patch · 2 files changed
+13/−12 lines, 2 filesdep −old-localedep ~aesondep ~basedep ~bytestring
Dependencies removed: old-locale
Dependency ranges changed: aeson, base, bytestring, containers, http-streams, io-streams, time
Files
- haskmon.cabal +11/−11
- src/Haskmon/Types/Internals.hs +2/−1
haskmon.cabal view
@@ -1,7 +1,8 @@ name: haskmon-version: 0.1.1.0+version: 0.2.0.0 synopsis: A haskell wrapper for PokeAPI.co (www.pokeapi.co)-description: This is a haskell wrapper for the RESTful api www.pokeapi.co. It defines most of the types and functions to get them.+description: This is a haskell wrapper for the RESTful api www.pokeapi.co.+ It defines most of the types and functions in the API. license: MIT license-file: LICENSE author: Pedro Rodriguez@@ -28,15 +29,14 @@ Haskmon.Types.MetaData Haskmon.Types.EggGroup Haskmon.Types.Description- build-depends: base >=4.7 && <4.8,- http-streams ==0.7.1.1,- bytestring ==0.10.0.2,- io-streams ==1.1.4.2,- aeson ==0.7.*,- time,- vector ==0.10.*,- old-locale == 1.*,- containers ==0.5.5.1+ build-depends: base >=4.8 && <4.9,+ http-streams >=0.8 && < 0.9,+ bytestring >=0.10.0.2 && < 0.11,+ io-streams >=1.3 && < 1.4,+ aeson >=0.8 && < 0.9,+ time >= 1.5 && < 1.6,+ vector >=0.10 && < 0.11,+ containers >=0.5.5.1 && < 0.6 default-language: Haskell2010 source-repository head
src/Haskmon/Types/Internals.hs view
@@ -9,7 +9,7 @@ import Data.Time.Clock import Data.List(find) -import System.Locale+import Data.Time.Format (parseTimeOrError) import Control.Applicative import Control.Monad(mzero)@@ -31,6 +31,7 @@ convert (v .: "modified") where convert :: Parser String -> Parser UTCTime convert ps = readTime defaultTimeLocale formatStr <$> ps+ readTime = parseTimeOrError True formatStr = "%FT%R:%S%Q" -- Alias for withObject