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

module ShouldSucceed3 where 


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

-- Tests scoped annotations 
foo :: T a -> a -> a 
foo (C y (x::b)) (z::a) = z + 1