summaryrefslogtreecommitdiff
path: root/testsuite/tests/generics/GenCanDoRep0.hs
blob: a86416b05225fba296df3184d4d5094795e9c66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}

module CanDoRep0 where

import GHC.Generics (Generic)


-- We should be able to generate a generic representation for these types
data A  
  deriving Generic

data B a
  deriving Generic

data C = C0 | C1
  deriving Generic

data D a = D0 | D1 { d11 :: a, d12 :: (D a) }
  deriving Generic

data (:*:) a b = a :*: b
  deriving Generic