summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadtSyntaxFail001.hs
blob: 8fd8bfdf5bcfff79f9c5d0ef218017ea8731651a (plain)
1
2
3
4
5
6
7
8
9

{-# LANGUAGE GADTSyntax #-}

module GadtSyntaxFail001 where

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