summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T10570.hs
blob: 259a32bd6c1a8249a94d9db1470b0c4765db2ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE FunctionalDependencies, PolyKinds, FlexibleInstances #-}

module T10570 where

import Data.Proxy

class ConsByIdx2 x a m cls | x -> m where
    consByIdx2 :: x -> a -> m cls

instance ConsByIdx2 Int a Proxy cls where
    consByIdx2 _ _ = Proxy