Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit d2713e7

Browse files
committed
s/pure/return
1 parent 8fec05c commit d2713e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/PostgreSQL/Simple/Migration.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ runMigrations verbose con commands =
101101
-- | Run a sequence of contexts, stopping on the first failure
102102
sequenceMigrations :: Monad m => [m (MigrationResult e)] -> m (MigrationResult e)
103103
sequenceMigrations = \case
104-
[] -> pure MigrationSuccess
104+
[] -> return MigrationSuccess
105105
c:cs -> do
106106
r <- c
107107
case r of
108-
MigrationError s -> pure (MigrationError s)
108+
MigrationError s -> return (MigrationError s)
109109
MigrationSuccess -> sequenceMigrations cs
110110

111111
-- | Executes all SQL-file based migrations located in the provided 'dir'

0 commit comments

Comments
 (0)