summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/mod160.hs
blob: a279471c11c92f91a2a5de9fd3d49132919179fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-- !!! cumulative re-exportation of class methods, pt 2.
module M where

import Mod159_D

-- Mod159_D re-exports the class C using (..). C is defined
-- in Mod159_A, but (only) two of its methods are visible
-- in Mod159_D, one via Mod159_B, the other via Mod159_C.
a = m1 'a'
b = m2 'b'
-- m3 isn't in scope
c = m3 'c'