git.iko.soy/typeable/postgresql-simple
on master help sign in
test: Move extensions to .cabal file, to cut down on per-test boilerplate
2573d59Joey Adams
postgresql-simple.cabal+5
@@ -76,6 +76,11 @@ test-suite test
76
76
77 ghc-options: -Wall -fno-warn-name-shadowing -fno-warn-unused-do-bind
77 ghc-options: -Wall -fno-warn-name-shadowing -fno-warn-unused-do-bind
78
78
79+ extensions: NamedFieldPuns
80+ , OverloadedStrings
81+ , Rank2Types
82+ , RecordWildCards
83+
79 build-depends: base
84 build-depends: base
80 , base16-bytestring
85 , base16-bytestring
81 , bytestring
86 , bytestring
test/Bytea.hs−2
@@ -1,5 +1,3 @@
1−{-# LANGUAGE OverloadedStrings #-}
2−{-# LANGUAGE RecordWildCards #-}
3module Bytea (testBytea) where
1module Bytea (testBytea) where
4
2
5import Common
3import Common
test/Common.hs−1
@@ -1,4 +1,3 @@
1−{-# LANGUAGE Rank2Types #-}
2module Common (
1module Common (
3 module Database.PostgreSQL.Simple,
2 module Database.PostgreSQL.Simple,
4 module Test.HUnit,
3 module Test.HUnit,
test/Main.hs−3
@@ -1,6 +1,3 @@
1−{-# LANGUAGE OverloadedStrings #-}
2−{-# LANGUAGE NamedFieldPuns #-}
3−
4import Common
1import Common
5import Bytea
2import Bytea
6import Notify
3import Notify
test/Notify.hs−2
@@ -1,5 +1,3 @@
1−{-# LANGUAGE OverloadedStrings #-}
2−{-# LANGUAGE RecordWildCards #-}
3module Notify (testNotify) where
1module Notify (testNotify) where
4
2
5import Common
3import Common