{-# OPTIONS_GHC -fno-warn-redundant-constraints #-} {-# LANGUAGE ConstraintKinds, RankNTypes #-} {-# LANGUAGE TemplateHaskell #-} module T8807 where import Data.Proxy foo :: $( [t| forall a b. a b => Proxy a -> b -> b |] ) foo = undefined