Commit e88feda6 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Test importing reexported modules.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent d28d230e
......@@ -169,7 +169,9 @@ extra-source-files:
tests/PackageTests/PreProcessExtraSources/Foo.hsc
tests/PackageTests/PreProcessExtraSources/Main.hs
tests/PackageTests/PreProcessExtraSources/my.cabal
tests/PackageTests/ReexportedModules/ReexportedModules.cabal
tests/PackageTests/ReexportedModules/p/p.cabal
tests/PackageTests/ReexportedModules/q/A.hs
tests/PackageTests/ReexportedModules/q/q.cabal
tests/PackageTests/RegisterAssumeDepsUpToDate/P.hs
tests/PackageTests/RegisterAssumeDepsUpToDate/RegisterOneShot.cabal
tests/PackageTests/RegisterAssumeDepsUpToDate/q/Q.hs
......
name: ReexportedModules
name: p
version: 0.1.0.0
license-file: LICENSE
author: Edward Z. Yang
maintainer: ezyang@cs.stanford.edu
build-type: Simple
......@@ -8,4 +7,7 @@ cabal-version: >=1.21
library
build-depends: base, containers
reexported-modules: containers:Data.Map as DataMap
reexported-modules: containers:Data.Map as DataMap,
Data.Graph,
Data.Set as Set,
containers:Data.Tree
module A where
import DataMap
import Data.Graph
import Set
import Data.Tree
name: q
version: 0.1.0.0
license: BSD3
author: Edward Z. Yang
maintainer: ezyang@cs.stanford.edu
build-type: Simple
cabal-version: >=1.10
library
exposed-modules: A
build-depends: base, p
default-language: Haskell2010
......@@ -192,9 +192,11 @@ tests config = do
tc "OrderFlags" $ cabal_build []
-- Test that reexported modules build correctly
-- TODO: should also test that they import OK!
tc "ReexportedModules" $ do
whenGhcVersion (>= Version [7,9] []) $ cabal_build []
tc "ReexportedModules" . whenGhcVersion (>= Version [7,9] []) $ do
withPackageDb $ do
withPackage "p" $ cabal_install []
withPackage "q" $ do
cabal_build []
-- Test that Cabal computes different IPIDs when the source changes.
tc "UniqueIPID" . withPackageDb $ do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment