1 2 3 4 5 6 7 8 9 10 11 12
{-# LANGUAGE TypeFamilies #-} module T9318 where type family F x type instance F Int = Bool foo :: F Int -> () foo True = () bar :: F Int -> () bar 'x' = ()