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

Commit ae738d9

Browse files
committed
Cleaned up language pragmas
1 parent 7c57353 commit ae738d9

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/Database/PostgreSQL/Simple/Migration.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
-- For usage, see Readme.markdown.
1313

1414
{-# LANGUAGE CPP #-}
15-
{-# LANGUAGE OverloadedStrings #-}
1615
{-# LANGUAGE LambdaCase #-}
16+
{-# LANGUAGE OverloadedStrings #-}
1717

1818
module Database.PostgreSQL.Simple.Migration
1919
(
@@ -168,7 +168,7 @@ executeValidation con verbose cmd = case cmd of
168168
return (MigrationError $ "Checksum mismatch: " ++ name)
169169

170170
goScripts _ [] = return MigrationSuccess
171-
goScripts path (x:xs) = do
171+
goScripts path (x:xs) =
172172
(validate x =<< BS.readFile (path ++ "/" ++ x)) >>= \case
173173
e@(MigrationError _) ->
174174
return e

src/Database/PostgreSQL/Simple/Util.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
-- A collection of utilites for database migrations.
1111

1212
{-# LANGUAGE CPP #-}
13-
{-# LANGUAGE OverloadedStrings #-}
1413
{-# LANGUAGE LambdaCase #-}
14+
{-# LANGUAGE OverloadedStrings #-}
1515

1616
module Database.PostgreSQL.Simple.Util
1717
( existsTable

src/Main.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
-- A standalone program for the postgresql-simple-migration library.
1111

1212
{-# LANGUAGE CPP #-}
13-
{-# LANGUAGE OverloadedStrings #-}
1413
{-# LANGUAGE LambdaCase #-}
14+
{-# LANGUAGE OverloadedStrings #-}
1515

1616
module Main (
1717
main
@@ -83,10 +83,10 @@ run (Just cmd) verbose =
8383
(MigrationValidation (MigrationDirectory dir)) verbose con
8484

8585
parseCommand :: [String] -> Maybe Command
86-
parseCommand ("init":url:_) = Just (Initialize url)
87-
parseCommand ("migrate":url:dir:_) = Just (Migrate url dir)
86+
parseCommand ("init":url:_) = Just (Initialize url)
87+
parseCommand ("migrate":url:dir:_) = Just (Migrate url dir)
8888
parseCommand ("validate":url:dir:_) = Just (Validate url dir)
89-
parseCommand _ = Nothing
89+
parseCommand _ = Nothing
9090

9191
printUsage :: IO ()
9292
printUsage = do

test/Database/PostgreSQL/Simple/MigrationTest.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
--
1010
-- A collection of postgresql-simple-migration specifications.
1111

12-
{-# LANGUAGE OverloadedStrings #-}
1312
{-# LANGUAGE CPP #-}
1413
{-# LANGUAGE LambdaCase #-}
14+
{-# LANGUAGE OverloadedStrings #-}
1515

1616
module Database.PostgreSQL.Simple.MigrationTest where
1717

test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
--
1010
-- The test entry-point for postgresql-simple-migration.
1111

12-
{-# LANGUAGE OverloadedStrings #-}
1312
{-# LANGUAGE CPP #-}
1413
{-# LANGUAGE LambdaCase #-}
14+
{-# LANGUAGE OverloadedStrings #-}
1515

1616
module Main
1717
( main

0 commit comments

Comments
 (0)