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

{-# LANGUAGE GADTSyntax #-}

module GadtSyntax001 where

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