summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/T7082.hs
blob: 005e5f84d9a7789f395608e43e9a31dea05f2599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE TypeFamilies #-}
module T7082 where

import Data.Kind (Type)

class R m where
  type D m a :: Type
  type D m a = ()                -- (1)
  f :: m a -> D m a -> ()

instance R Maybe where
  -- type D Maybe a = ()         -- (2)
  f = undefined

x = f (Nothing :: Maybe Int) ()