blob: f06eabf1c3fb555747320bf03c6492a43c10866a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{-# LANGUAGE TypeFamilies, ConstraintKinds, UndecidableInstances #-}
module Ctx where
import GHC.Prim( Constraint )
type family Indirect :: * -> Constraint
type instance Indirect = Show
class Indirect a => Cls a where
foo :: Cls a => a -> String
foo = show
|