aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/TypeFamilies2.hs
blob: 718e11dc36b966b3f07a91f97c621f92ace0e58a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE TypeFamilies #-}
-- This tests what happens if we have unexported types
-- in type instances. The expected behaviour is
-- that we get the instance, Y is not linked and
-- Haddock shows a linking warning.
module TypeFamilies2 (X, Foo) where

data X
data Y

type family Foo a
type instance Foo X = Y