blob: a45cb30799f6fa087784d34af88d746128f7a99a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
{-# LANGUAGE TypeFamilies, FlexibleInstances, UndecidableInstances #-}
module TH_tf3 where
type family T a
$( [d| foo :: T [a] ~ Bool => a -> a
foo x = x |] )
$( [d| class C a
instance a ~ Int => C a |] )
|