Fold template-haskell.git into ghc.git (re #8545)
[ghc.git] / testsuite / tests / module / mod160.hs
1 -- !!! cumulative re-exportation of class methods, pt 2.
2 module M where
3
4 import Mod159_D
5
6 -- Mod159_D re-exports the class C using (..). C is defined
7 -- in Mod159_A, but (only) two of its methods are visible
8 -- in Mod159_D, one via Mod159_B, the other via Mod159_C.
9 a = m1 'a'
10 b = m2 'b'
11 -- m3 isn't in scope
12 c = m3 'c'