blob: 08e089fdf1438e4539f2876659a03199653cad7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{-# 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 |] )
|