summaryrefslogtreecommitdiff
path: root/testsuite/tests/quantified-constraints/T15359a.hs
blob: 277793b81c4709c20438ee027c23f8f78144db41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE MultiParamTypeClasses, GADTs, RankNTypes,
             ConstraintKinds, QuantifiedConstraints, TypeOperators,
             UndecidableInstances #-}

module T15359a where

class C a b
class a ~ b => D a b

data Dict c where
  Dict :: c => Dict c

foo :: (forall a b. C a b => D a b) => Dict (C a b) -> a -> b
foo Dict x = x