packages feed

peregrin 0.3.1 → 0.3.2

raw patch · 3 files changed

+8/−6 lines, 3 filesdep ~bytestringPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: bytestring

API changes (from Hackage documentation)

Files

peregrin.cabal view
@@ -1,6 +1,6 @@ Cabal-version:       2.2 Name:                peregrin-Version:             0.3.1+Version:             0.3.2 Synopsis:            Database migration support for use in other libraries. Description:         Database migration support for use in other libraries.                      Currently only supports PostgreSQL.@@ -17,7 +17,7 @@  Library   build-depends:      base >= 4.9 && < 5-                    , bytestring >= 0.10 && < 0.11+                    , bytestring >= 0.10 && < 0.12                     , postgresql-simple >= 0.5.2.1 && < 0.7                     , text >= 1.1.0 && < 2   default-language:   Haskell2010
src-test/Main.hs view
@@ -3,16 +3,19 @@  import           Control.Applicative ((<$>)) import           Database.PeregrinSpec ( mkMigrateSpec )+import           Data.Maybe (fromMaybe) import           Data.Pool (createPool) import qualified Database.PostgreSQL.Harness.Client as H import           Database.PostgreSQL.Simple (connectPostgreSQL, close)+import           System.Environment (lookupEnv) import           Test.Hspec  main :: IO () main = do-  -- HSpec has no easy way to get "other" command line parameters, so-  -- we'll just settle for a hardcoded value here.-  let url = "http://localhost:8900"+  -- We require an environment variable to point to a tempgres server instance.+  url <- fmap+    (fromMaybe (error "Missing TEMPGRES_URL environment variable"))+    (lookupEnv "TEMPGRES_URL")   -- Connection pool creation function. We use a fresh temporary   -- database for every connection pool.   let mkConnectionPool = do
src/Database/Peregrin.hs view
@@ -7,7 +7,6 @@     , QP(..)     ) where -import           Control.Applicative ((<$>)) import           Control.Exception (Exception, throwIO) import           Control.Monad (forM_, when, void) import           Data.ByteString (ByteString)