summaryrefslogtreecommitdiff
path: root/testsuite/tests/generics/GenCannotDoRep1_4.hs
blob: 0986c33e38492fe1089bad63d7626723fd0ac8b4 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE DeriveGeneric       #-}

module GenCannotDoRep1_4 where

import GHC.Generics

-- We do not support contravariant occurrences of the type variable
data T a = T (a -> Int) deriving Generic1