summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadt-dim1.hs
blob: 641f04d0e683d318339aee06265e2d5d3a3174fe (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE GADTs #-}

module ShouldCompile where

data T a where 
  C :: Int -> T Int 
  D :: Bool -> T Bool 

foo :: T a -> a 
foo (C x) = x 
foo (D x) = x