summaryrefslogtreecommitdiff
path: root/testsuite/tests/saks/should_compile/T16758.hs
blob: 2798156f3c362273a83b9e99a1aec3142c63506f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE ConstrainedClassMethods #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ExplicitForAll #-}

module T16758 where

import Data.Kind

type C :: forall (a :: Type) -> a ~ Int => Constraint
class C a where
  f :: C a => a -> Int