summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadtSyntaxFail002.hs
blob: 2f16c936d1c2e7f4db4dc83cf5bc24a930ac0e41 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE Haskell2010 #-}

{-# LANGUAGE GADTSyntax #-}

module GadtSyntaxFail002 where

data Foo a b where
    C1 :: a -> Int -> b -> Foo b a
    C2 :: a -> Char -> Foo a a
    Cs :: Foo a b