summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadt6.hs
blob: 606d04e8a430bda0ad5ce7aa0be95b811d42baf3 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE GADTs #-}

module ShouldCompile where

data T a where
  T :: b -> (b->Int) -> a -> T a

f (T b f a) = a