Skip to content

Commit

Permalink
Do not treat OverloadedStrings as default extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Guzeev committed Sep 22, 2018
1 parent 4bb9433 commit 2370f6f
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 7 deletions.
2 changes: 0 additions & 2 deletions dbmigrations.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ Source-Repository head

Library
default-language: Haskell2010
default-extensions: OverloadedStrings
if impl(ghc >= 6.12.0)
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
-fno-warn-unused-do-bind
Expand Down Expand Up @@ -108,7 +107,6 @@ Library

test-suite dbmigrations-tests
default-language: Haskell2010
default-extensions: OverloadedStrings
type: exitcode-stdio-1.0
Build-Depends:
base >= 4 && < 5,
Expand Down
1 change: 1 addition & 0 deletions src/Database/Schema/Migrations/Backend.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module Database.Schema.Migrations.Backend
( Backend(..)
, rootMigrationName
Expand Down
1 change: 1 addition & 0 deletions src/Database/Schema/Migrations/Backend/HDBC.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module Database.Schema.Migrations.Backend.HDBC
( hdbcBackend
)
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Schema/Migrations/Dependencies.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE TypeSynonymInstances, OverloadedStrings #-}
-- |This module types and functions for representing a dependency
-- graph of arbitrary objects and functions for querying such graphs
-- to get dependency and reverse dependency information.
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Schema/Migrations/Filesystem.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE DeriveDataTypeable, ScopedTypeVariables #-}
{-# LANGUAGE DeriveDataTypeable, ScopedTypeVariables, OverloadedStrings #-}
-- |This module provides a type for interacting with a
-- filesystem-backed 'MigrationStore'.
module Database.Schema.Migrations.Filesystem
Expand Down
1 change: 1 addition & 0 deletions src/Database/Schema/Migrations/Filesystem/Serialize.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module Database.Schema.Migrations.Filesystem.Serialize
( serializeMigration
)
Expand Down
1 change: 1 addition & 0 deletions src/Database/Schema/Migrations/Migration.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module Database.Schema.Migrations.Migration
( Migration(..)
, newMigration
Expand Down
2 changes: 1 addition & 1 deletion src/Moo/CommandUtils.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleContexts, OverloadedStrings #-}
module Moo.CommandUtils
( apply
, confirmCreation
Expand Down
1 change: 1 addition & 0 deletions src/Moo/Main.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module Moo.Main
( mainWithParameters
, ExecutableParameters (..)
Expand Down
1 change: 1 addition & 0 deletions test/DependencyTest.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module DependencyTest
( tests
)
Expand Down
1 change: 1 addition & 0 deletions test/FilesystemParseTest.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module FilesystemParseTest
( tests
)
Expand Down
1 change: 1 addition & 0 deletions test/FilesystemSerializeTest.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module FilesystemSerializeTest
( tests
)
Expand Down
1 change: 1 addition & 0 deletions test/FilesystemTest.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module FilesystemTest
( tests
)
Expand Down
1 change: 1 addition & 0 deletions test/LinearMigrationsTest.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module LinearMigrationsTest (tests) where

import InMemoryStore
Expand Down
2 changes: 1 addition & 1 deletion test/MigrationsTest.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE TypeSynonymInstances,GeneralizedNewtypeDeriving,MultiParamTypeClasses,FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances,GeneralizedNewtypeDeriving,MultiParamTypeClasses,FlexibleInstances,OverloadedStrings #-}
module MigrationsTest
( tests
)
Expand Down
3 changes: 2 additions & 1 deletion test/StoreTest.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module StoreTest
( tests
)
Expand Down Expand Up @@ -115,4 +116,4 @@ validateMigrationMapTests =
map mkValidateMapTest validateMapTestCases
where
mkValidateMapTest (mmap, errs) =
errs ~=? validateMigrationMap mmap
errs ~=? validateMigrationMap mmap

0 comments on commit 2370f6f

Please sign in to comment.