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

Commit 5acb8fd

Browse files
committed
s/pure/return
1 parent 9c286a8 commit 5acb8fd

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
@@ -106,11 +106,11 @@ runMigrations verbose con commands =
106106
-- | Run a sequence of contexts, stopping on the first failure
107107
sequenceMigrations :: Monad m => [m (MigrationResult e)] -> m (MigrationResult e)
108108
sequenceMigrations = \case
109-
[] -> pure MigrationSuccess
109+
[] -> return MigrationSuccess
110110
c:cs -> do
111111
r <- c
112112
case r of
113-
MigrationError s -> pure (MigrationError s)
113+
MigrationError s -> return (MigrationError s)
114114
MigrationSuccess -> sequenceMigrations cs
115115

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

0 commit comments

Comments
 (0)