summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/T8758.hs
blob: 86c54c4a1bf8fcf2ce86addeded227676efd4917 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE RankNTypes #-}

module T8758 where

class C m where
  foo :: (forall b. b -> m b) -> c -> m c

instance C [] where
  foo f c = f c