summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/T7558.hs
blob: 129704f95523fdd42b9ea811dc68e0568925631b (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE GADTs #-}
module T7558 where

data T a b where
  MkT :: (a~Maybe b) => a -> Maybe b -> T a b

f :: T a a -> Bool
f (MkT x y) = [x,y] `seq` True