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

module ShouldFail where

-- Wrong return type
data X f = X (f ())

data B a where
  B1 :: X []
  B2 :: B [Int]