packages feed

mbtiles 0.2.0.0 → 0.3.0.0

raw patch · 4 files changed

+6/−4 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Database.Mbtiles: type Mbtiles a = MbtilesT IO a
+ Database.Mbtiles: type MbtilesIO a = MbtilesT IO a
- Database.Mbtiles: runMbtiles :: FilePath -> Mbtiles a -> IO (Either MBTilesError a)
+ Database.Mbtiles: runMbtiles :: FilePath -> MbtilesIO a -> IO (Either MBTilesError a)

Files

README.md view
@@ -2,6 +2,8 @@  Haskell library for interfacing with MapBox [MBTiles](https://github.com/mapbox/mbtiles-spec) files. +Documentation available on [Hackage](https://hackage.haskell.org/package/mbtiles).+ ## Functionality * Getting tiles by zoom, x, and y. * Writing new tiles by zoom, x, and y.
mbtiles.cabal view
@@ -1,5 +1,5 @@ name:                mbtiles-version:             0.2.0.0+version:             0.3.0.0 synopsis:            Haskell MBTiles client. description:         Read and manipulate MBTiles files and associated metadata. homepage:            https://github.com/caneroj1/mbtiles#readme
src/Database/Mbtiles.hs view
@@ -20,7 +20,7 @@ (   -- * Types   MbtilesT-, Mbtiles+, MbtilesIO , MbtilesMeta , MBTilesError(..) , Z(..)@@ -116,7 +116,7 @@         else return $ Left InvalidMetadata  -- | Specialized version of 'runMbtilesT' to run in the IO monad.-runMbtiles :: FilePath -> Mbtiles a -> IO (Either MBTilesError a)+runMbtiles :: FilePath -> MbtilesIO a -> IO (Either MBTilesError a) runMbtiles = runMbtilesT  -- | Given a 'Z', 'X', and 'Y' parameters, return the corresponding tile data,
src/Database/Mbtiles/Types.hs view
@@ -41,7 +41,7 @@   liftIO = MbtilesT . liftIO  -- | Type specialization of 'MbtilesT' to IO.-type Mbtiles a = MbtilesT IO a+type MbtilesIO a = MbtilesT IO a  -- | Newtype wrapper around map zoom level. newtype Z = Z Int deriving ToField