git.iko.soy/typeable/postgresql-simple
on master help sign in
test: Move extensions to .cabal file, to cut down on per-test boilerplate
commit2573d592017ad271b6173935b01867d91467bc62 authorJoey Adams <joeyadams3.14159@gmail.com> dateFri 18 May 2012, 00:15 (14 years ago) parent87ba6a3
5 files changed+5−8
postgresql-simple.cabal+5 test/Bytea.hs−2 test/Common.hs−1 test/Main.hs−3 test/Notify.hs−2
postgresql-simple.cabal+5
@@ -76,6 +76,11 @@ test-suite test
7676
7777 ghc-options: -Wall -fno-warn-name-shadowing -fno-warn-unused-do-bind
7878
79+ extensions: NamedFieldPuns
80+ , OverloadedStrings
81+ , Rank2Types
82+ , RecordWildCards
83+
7984 build-depends: base
8085 , base16-bytestring
8186 , bytestring
test/Bytea.hs−2
@@ -1,5 +1,3 @@
1−{-# LANGUAGE OverloadedStrings #-}
2−{-# LANGUAGE RecordWildCards #-}
31module Bytea (testBytea) where
42
53import Common
test/Common.hs−1
@@ -1,4 +1,3 @@
1−{-# LANGUAGE Rank2Types #-}
21module Common (
32 module Database.PostgreSQL.Simple,
43 module Test.HUnit,
test/Main.hs−3
@@ -1,6 +1,3 @@
1−{-# LANGUAGE OverloadedStrings #-}
2−{-# LANGUAGE NamedFieldPuns #-}
3−
41import Common
52import Bytea
63import Notify
test/Notify.hs−2
@@ -1,5 +1,3 @@
1−{-# LANGUAGE OverloadedStrings #-}
2−{-# LANGUAGE RecordWildCards #-}
31module Notify (testNotify) where
42
53import Common