aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Squeal
diff options
context:
space:
mode:
authorA.D <Raveline@users.noreply.github.com>2019-05-29 14:38:33 +0200
committerGitHub <noreply@github.com>2019-05-29 14:38:33 +0200
commitf285a0743e30bc633534ed4fc757df06b9e6257d (patch)
treefc619912292aee1228dda6a54473bb6bce8dc10a /src/Squeal
parent33eca3fd474c089b102da97ba341e110d426f69d (diff)
parentf4e2e1eb5756ba0eb0ff383aa12318e41ad8b859 (diff)
downloadsqueal-hspec-f285a0743e30bc633534ed4fc757df06b9e6257d.tar.gz
squeal-hspec-f285a0743e30bc633534ed4fc757df06b9e6257d.tar.zst
squeal-hspec-f285a0743e30bc633534ed4fc757df06b9e6257d.zip
Merge pull request #3 from ismaelbouyaf/master
Generalize Migratory kind
Diffstat (limited to 'src/Squeal')
-rw-r--r--src/Squeal/PostgreSQL/Hspec.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Squeal/PostgreSQL/Hspec.hs b/src/Squeal/PostgreSQL/Hspec.hs
index d065048..d96d9a2 100644
--- a/src/Squeal/PostgreSQL/Hspec.hs
+++ b/src/Squeal/PostgreSQL/Hspec.hs
@@ -59,7 +59,7 @@ createTempDB = do
59 59
60-- | Start a temporary @postgres@ process and create a pool of connections to it 60-- | Start a temporary @postgres@ process and create a pool of connections to it
61setupDB 61setupDB
62 :: AlignedList (Migration (Terminally PQ IO)) schema0 schema 62 :: Migratory p => AlignedList (Migration p) schema0 schema
63 -> Fixtures schema 63 -> Fixtures schema
64 -> IO (SquealContext schema) 64 -> IO (SquealContext schema)
65setupDB migration fixtures = do 65setupDB migration fixtures = do
@@ -79,7 +79,7 @@ setupDB migration fixtures = do
79 79
80-- | Drop all the connections and shutdown the @postgres@ process 80-- | Drop all the connections and shutdown the @postgres@ process
81teardownDB 81teardownDB
82 :: AlignedList (Migration (Terminally PQ IO)) schema0 schema 82 :: Migratory p => AlignedList (Migration p) schema0 schema
83 -> TestDB a 83 -> TestDB a
84 -> IO () 84 -> IO ()
85teardownDB migration TestDB {..} = do 85teardownDB migration TestDB {..} = do
@@ -119,7 +119,7 @@ itDB msg action = it msg $ void . withDB action
119-- 119--
120-- hook for stopping a db. 120-- hook for stopping a db.
121describeDB 121describeDB
122 :: AlignedList (Migration (Terminally PQ IO)) schema0 schema 122 :: Migratory p => AlignedList (Migration p) schema0 schema
123 -> Fixtures schema 123 -> Fixtures schema
124 -> String 124 -> String
125 -> SpecWith (SquealContext schema) 125 -> SpecWith (SquealContext schema)