summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/T1999.hs
blob: 70f8531d174371141298e06b3d13bb3660bf5bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE FlexibleContexts, FlexibleInstances, GADTs #-}

module Bug where

class C a where
  f :: G a -> ()

instance (C ()) => C (b c) where
  f (G x) = f x where

data G a where
  G  :: G () -> G (b c)